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


Public Member Functions | |
| CPointDesc () | |
| Default constructor. | |
| CPointDesc (const Vector2 &p, float e=1.0f) | |
| Constructor. | |
Public Member Functions inherited from Shapes::CShapeDesc | |
| CShapeDesc (eShape) | |
| Constructor. | |
| CShapeDesc () | |
| Default constructor. | |
Additional Inherited Members | |
Public Attributes inherited from Shapes::CShapeDesc | |
| 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 point descriptor describes a point shape.
| CPointDesc::CPointDesc | ( | ) |
The default contructor creates a point descriptor from the default shape descriptor.
| CPointDesc::CPointDesc | ( | const Vector2 & | p, |
| float | e = 1.0f ) |
This constructor creates a point descriptor given the point's position and elasticity.
| p | Position. |
| e | Elasticity. |