Struct MassProperties | 2D Entities | 0.22.0-preview.8
docs.unity3d.com
    Show / Hide Table of Contents

    Struct MassProperties

    Namespace: Unity.U2D.Entities.Physics
    Syntax
    public struct MassProperties

    Constructors

    MassProperties(float2, Single, Single, Single)

    Declaration
    public MassProperties(float2 localCenterOfMass, float inertia, float area, float angularExpansionFactor)
    Parameters
    Type Name Description
    float2 localCenterOfMass
    Single inertia
    Single area
    Single angularExpansionFactor

    Fields

    AngularExpansionFactor

    Declaration
    public float AngularExpansionFactor
    Field Value
    Type Description
    Single

    Area

    Declaration
    public float Area
    Field Value
    Type Description
    Single

    MassDistribution

    Declaration
    public MassDistribution MassDistribution
    Field Value
    Type Description
    MassDistribution

    Properties

    Default

    Declaration
    public static MassProperties Default { get; }
    Property Value
    Type Description
    MassProperties
    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