Let's take a look at the modifications we need to make to our Collider class. As we discussed earlier, our AI will be implementing steering behaviors. These steering behaviors will require some new attributes and functions in our Collider class. Here is what the new Collider class is going to look like:
class Collider {
public:
float* m_ParentRotation;
float* m_ParentX;
float* m_ParentY;
Vector2D m_TempPoint;
bool CCHitTest( Collider* collider );
Vector2D m_Position;
float m_Radius;
float m_SteeringRadius;
float m_SteeringRadiusSQ;
void SetParentInformation( float* rotation, float* x, float* y );
Collider(float radius);
bool HitTest( Collider *collider );
bool SteeringLineTest( Vector2D &p1, Vector2D &p2 );
bool SteeringRectTest( Vector2D...