-
Notifications
You must be signed in to change notification settings - Fork 0
/
phys_resolution.h
28 lines (20 loc) · 919 Bytes
/
phys_resolution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef PHYS_PHYS_RESPONSE_H
#define PHYS_PHYS_RESPONSE_H
#include "global/global.h"
#include "phys/phys_types.h"
#ifdef __cplusplus
extern "C" {
#endif
// @DOC: resolve collision between two phys_obj_t, by moving them out of one another, an adjusting their velocities
// obj0: first object to have collided
// obj1: second object to have collided
// info: info about the collision, returned by one of phys_collision_check...()
void phys_collision_resolution(phys_obj_t* obj0, phys_obj_t* obj1, collision_info_t info);
// @NOTE: old
// void phys_collision_resolution(phys_obj_t* obj0, phys_obj_t* obj1, collision_info_t info);
// void phys_collision_response_resolve_position(phys_obj_t* obj0, phys_obj_t* obj1, collision_info_t info);
// void phys_collision_response_resolve_velocity(phys_obj_t* obj0, phys_obj_t* obj1, collision_info_t info);
#ifdef __cplusplus
} // extern c
#endif
#endif