docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    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 readonly float3x3 InertiaMatrix { get; }
    Property Value
    Type Description
    float3x3

    The inertia matrix.

    In This Article
    • Fields
      • InertiaTensor
      • Transform
    • Properties
      • InertiaMatrix
    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