docs.unity3d.com
Search Results for

    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)