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

    Struct PhysicsBody.MotionVelocity

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

    Fields

    AngularExpansionFactor

    Declaration
    public float AngularExpansionFactor
    Field Value
    Type Description
    Single

    AngularVelocity

    Declaration
    public float AngularVelocity
    Field Value
    Type Description
    Single

    InverseInertia

    Declaration
    public float InverseInertia
    Field Value
    Type Description
    Single

    InverseMass

    Declaration
    public float InverseMass
    Field Value
    Type Description
    Single

    LinearVelocity

    Declaration
    public float2 LinearVelocity
    Field Value
    Type Description
    float2

    Methods

    ApplyAngularImpulse(Single)

    Declaration
    public void ApplyAngularImpulse(float impulse)
    Parameters
    Type Name Description
    Single impulse

    ApplyLinearImpulse(float2)

    Declaration
    public void ApplyLinearImpulse(float2 impulse)
    Parameters
    Type Name Description
    float2 impulse
    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