SetVelocity
This function sets an entity's velocity, without interrupting the physics simulation.
Syntax
- SetVelocity(Vec3 velocity, bool global = true)
- SetVelocity(number x, number y, number z, bool global = true)
Parameters
- velocity: the new velocity vector.
- global: set this to true to set the velocity in global space, or use false to set it in local space.