Struct MotionVelocity
A dynamic rigid body's "hot" motion data, used during solving.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct MotionVelocityFields
AngularExpansionFactor
The angular expansion factor.
Declaration
public float AngularExpansionFactorField Value
| Type | Description | 
|---|---|
| float | 
AngularVelocity
Angular velocity in Motion space.
Declaration
public float3 AngularVelocityField Value
| Type | Description | 
|---|---|
| float3 | 
GravityFactor
A multiplier applied to the simulation step's gravity vector.
Declaration
public float GravityFactorField Value
| Type | Description | 
|---|---|
| float | 
InverseInertia
The inverse inertia.
Declaration
public float3 InverseInertiaField Value
| Type | Description | 
|---|---|
| float3 | 
InverseMass
The inverse mass.
Declaration
public float InverseMassField Value
| Type | Description | 
|---|---|
| float | 
LinearVelocity
Linear velocity in World space.
Declaration
public float3 LinearVelocityField Value
| Type | Description | 
|---|---|
| float3 | 
Zero
The zero Motion Velocity. All fields are initialized to zero.
Declaration
public static readonly MotionVelocity ZeroField 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. |