I’m trying have when player enter a box collider and and move to new position
I try to make my own script I got no error but nothing happened, my friend suggested turn off the player movement script (PlayerMovement) or the character controller and after the vector change then back on again but I’m not sure how to right that in
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class push : MonoBehaviour
{
public GameObject player;
void OnTriggerEnter(Collider col)
{
if (col.gameObject.tag == "Player")
{
player.transform.position = new Vector3(58.89f, 1.47f, -1.88f);
}
}
}