Hi I’m having a little trouble finding out a way for a ridgidbody to detect when the character controller player collides with it. I tried to reset the level with the code bellow when the player (“AAAPlayer”) collides with the ridgidbody but after a couple of weeks I still can’t get it to work or find any code that will do this. Any help would be appreciated.
function OnCollisionEnter (other : Collision)
{
if (other.gameObject.name == “AAAPlayer”) {
// print(“Game Over”);
Application.LoadLevel (“Level01”);
}
}