docs.unity3d.com
    Show / Hide Table of Contents

    Struct RigidbodyBakingData

    Component that specifies if a rigid body is a kinematic body and what its mass is.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics.Authoring
    Syntax
    [TemporaryBakingType]
    public struct RigidbodyBakingData : IComponentData, IQueryTypeParameter

    Fields

    automaticCenterOfMass

    Center of mass of the rigid body is automatically calculated if this is true.

    Declaration
    public bool automaticCenterOfMass
    Field Value
    Type Description
    Boolean

    automaticInertiaTensor

    Inertia tensor of the rigid body is automatically calculated if this is true.

    Declaration
    public bool automaticInertiaTensor
    Field Value
    Type Description
    Boolean

    centerOfMass

    Center of mass of the rigid body. Used if automaticCenterOfMass is false.

    Declaration
    public float3 centerOfMass
    Field Value
    Type Description
    float3

    inertiaTensor

    Inertia tensor of the rigid body. Used if automaticInertiaTensor is false.

    Declaration
    public float3 inertiaTensor
    Field Value
    Type Description
    float3

    inertiaTensorRotation

    Rotation of the inertia tensor. Used if automaticInertiaTensor is false.

    Declaration
    public quaternion inertiaTensorRotation
    Field Value
    Type Description
    quaternion

    isKinematic

    Sets rigid body as kinematic body.

    Declaration
    public bool isKinematic
    Field Value
    Type Description
    Boolean

    mass

    Mass of the rigid body.

    Declaration
    public float mass
    Field Value
    Type Description
    Single
    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