docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct MotionVelocity

    Fields

    AngularExpansionFactor

    The angular expansion factor.

    Declaration
    public float AngularExpansionFactor
    Field Value
    Type Description
    Single

    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
    Single

    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
    Single

    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 readonly bool HasInfiniteInertia { get; }
    Property Value
    Type Description
    Boolean

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

    HasInfiniteMass

    Gets a value indicating whether this object has infinite mass.

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

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

    IsKinematic

    Gets a value indicating whether this object is kinematic.

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

    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
    • Fields
      • AngularExpansionFactor
      • AngularVelocity
      • GravityFactor
      • InverseInertia
      • InverseMass
      • LinearVelocity
      • Zero
    • Properties
      • HasInfiniteInertia
      • HasInfiniteMass
      • IsKinematic
    • Methods
      • ApplyAngularImpulse(float3)
      • ApplyLinearImpulse(float3)
    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