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?

CollisionFlags is only for the character controller. For rigidbodies you can use Collision.contacts and compare that to the transform.position.