ObjectTileGrip¶
Description¶
Tries to collide with the foreground layer based on the position of Object.iXPos + xOffset, Object.iYPos + yOffset.
TODO: this needs a better description to differentiate it from ObjectTileCollision()
Note
This function is best used to handle moving along surfaces. For handling simpler collision, use ObjectTileCollision() instead.
Parameters¶
CSide-
Determines to which side of the tile the object has to collide. Can be
CSIDE_FLOOR,CSIDE_LWALL,CSIDE_RWALL, orCSIDE_ROOF. In Sonic Origins,CSIDE_ENTITYis available as well. xOffset-
Horizontal offset of the object.
yOffset-
Vertical offset of the object.
CPlane-
Collision plane to take into account.
Return Value¶
Sets CheckResult to true if there was collision; otherwise, it's set to false.