Original Post
Hello everyone. I'm new here, so I'm not sure if such a question has been asked before; but I'll ask anyway: Does anyone know how to add a jump function to a 3D game, using a physics engine? Currently, I'm doing a FPS game in OpenGL together with Tokamak, and this question has plagued my mind... The reason being that I do not know how to find out whether my character is standing on something before allowing a jump. Of course, if the floor is fixed, this is easily done with a simple less-than/greater-than operator. However, the game allows standing on platforms, and these platforms may move--in all directions, even up and down. How do I find out if I'm standing on something before I allow a jump? The game does not allow a double jump, so that can be put aside. Hope someone can help because I need to find this out asap for my presentation... which is in fact tomorrow... =/