RigidBody
@3dverse/livelink / Components / RigidBody
Type Alias: RigidBody
RigidBody:
object
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:735
Rigid body parameters.
Type declaration
mass
mass:
Float
Mass of the rigid body. A value of 0 is interpreted as infinite mass.
Default Value
1;
centerOfMass
centerOfMass:
Vec3
Center of mass. Relative to the entity's transform.
Default Value
0, 0, 0;
linearDamping
linearDamping:
Float
Linear damping coefficient. Used to slow down the rigid body's linear velocity. Zero represents no damping. Must be non-negative.
Default Value
0;
angularDamping
angularDamping:
Float
Angular damping coefficient. Used to slow down the rigid body's angular velocity, i.e. how much it rotates. Zero represents no damping. Must be non-negative.
Default Value
0.05;
force
force:
Vec3
Default Value
0, 0, 0;
torque
torque:
Vec3
Default Value
0, 0, 0;
collisionDetection
collisionDetection:
Int32
The type of collision detection to use for this rigid body.
Default Value
0;
useGravity
useGravity:
boolean
Controls whether rigid body is affected by gravity.
Default Value
true;
isKinematic
isKinematic:
boolean
Specifies if rigid body is kinematic. Kinematic rigid bodies are not affected by forces such as gravity.
Default Value
false;