Struct PhysicsMassOverride | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct PhysicsMassOverride

    Add this component to a dynamic body if it needs to sometimes switch to being kinematic. This allows you to retain its dynamic mass properties on its PhysicsMass component, but have the physics solver temporarily treat it as if it were kinematic. Kinematic bodies will have infinite mass and inertia. They should also not be affected by gravity. Hence, if IsKinematic is non-zero the value in an associated PhysicsGravityFactor component is also ignored.

    Namespace: Unity.Physics
    Syntax
    public struct PhysicsMassOverride : IComponentData

    Fields

    IsKinematic

    Declaration
    public byte IsKinematic
    Field Value
    Type Description
    Byte
    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