RigidBodyWrapper class
Signature:
export declare class RigidBodyWrapper Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Vector3 | |||
|
Vector3 | |||
|
Vector3 | |||
|
|
Collider[] | ||
|
|
Returns the component that owns this rigidbody | ||
|
boolean |
Is this rigidbody enabled? | ||
|
|
boolean |
Is this rigidbody a dynamic rigidbody? | |
|
|
boolean |
Is this rigidbody a fixed rigidbody? | |
|
|
boolean |
Is this rigidbody a kinematic rigidbody? | |
|
|
RigidBodyOpts |
Returns the options used to create this rigidbody | |
|
Vector3 | |||
|
Quaternion | |||
|
|
RapierRigidBody |
Returns the raw Rapier rigidbody | |
|
[boolean, boolean, boolean] |
Returns the current rotation lock state | ||
|
[boolean, boolean, boolean] |
Returns the current translation lock state |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Add a force to the rigidbody. The force is applied at the center of mass by default unless a relative point is provided | ||
|
Add a torque to the rigidbody | ||
|
Apply an impulse to the rigidbody. The impulse is applied at the center of mass by default unless a relative point is provided | ||
|
Reset all forces applied to the rigidbody to zero | ||
|
Reset all torques applied to the rigidbody to zero | ||