Struct GhostRigidbodyData
Only used on predicted Rigidbodies, tracking and rolling back predicted data Default variant
Implements
IComponentData
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
public struct GhostRigidbodyData : IComponentData
Fields
AngularVelocity
The angular velocity of the rigidbody.
Declaration
public float3 AngularVelocity
Field Value
| Type | Description |
|---|---|
| float3 |
IsKinematic
Whether the rigidbody is kinematic.
Declaration
public bool IsKinematic
Field Value
| Type | Description |
|---|---|
| bool |
IsSleeping
Whether the rigidbody is sleeping.
Declaration
public bool IsSleeping
Field Value
| Type | Description |
|---|---|
| bool |
LinearVelocity
The linear velocity of the rigidbody.
Declaration
public float3 LinearVelocity
Field Value
| Type | Description |
|---|---|
| float3 |
WakeCounter
The time remaining before the rigidbody falls asleep.
Declaration
public float WakeCounter
Field Value
| Type | Description |
|---|---|
| float |
Implements
IComponentData