docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsMass

    Implements
    IComponentData
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.U2D.Entities.Physics
    Assembly: solution.dll
    Syntax
    [GenerateAuthoringComponent]
    public struct PhysicsMass : IComponentData

    Fields

    Name Description
    InverseInertia
    InverseMass
    LocalCenterOfMass

    Methods

    Name Description
    CreateDynamic(MassProperties, float)
    CreateKinematic(MassProperties)

    Extension Methods

    ComponentExtensions.GetInertia(PhysicsMass)
    ComponentExtensions.GetMass(PhysicsMass)
    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)