Humanoid physics/visualization in C/OpenGL