Original Post
Hi. I've made a billiard ball with a number on it in OpenGL. Here's my problem. angle += 0.1; glRotatef(angle,normalized.x,normalized.y,0.0f); ... Works fine until I hit a wall and the ball changes direction. Is there a way to start from that position and rotate from there, like... if (hitwall) { angle = 0.0; newaxis(); } //and then... angle += 0.1; glRotatef(angle,normalized.x,normalized.y,0.0f); Or is there an easier way to do this?