Entity collision functions. More...
Public Member Functions | |
| void | ProcessEntityMovement (Entity entity, hitbox outer, hitbox inner) |
| Processes movement of an instance with an outer hitbox and an inner hitboxes. | |
| boolean | CheckTileCollision (Entity entity, bitfield cLayers, CMODE cMode, integer cPlane, integer xOffset, integer yOffset, boolean setPos) |
| Checks tile collision based on where an instance should check. | |
| boolean | CheckTileGrip (Entity entity, bitfield cLayers, CMODE cMode, integer cPlane, integer xOffset, integer yOffset, decimal tolerance) |
| Keeps an instance gripped to tile collision based on where an instance should check. | |
| boolean | CheckEntityTouch (Entity thisEntity, hitbox thisHitbox, Entity otherEntity, hitbox otherHitbox) |
| Checks if an instance is touching another instance with their respective hitboxes. | |
| boolean | CheckEntityCircle (Entity thisEntity, decimal thisRadius, Entity otherEntity, decimal otherRadius) |
| Checks if an instance is touching another instance with within their respective radii. | |
| C | CheckEntityBox (Entity thisEntity, hitbox thisHitbox, Entity otherEntity, hitbox otherHitbox, boolean setValues) |
| Checks if an instance is touching another instance with their respective hitboxes and sets the values of the other instance if specified. | |
| boolean | CheckEntityPlatform (Entity thisEntity, hitbox thisHitbox, Entity otherEntity, hitbox otherHitbox, boolean setValues) |
| Checks if an instance is touching the top of another instance with their respective hitboxes and sets the values of the other instance if specified. | |
Entity collision functions.
| C Collision.CheckEntityBox | ( | Entity | thisEntity, |
| hitbox | thisHitbox, | ||
| Entity | otherEntity, | ||
| hitbox | otherHitbox, | ||
| boolean | setValues ) |
Checks if an instance is touching another instance with their respective hitboxes and sets the values of the other instance if specified.
| thisEntity | The first instance to check. |
| thisHitbox | The first entity's hitbox. |
| otherEntity | The other instance to check. |
| otherHitbox | The other entity's hitbox. |
| setValues | Whether to set the values of the other entity. |
| boolean Collision.CheckEntityCircle | ( | Entity | thisEntity, |
| decimal | thisRadius, | ||
| Entity | otherEntity, | ||
| decimal | otherRadius ) |
Checks if an instance is touching another instance with within their respective radii.
| thisEntity | The first instance to check. |
| thisRadius | Radius of the first entity to check. |
| otherEntity | The other instance to check. |
| otherRadius | Radius of the other entity to check. |
| boolean Collision.CheckEntityPlatform | ( | Entity | thisEntity, |
| hitbox | thisHitbox, | ||
| Entity | otherEntity, | ||
| hitbox | otherHitbox, | ||
| boolean | setValues ) |
Checks if an instance is touching the top of another instance with their respective hitboxes and sets the values of the other instance if specified.
| thisEntity | The first instance to check. |
| thisHitbox | The first entity's hitbox. |
| otherEntity | The other instance to check whether it is on top of the first instance. |
| otherHitbox | The other entity's hitbox. |
| setValues | Whether to set the values of the other entity. |
| boolean Collision.CheckEntityTouch | ( | Entity | thisEntity, |
| hitbox | thisHitbox, | ||
| Entity | otherEntity, | ||
| hitbox | otherHitbox ) |
Checks if an instance is touching another instance with their respective hitboxes.
| thisEntity | The first instance to check. |
| thisHitbox | The first entity's hitbox. |
| otherEntity | The other instance to check. |
| otherHitbox | The other entity's hitbox. |
| boolean Collision.CheckTileCollision | ( | Entity | entity, |
| bitfield | cLayers, | ||
| CMODE | cMode, | ||
| integer | cPlane, | ||
| integer | xOffset, | ||
| integer | yOffset, | ||
| boolean | setPos ) |
Checks tile collision based on where an instance should check.
| entity | The instance to base the values on. |
| cLayers | Which layers the entity can collide with. |
| cMode | Collision mode of the entity. |
| cPlane | Collision plane of which to get the collision (A or B). |
| xOffset | How far from the entity's X value to start. |
| yOffset | How far from the entity's Y value to start. |
| setPos | Whether to set the entity's position if collision is found. |
| boolean Collision.CheckTileGrip | ( | Entity | entity, |
| bitfield | cLayers, | ||
| CMODE | cMode, | ||
| integer | cPlane, | ||
| integer | xOffset, | ||
| integer | yOffset, | ||
| decimal | tolerance ) |
Keeps an instance gripped to tile collision based on where an instance should check.
| entity | The instance to move. |
| cLayers | Which layers the entity can collide with. |
| cMode | Collision mode of the entity. |
| cPlane | Collision plane of which to get the collision (A or B). |
| xOffset | How far from the entity's X value to start. |
| yOffset | How far from the entity's Y value to start. |
| tolerance | How far of a tolerance the entity should check for. |
| void Collision.ProcessEntityMovement | ( | Entity | entity, |
| hitbox | outer, | ||
| hitbox | inner ) |
Processes movement of an instance with an outer hitbox and an inner hitboxes.
| entity | The instance to move. |
| outer | The outer hitbox. |
| inner | The inner hitbox. |