docs.unity3d.com
    Show / Hide Table of Contents

    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 to None. 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.EvaluateGrounding to false. This will prevent the character from detecting the ground and projecting its velocity onto it.
    • Set KinematicCharacterProperties.DetectMovementCollisions to false. This will prevent the character from detecting and solving hits resulting from its velocity-based movement.
    • Set KinematicCharacterProperties.DecollideFromOverlaps to false. 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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023