Archived

This topic is now archived and is closed to further replies.

Newbi in the pot

This topic is 5398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!!!!!!!!!!!!!!!!

Share this post


Link to post
Share on other sites
For your purposes you should TRANSLATE FIRST then ROTATE.
This is not equivilant to ROTATING and then TRANSLATING, which you have already observed.
If you translate the ball to where you want it to be and then apply a rotation, then the ball will rotate around the new found local origin

Hope this helps,


TommyB

Share this post


Link to post
Share on other sites