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

applyTorqueImpulse

applyTorqueImpulse<Target>(authority, entity, torqueImpulse): BodyRefusal | null

Changes a dynamic body’s spin at once by torqueImpulse, in newton-metre-seconds about each world axis: a flick. 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>
torqueImpulse Vector3Like

BodyRefusal | null

applyTorqueImpulse(step, coin, new Vector3(0, 0.02, 0));