applyTorque
applyTorque<
Target>(authority,entity,torque):BodyRefusal|null
Turns a dynamic body with torque, in newton-metres about each world
axis, for the next physics step alone. Wakes a sleeping body. Returns
null, or in a deployed world the reason it refused.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Target extends Entity |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
EntityAuthority |
entity |
BodyTarget<Target, Dynamic> |
torque |
Vector3Like |
Returns
Section titled “Returns”BodyRefusal | null
Example
Section titled “Example”applyTorque(step, wheel, drive);