Progress – wall grabbing

I finally got the player to “grab” onto a wall. The routine isn’t quite finished yet, but I managed to calculate the new angle of rotation based off of the normal of the surface the astronaut collides with.

Now I just need to implement logic to constrain his movement while attached to a wall, and allow him to climb and mantle around surfaces.

This page was helpful for explaining the math needed:
http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm

I’m a little concerned that it’s taking too long to implement the movement and it won’t leave enough time for level design, etc. But the whole point of this game is the unconventional movement so it’s important to take the time to get the feel right. This may wind up just being a movement prototype and I will finish the actual game later. Hey, if Terry Cavanagh can do it, so can I! :)