![]() |
The Shapes Library
Game Physics with Bespoke Code
|
The shape common variables class. More...
#include <ShapeCommon.h>

Static Protected Attributes | |
| static float | m_fGravity = 0.0f |
| Gravitational constant. | |
| static float | m_fTimeStep = 0.0f |
| Time step per animation frame (fictional). | |
CShapeCommon is a singleton class that encapsulates things that are common to different shapes. Making it a singleton class means that we can avoid passing its member variables around as parameters, which makes the code minisculely faster, and more importantly, reduces function clutter.