Reverted physics engine

The system before this one had a few minor yet damaging flaws.