The Shapes Library
Game Physics with Bespoke Code
Loading...
Searching...
No Matches
Shape.h File Reference

Interface for the shape classes CShapeDesc and CShape.

#include "AABB.h"
#include "ShapeMath.h"
#include "ShapeCommon.h"
Include dependency graph for Shape.h:
This graph shows which files directly or indirectly include this file:

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...
 

Enumeration Type Documentation

◆ eMotion

enum class Shapes::eMotion
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.