![]() |
The Shapes Library
Game Physics with Bespoke Code
|
Shape Descriptor. More...
#include <Shape.h>

Public Member Functions | |
| CShapeDesc (eShape) | |
| Constructor. | |
| CShapeDesc () | |
| Default constructor. | |
Public Attributes | |
| eShape | m_eShapeType = eShape::Unknown |
| Type of shape. | |
| Vector2 | m_vPos |
| Position. | |
| float | m_fElasticity = 1.0f |
| Elasticity, aka restitution, bounciness. | |
| eMotion | m_eMotionType = eMotion::Static |
| How shape moves. | |
| bool | m_bIsSensor = false |
| Sensor only, no rebound. | |
The shape descriptor is a simple structure that holds basic information about a shape.
| CShapeDesc::CShapeDesc | ( | eShape | s | ) |
This constructor creates a shape descriptor given a shape type.
| s | Shape type. |
| CShapeDesc::CShapeDesc | ( | ) |
The default contructor creates a shape descriptor of unknown type.