setLinearVelocity()
ecs.physics.setLinearVelocity(world, eid, velocityX, velocityY, velocityZ)
Description
Set the linear velocity of an entity within the physics engine.
Parameters
Parameter | Type | Description |
---|---|---|
world | World | world |
eid | Eid | Entity id |
velocityX | number | velocityX |
velocityY | number | velocityY |
velocityZ | number | velocityZ |
Returns
None.