Newbi in the pot

Started by
0 comments, last by JOCK 21 years, 1 month ago
I have a ball and i need it to rotate around itself in order to get the direction the player wants to move. then the ball moves and when it comes to a stop i need it to do the same. at the moment i an just using simple rotate and translate commands. My problem is that i can only either get 1) the ball to translate down a fixed axis (X) but it can rotate around itself or 2) translate along the x axis which i can rotate to any direction but it will only rotate around the first origin point. PLEASE GOD SOMEONE HELP ME!!!!!!!!!!!!!!!!!!!
Advertisement
You always rotate around the origin so you have to make sure the point you want to rotate about is at the origin when you do the rotation. Normally a rotation about a point is done as a translation fot he point you are rotating about to the origin, the rotation and translation back.
Keys to success: Ability, ambition and opportunity.

This topic is closed to new replies.

Advertisement