Physics

If you recall, the Game Engine Loop is composed of a Rendering and an Update stage. The Engine Loop directs every game object through these stages.

image

Two other stages are optional. They involve the Physics Engine and the Collision Detection System.

image

To direct an entity through the Physics Engine, you must enable the game object's kinetics by setting the U4DEngine::U4DDynamicModel::enableKineticsBehavior() method.

image

Moreover, to direct an entity through the Collision Detection System, you must enable Not only the game object's kinetics behavior by setting the U4DEngine::U4DDynamicModel::enableKineticsBehavior() method, but also its collision detection behavior by setting the U4DEngine::U4DStaticModel::enableCollisionBehavior().

image

Enabling Forces & Collision