A simple object that contains information about a collision.
| Zone | A simple object that contains information about a collision. |
| Member Variables | |
| materialID | One of the C_MATERIAL_TYPE_CONSTANTS describing what the collision was with, or C_MATERIAL_TYPE_NONE if no collision was made. |
| entityID | If an Entity was hit, this his ID, otherwise will be <C_ENTITY_NONE>. |
| vPos | When using Map::GetCollisionByRay it is the exact point of collision, in other cases it may be the Entity/TilePic’s position. |
| boundingRect | Usually is the local rectangle of the collision box of the thing we hit. |
One of the C_MATERIAL_TYPE_CONSTANTS describing what the collision was with, or C_MATERIAL_TYPE_NONE if no collision was made.
If an Entity was hit, this his ID, otherwise will be <C_ENTITY_NONE>.
When using Map::GetCollisionByRay it is the exact point of collision, in other cases it may be the Entity/TilePic’s position.