Fixed a bug where InputHandler did not return sensible movement values when no movement keys were pressed. Also fixed that it was returning without running to completion. It has to run to completion to process button events!
A number of changes and fixes to the physics system:
- Removed computation to infer collisions in Physics.cpp, and added explicit collideX() and collideY() functions that are called when a collision occurs.
- Commented out vertical air resistance.
- Made air resistance scale with velocity.
- Small velocity only resets to zero