![]() |
Colliding Shapes
Ian Parberry's "Introduction to Game Physics"
|
Dynamic circle descriptor. More...
#include <DynamicCircle.h>
Public Member Functions | |
| CDynamicCircleDesc () | |
| Constructor. More... | |
Public Member Functions inherited from CCircleDesc | |
| CCircleDesc () | |
| Constructor. More... | |
| CCircleDesc (const Vector2 &, float, float=1.0f) | |
| Constructor. More... | |
Public Member Functions inherited from CShapeDesc | |
| CShapeDesc (eShape) | |
| Constructor. More... | |
| CShapeDesc () | |
| Default constructor. More... | |
Public Attributes | |
| Vector2 | m_vVel |
| Velocity. Speed is measured in pixels per second. | |
Public Attributes inherited from CCircleDesc | |
| float | m_fRadius = 0.0f |
| Radius. | |
Public Attributes inherited from 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 dynamic circle descriptor describes a dynamic circle.
| CDynamicCircleDesc::CDynamicCircleDesc | ( | ) |
The default contructor creates a dynamic circle descriptor consisting of the default circle descriptor and velocity zero.
1.8.14