docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MassDistribution

    Describes how mass is distributed within an object Represented by a transformed box inertia of unit mass.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct MassDistribution

    Fields

    InertiaTensor

    Diagonalized inertia tensor for a unit mass.

    Declaration
    public float3 InertiaTensor
    Field Value
    Type Description
    float3

    Transform

    The center of mass and the orientation to principal axis space.

    Declaration
    public RigidTransform Transform
    Field Value
    Type Description
    RigidTransform

    Properties

    InertiaMatrix

    Get the inertia as a 3x3 matrix.

    Declaration
    public float3x3 InertiaMatrix { get; }
    Property Value
    Type Description
    float3x3

    The inertia matrix.

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