- return FORCE_MOVE;
-
- if(!(other.get_flags() & FLAG_SOLID))
- return FORCE_MOVE;
-
- if(other.get_flags() & FLAG_SOLID) {
- if(hit.normal.y < 0) { // landed on floor
- if(physic.get_velocity_y() > 0)
- physic.set_velocity_y(0);
- } else if(hit.normal.y > 0) { // bumped against roof
- physic.set_velocity_y(.1);
- }
-
- if(fabsf(hit.normal.x) > .9) { // hit on side?
- physic.set_velocity_x(0);
- }
-
- return CONTINUE;
+ return;
+
+ if(hit.bottom) {
+ if(physic.get_velocity_y() > 0)
+ physic.set_velocity_y(0);
+ } else if(hit.top) {
+ physic.set_velocity_y(.1f);
+ }
+
+ if(hit.left || hit.right) {
+ physic.set_velocity_x(0);