Question by
Misthra-Games · Jan 13, 2016 at 05:10 AM ·
c#collisionrigidbodycollision detection
Rigid Body and Collision
Does and object have to have a rigid body for OnCollisionEnter to work? If so, what if i dont want to use rigid body because it sucks with movement? Always flipping my player over and such.
Comment
Answer by dotfortun3 · Jan 13, 2016 at 05:41 AM
You need a non-kinematic rigidbody on the all of the objects the player collides with for OnCollisionEnter to be sent. You don't need one on the player itself.
Thank you for the correction, @KdRWaylander.
Could you tell me why OnCollisionEnter is not working then?
From the Scripting API:
"Notes: Collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached."