joker40
04-08-2011, 07:18 PM
I have object (point) in 3d space that i want to move.
For example if this point position in 3d space is (2,3,5) and I need to move it to (7,11,22). I know that I can use glTranslate and just draw it at (7,11,22) but that is to fast and i would like point to "travel" to final destination. I know that i can use normalized vector but not sure how to implement this. Would anyone help me with little example just to get me started please..\
Would be much appreciated
For example if this point position in 3d space is (2,3,5) and I need to move it to (7,11,22). I know that I can use glTranslate and just draw it at (7,11,22) but that is to fast and i would like point to "travel" to final destination. I know that i can use normalized vector but not sure how to implement this. Would anyone help me with little example just to get me started please..\
Would be much appreciated