![]() |
Colliding Shapes
Ian Parberry's "Introduction to Game Physics"
|
Dynamic circle descriptor. More...
#include <DynamicCircle.h>
Public Member Functions | |
CDynamicCircleDesc () | |
Constructor. More... | |
![]() | |
CCircleDesc () | |
Constructor. More... | |
CCircleDesc (const Vector2 &, float, float=1.0f) | |
Constructor. More... | |
![]() | |
CShapeDesc (eShape) | |
Constructor. More... | |
CShapeDesc () | |
Default constructor. More... | |
Public Attributes | |
Vector2 | m_vVel |
Velocity. Speed is measured in pixels per second. | |
![]() | |
float | m_fRadius = 0.0f |
Radius. | |
![]() | |
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.