Colliding Shapes
Ian Parberry's "Introduction to Game Physics"
Public Member Functions | Public Attributes | List of all members
CDynamicCircleDesc Class Reference

Dynamic circle descriptor. More...

#include <DynamicCircle.h>

Inheritance diagram for CDynamicCircleDesc:
CCircleDesc CShapeDesc

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.
 

Detailed Description

The dynamic circle descriptor describes a dynamic circle.

Constructor & Destructor Documentation

◆ CDynamicCircleDesc()

CDynamicCircleDesc::CDynamicCircleDesc ( )

The default contructor creates a dynamic circle descriptor consisting of the default circle descriptor and velocity zero.