docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RigidbodyBakingData

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

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics.Authoring
    Assembly: Unity.Physics.Hybrid.dll
    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
    bool

    automaticInertiaTensor

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

    Declaration
    public bool automaticInertiaTensor
    Field Value
    Type Description
    bool

    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
    bool

    mass

    Mass of the rigid body.

    Declaration
    public float mass
    Field Value
    Type Description
    float

    Implements

    IComponentData
    IQueryTypeParameter
    In This Article
    Back to top
    Copyright © 2025 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)