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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Target extends Entity |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
EntityAuthority |
entity |
BodyTarget<Target, Dynamic> |
torqueImpulse |
Vector3Like |
Returns
Section titled “Returns”BodyRefusal | null
Example
Section titled “Example”applyTorqueImpulse(step, coin, new Vector3(0, 0.02, 0));