getLinearVelocity()
ecs.physics.getLinearVelocity(world, eid)
Description
Get the linear velocity of an entity within the physics engine.
Parameters
Parameter | Type | Description |
---|
world | World | world |
eid | Eid | Entity id |
Returns
Linear velocity in the form {x, y, z}