|
Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
|
Functions | |
| bool | detectCollision (const Physics &obj1, const Physics &obj2) |
| Detects whether a collision has occurred between two objects given their Physics structs; this is done by checking for overlap between the two object's surfaces (defined by their positions + dimensions + collider shape) More... | |
| bool | detectCollisionSphere (const Physics &sphere, const Physics &obj) |
| Detects whether a collision has occurred between two objects given their Physics structs and that the first object is a sphere. More... | |
| bool | detectCollisionBox (const Physics &box, const Physics &obj) |
| Detects whether a collision has occurred between two objects given their Physics structs and that the first object is a box. More... | |
Detects whether a collision has occurred between two objects given their Physics structs; this is done by checking for overlap between the two object's surfaces (defined by their positions + dimensions + collider shape)
| obj1 | Reference to the first object's Physics struct. |
| obj2 | Reference to the second object's Physics struct. |
Detects whether a collision has occurred between two objects given their Physics structs and that the first object is a box.
| box | Reference to the box object's Physics struct. |
| obj | Reference to the second object's Physics struct. |
Detects whether a collision has occurred between two objects given their Physics structs and that the first object is a sphere.
| sphere | Reference to the sphere object's Physics struct. |
| obj | Reference to the second object's Physics struct. |