![]() |
The Shapes Library
Game Physics with Bespoke Code
|
Interface for the shape classes CShapeDesc and CShape.


Classes | |
| class | Shapes::CShapeDesc |
| Shape Descriptor. More... | |
| class | Shapes::CShape |
| Shape. More... | |
Enumerations | |
| enum class | Shapes::eShape { Unknown , Point , Line , LineSeg , Circle , Arc } |
| Shape type. | |
| enum class | Shapes::eMotion { Static , Kinematic , Dynamic , Size } |
| Shape motion type. More... | |
|
strong |
Shape motion can be either static, kinematic, or dynamic. Static shapes don't move, they collide with only dynamic shapes, and they are unaffected by collisions. Kinematic shapes move, they collide with only dynamic shapes, and they are unaffected by collisions. Dynamic shapes move, they collide with shapes of all three motion types, and they are affected by collisions.