Skip to content

@modoki/engine / index / setAngvel2D

Function: setAngvel2D()

setAngvel2D(world, entity, angvel, wakeUp?): boolean

Set angular velocity directly (radians/s about Z; sign-flipped for the screen frame).

Parameters

world

World

entity

Entity

angvel

number

wakeUp?

boolean = true

Returns

boolean

Built with Modoki.