Public Member Functions | |
| void | SetWorld (cWorld2D *apWorld) |
| tFlag | CollideBody (cBody2D *apBody, cCollideData2D *apData) |
| tFlag | CollideRect (cRect2f &aRect, tFlag alCollideFlags, cCollideData2D *apData) |
| tFlag | CollideLine (const cVector2f &avStart, const cVector2f &avEnd, tFlag alCollideFlags, cCollideData2D *apData) |
Public Attributes | |
| cCollider2DDebug | mDebug |
| tFlag hpl::cCollider2D::CollideBody | ( | cBody2D * | apBody, |
| cCollideData2D * | apData | ||
| ) |
Collides a body with the world and returns a flag of what object has collided.
| *apBody |
| tFlag hpl::cCollider2D::CollideRect | ( | cRect2f & | aRect, |
| tFlag | alCollideFlags, | ||
| cCollideData2D * | apData | ||
| ) |
Collides a custom rect with the world
| aRect | |
| alCollideFlags | Specifies what things to check for collision with. |