Physics System

A physics system is necessary for game engine, it lets objects have autonomic & intellective movement. Awakening provides a simple and easy to use implementation of physics system, you can use it by Command Script. Mainly there are three classes for physics system: movtar, trace and player; the movtar namely movable target, is dummy object for movement; the trace is for tracing in scene. The physics system treat virtual world's 1 length unit as 1 centimeter.

player

movtar

trace

NoClip Mask

 

The console variable p_maxfps controls physics system FPS, default is 60, means do physics update 60 times per second. Another console variable p_vehicle indicates whether do vehicle processing, when turn on, the player will move together with standed movable object.