SpriteFactory.RigidbodyInfo
Namespace: SpriteFactory
A class used to wrap Rigidbody and Rigidbody2D.
Properties |
||||
Name | Type | Description | ||
is2D | bool | True = this is a Rigidbody2D. False = this is a Rigidbody. | ||
rigidbodyComponent | Component | The Rigidbody or Rigidbody2D component. Cast this to the proper type by checking is2D. | ||
rigidbody3D | Rigidbody | The 3D Rigidbody. Returns null if this is a Rigidbody2D. |
Functions
Name | Description | |
GetRigidbody | Get the rigidbody cast to a specific type. | |
WakeUp | Wake up the rigidbody. |