RigidBodyWrapper.addForce() method

Add a force to the rigidbody. The force is applied at the center of mass by default unless a relative point is provided

Signature:

addForce(force: Partial<XYZ>, relativePoint?: XYZ): void;

Parameters

ParameterTypeDescription
forcePartial<XYZ>
relativePointXYZ(Optional)

Returns:

void