Hi , I have a problem with this script , when I fall with the car into a ravine, the
car returns to the starting point still in motion, i do not want to be still moving when the car is teleported at the starting point , the car should not move when is teleported
var TelePosition : Transform; // drag the destination empty here
function OnTriggerEnter(other : Collider)
{
if (other.tag == "Player")
{
// move and align the player to the destination empty GO
other.transform.position = TelePosition.position;
other.transform.rotation = TelePosition.rotation;
}
}