#include "body.h"
#include "system.h"
#include <math.h>
Go to the source code of this file.
◆ gm_body_contains()
| int gm_body_contains |
( |
gmBody * | body, |
|
|
double | x, |
|
|
double | y ) |
Checks if a point is contained within a body's collider.
- Parameters
-
| body | Pointer to the body to check. |
| x | The x-coordinate of the point. |
| y | The y-coordinate of the point. |
- Returns
- 1 if the point is inside the body, 0 otherwise.
◆ gm_collision_detect()
Detects collision between two bodies.
- Parameters
-
| a | Pointer to the first body. |
| b | Pointer to the second body. |
- Returns
- A pointer to a gmCollision structure if collision occurs, NULL otherwise.
◆ gm_mouse_in_circle()
| int gm_mouse_in_circle |
( |
const double | x, |
|
|
const double | y, |
|
|
const double | r ) |
◆ gm_mouse_in_rect()
| int gm_mouse_in_rect |
( |
const double | x, |
|
|
const double | y, |
|
|
const double | w, |
|
|
const double | h ) |