Skip to content

@modoki/engine / index / setLinvel3D

Function: setLinvel3D()

setLinvel3D(world, entity, x, y, z, wakeUp?): boolean

Set linear velocity directly (world units/s) — the intuitive "move at this speed" control.

Parameters

world

World

entity

Entity

x

number

y

number

z

number

wakeUp?

boolean = true

Returns

boolean

Built with Modoki.