docs.unity3d.com
    Show / Hide Table of Contents

    Dynamic rigidbody interactions

    To let your character push and be pushed by dynamic rigidbodies, enable the SimulateDynamicBody option in your character's authoring component.

    When SimulateDynamicBody is enabled, the character applies force on itself and other rigidbodies to imitate the behavior of a true dynamic rigidbody. This uses the Mass property of the character's authoring component to simulate collision mass ratios.

    SynchronizeCollisionWorld

    When dealing with a character that can push or be pushed by other rigidbodies (kinematic or dynamic), you might want to add a PhysicsStep component to an entity in your scene, and set SynchronizeCollisionWorld to true. This ensures that the CollisionWorld that the character update uses for physics queries is updated after the physics systems make the rigidbodies move. The result is that enabling SynchronizeCollisionWorldremoves some slight visual lag between the character and the object it pushes.

    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