C4 Engine
C4 Engine API Documentation

RigidBodyController::SetLinearVelocity

Defined in:  C4Physics.h
Sets the current linear velocity of a rigid body.
Prototype

void SetLinearVelocity(const Vector3D& velocity);

Parameters
velocity The new linear velocity, in world-space coordinates.
Description
The SetLinearVelocity function sets the current linear velocity for a rigid body to that specified by the velocity parameter. The velocity vector is specified in world-space coordinates, and it is measured in meters per second (m/s).
See Also

RigidBodyController::GetLinearVelocity

RigidBodyController::GetAngularVelocity

RigidBodyController::SetAngularVelocity

RigidBodyController::GetOriginalLinearVelocity

RigidBodyController::GetOriginalAngularVelocity