-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof*(arr))
-
-void collision_displace(vec2d *desired_pos,
- rectangle const *current,
- rectangle const *obstacle,
- vec2d *inertia,
- bool *touching_ground) {
- rectangle desired = *current;
+void collision_displace(vec2d *desired_pos,
+ jumpnrun_moveable *current,
+ rectangle const *obstacle,
+ vec2d *inertia_mod) {
+ rectangle desired = current->current_box;