Fixed raycast for player and jumping direction.

Signed-off-by: Olof Wallentin <olov.wallentin@gmail.com>