Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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 Parameter
Target extends Entity
Parameter Type
authority EntityAuthority
entity BodyTarget<Target, Dynamic>
torque Vector3Like

BodyRefusal | null

applyTorque(step, wheel, drive);