C4 Engine
C4 Engine API Documentation

PhysicsController::SetGravityAcceleration

Defined in:  C4Physics.h
Sets the global acceleration of gravity.
Prototype

void SetGravityAcceleration(const Vector3D& acceleration);

Parameters
acceleration The new acceleration of gravity, in meters per second squared (m/s2).
Description
The SetGravityAcceleration function sets the global world-space acceleration of gravity, measured in meters per second squared (m/s2), to the vector specified by the acceleration parameter.

The initial value of the gravity acceleration is (0, 0, −9.8) m/s2.
See Also

PhysicsController::GetGravityAcceleration

BodyController::GetGravityMultiplier

BodyController::SetGravityMultiplier