Quantcast
Channel: Latest Questions by xem
Viewing all articles
Browse latest Browse all 6

Look perpendicularly to a collision point

$
0
0
Hello, I'm working on a FPS-like game, featuring a capsule-shaped player and a map modeled with Blender. When the player hits a wall of the map, I would like to rotate him so that the collision point is exactly on its left (or its right). In other words, anytime I hit a wall, I want my look to be parallel to the wall. On the following schematic (seen from above), the red arrows shows the player movement, the blue arrows show the player's forward axis before the collision, and the green arrows show the player's forward axis I'd like to have after the collision. ![schematic seen drom the sky][1] [1]: /storage/temp/30825-sans+titre.png Thanks a lot for your help!

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images