ScummVM API documentation
hpl::cCollider2D Class Reference

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
 

Member Function Documentation

◆ CollideBody()

tFlag hpl::cCollider2D::CollideBody ( cBody2D apBody,
cCollideData2D apData 
)

Collides a body with the world and returns a flag of what object has collided.

Parameters
*apBody
Returns
0= no collision, eFlagBit0 = Tiles, all other bits are custom.

◆ CollideRect()

tFlag hpl::cCollider2D::CollideRect ( cRect2f aRect,
tFlag  alCollideFlags,
cCollideData2D apData 
)

Collides a custom rect with the world

Parameters
aRect
alCollideFlagsSpecifies what things to check for collision with.
Returns

The documentation for this class was generated from the following file: