docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MotionVelocity

    A dynamic rigid body's "hot" motion data, used during solving.

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

    Fields

    AngularExpansionFactor

    The angular expansion factor.

    Declaration
    public float AngularExpansionFactor
    Field Value
    Type Description
    float

    AngularVelocity

    Angular velocity in Motion space.

    Declaration
    public float3 AngularVelocity
    Field Value
    Type Description
    float3

    GravityFactor

    A multiplier applied to the simulation step's gravity vector.

    Declaration
    public float GravityFactor
    Field Value
    Type Description
    float

    InverseInertia

    The inverse inertia.

    Declaration
    public float3 InverseInertia
    Field Value
    Type Description
    float3

    InverseMass

    The inverse mass.

    Declaration
    public float InverseMass
    Field Value
    Type Description
    float

    LinearVelocity

    Linear velocity in World space.

    Declaration
    public float3 LinearVelocity
    Field Value
    Type Description
    float3

    Zero

    The zero Motion Velocity. All fields are initialized to zero.

    Declaration
    public static readonly MotionVelocity Zero
    Field Value
    Type Description
    MotionVelocity

    Properties

    HasInfiniteInertia

    Gets a value indicating whether this object has infinite inertia.

    Declaration
    public bool HasInfiniteInertia { get; }
    Property Value
    Type Description
    bool

    True if this object has infinite inertia, false if not.

    HasInfiniteMass

    Gets a value indicating whether this object has infinite mass.

    Declaration
    public bool HasInfiniteMass { get; }
    Property Value
    Type Description
    bool

    True if this object has infinite mass, false if not.

    IsKinematic

    Gets a value indicating whether this object is kinematic.

    Declaration
    public bool IsKinematic { get; }
    Property Value
    Type Description
    bool

    True if this object is kinematic, false if not.

    Methods

    ApplyAngularImpulse(float3)

    Apply an angular impulse (in motion space)

    Declaration
    public void ApplyAngularImpulse(float3 impulse)
    Parameters
    Type Name Description
    float3 impulse

    The impulse.

    ApplyLinearImpulse(float3)

    Apply a linear impulse (in world space)

    Declaration
    public void ApplyLinearImpulse(float3 impulse)
    Parameters
    Type Name Description
    float3 impulse

    The impulse.

    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)