Partial collision detection fix

Changing direction whilst hitting a ceiling no longer teleports across.