phaser: Brought over determineBounceVelocityX refactor