Could somebody please tell me how to detect a collision without using a rigid body, namely between a player and a mesh. I can’t figure this out from looking at the script reference. What is the command and does it return a boolean.
Thanks
Could somebody please tell me how to detect a collision without using a rigid body, namely between a player and a mesh. I can’t figure this out from looking at the script reference. What is the command and does it return a boolean.
Thanks
Try adding Character Controller -component to your Player Object. See the Tutorials.
The character has a character collider but the object the player is hitting is just a mesh and I don’t know how to detect a mesh collision without rigid body.
OnControllerColliderHit is what you want. It’s a little more complicated than OnCollisionEnter, because CharacterControllers are a little more complicated than Rigidbodies.