Skip to content

@modoki/engine / index / applyTorqueImpulse2D

Function: applyTorqueImpulse2D()

applyTorqueImpulse2D(world, entity, torque, wakeUp?): boolean

Apply an instantaneous angular impulse (torque·time) about Z.

Parameters

world

World

entity

Entity

torque

number

wakeUp?

boolean = true

Returns

boolean

Built with Modoki.