Collision activation
If you want to deactivate the collision handling of a character, there are several options to disable:
- Set the character
PhysicsCollider's collision response toNone. This will prevent other rigidbodies from detecting collisions with your character, but it will not prevent your character from detecting hits with other rigidbodies. - Set
KinematicCharacterProperties.EvaluateGroundingtofalse. This will prevent the character from detecting the ground and projecting its velocity onto it. - Set
KinematicCharacterProperties.DetectMovementCollisionstofalse. This will prevent the character from detecting and solving hits resulting from its velocity-based movement. - Set
KinematicCharacterProperties.DecollideFromOverlapstofalse. This will prevent the character from de-colliding itself from detected hits.
Ignore collisions
To ignore collisions procedurally with code use the CanCollideWithHit processor callback.