Type Alias: RigidBodyActuator
type RigidBodyActuator = {
linearVelocity: Vec3;
angularVelocity: Vec3;
force: Vec3;
impulsiveForce: Vec3;
torque: Vec3;
impulsiveTorque: Vec3;
flags: UInt8;
};
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:798
Rigid body actuator. Represent forces and torques that are applied during a simulation step. All values are reset each frame.
Properties
linearVelocity
linearVelocity: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:803
Sets the body's linear velocity
Default Value
(0, 0, 0);
angularVelocity
angularVelocity: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:808
Sets the body's angular velocity
Default Value
(0, 0, 0);
force
force: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:813
Force to apply to the body (mass * length / time^2, a force)
Default Value
(0, 0, 0);
impulsiveForce
impulsiveForce: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:818
Impulse to apply to the body (mass _ length / time, i.e., force _ time)
Default Value
(0, 0, 0);
torque
torque: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:823
Torque to apply to the body
Default Value
(0, 0, 0);
impulsiveTorque
impulsiveTorque: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:828
Impulsive torque to apply to the body
Default Value
(0, 0, 0);
flags
flags: UInt8;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:833
Which attributes are set for the next frame. 1 = linearVelocity, 2 = angularVelocity, 4 = force, 8 = impulsiveForce, 16 = torque, 32 = impulsiveTorque
Default Value
0;