I’ve been trying to work out my way through a simple collision problem.
I have a fps player with a character controller attached to it and I am trying to make it collide with a box. On the box, I have a box collider (is trigger = uncheck), a rigidbody with gravity turned on and this simple script
#pragma strict
function OnCollisionStay(theCollision : Collision) {
if(theCollision.gameObject.name == "fpsplayer"){
Debug.Log("Hit Player!");
}
}
attached to it. When I put this rigidbody over the fpsplayer head it falls and the debug do show collision happens but when I put it in the world and make my player’s way to it and make it collide with the box no collision is detected.
Thanks, and a Happy New Year.
Fattie sir please be generous and let the question pass the moderation c: