{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct MassProperties | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MassProperties

    The mass properties of an object.

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

    Fields

    Name Description
    AngularExpansionFactor

    Upper bound on the rate of change of the object's extent in any direction, with respect to angular speed around its center of mass. Used to determine how much to expand a rigid body's AABB to enclose its swept volume.

    MassDistribution

    The distribution of a unit mass throughout the object.

    UnitSphere

    (Immutable) The mass properties of a unit sphere.

    Volume

    The volume of the object.

    Methods

    Name Description
    CreateBox(in float3)

    Creates mass properties of a box with the provided side lengths, centered on the origin.

    CreateSphere(in float)

    Creates mass properties of a sphere with the provided radius, centered on the origin.

    Scale(float)

    Scales the mass properties by the given uniform scale factor assuming unit mass.

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