residualvm/residualvm — pull request #595 by Akz- (2012-04-08 13:28:41+00:00)
Title: GRIM: Bouncing off walls!

This replicates the "bouncing off walls" movement behavior of the original game. When you run into a wall, movement continues immediately in a reflected direction, instead of stopping, turning to face the new direction and then continuing like it is in Residual now.

The important realization here is that the actor can move in a different direction than the model is facing. This means the movement direction can be updated immediately allowing the actor to move in the new direction, while the model direction is interpolated smoothly to match the movement direction.