- Home /
Collision flags in a rigidbody.
Hey there, is there a way to use some kind of collision flags in an ordinary rigidbody? (not using character controller) just for "collision flags bellow" purpose?
Comment
Best Answer
Answer by Eric5h5 · Jul 02, 2011 at 09:31 PM
CollisionFlags is only for the character controller. For rigidbodies you can use Collision.contacts and compare that to the transform.position.
The situation is that I am using the fpsRigidbody script and there is an inconsistency there, because the condition "IsGrounded" is confirmed just if the character is "onCollisionStay" so the character is allowed to jump even if he is colliding a wall or anything else.
Thanks for the answer.