SetVelocity
This function sets an entity's velocity, without interrupting the physics simulation.
Syntax
- void SetVelocity(const Vec3& velocity, bool global = true)
- void SetVelocity(const float x, const float y, const float 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.