hello.
I have a waypoint system but i have a problem.
in my checkpoint for my waypoint system i have an box collider with an is trigger.
But whenever my player collides with it it got stuck. Normally you should just can walk trough the box collider.
My code that is on the box collider is this.
using UnityEngine;
using System.Collections;
public class Respawn : MonoBehaviour {
public Transform SpawnPoint;
public GameObject player;
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "Player")
{
player.transform.position = SpawnPoint.position;
}
}
}
can somebody help
my player also has a rigidbody attached to it