Struct MotionVelocity
A dynamic rigid body's "hot" motion data, used during solving.
Inherited Members
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. |