PhysicsData interface
This interface describes the data schema used to attach collision data to a component.
Signature:
export interface PhysicsData Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
ColliderType |
(Optional) The type of collider to attach to the component | ||
|
DynamicProps |
(Optional) Properties for dynamic rigid bodies | ||
|
boolean |
(Optional) If this is false, no collider will be attached to the component | ||
|
[boolean, boolean, boolean] |
(Optional) | ||
|
[boolean, boolean, boolean] |
(Optional) | ||
|
number |
(Optional) | ||
|
RigidBodyType |
(Optional) The type of rigidbody to attach to the component | ||
|
[boolean, boolean, boolean] |
(Optional) Locks the rotation of the rigid body along the x, y, and z axes | ||
|
boolean |
(Optional) If this is true, the collider will be a sensor See Rapier Documentation (opens in a new tab) for more info | ||
|
[boolean, boolean, boolean] |
(Optional) Locks the translation of the rigid body along the x, y, and z axes |