paddy3k
29-09-2008 06:08:51
Hi everyone!
I spend the whole yesterday in find out how to move a SceneNode smoothly.
But didn't made any progress. Can anybody post a simple example of moving a Node using linear interpolation ?
I think there a 2 ways to do it. One is using Animation (SceneNodeTrack?) and the other is to interpolate by myself.
May we have
Object Car
Start Position : (0,0,0)
End Position : (100, 0, 150)
this movement shall be done in 1 second. How would the corresponding sourcecode look like ?
I read something, that I should get first the velocity vector, which would be (100, 0, 150) in my case. Later on some multiplying with the timeSinceLastFrame... but I didn't got it at all. May somebody can help![Smile :-)]({SMILIES_PATH}/icon_smile.gif)
Thanks very much !!
bye
paddy
I spend the whole yesterday in find out how to move a SceneNode smoothly.
But didn't made any progress. Can anybody post a simple example of moving a Node using linear interpolation ?
I think there a 2 ways to do it. One is using Animation (SceneNodeTrack?) and the other is to interpolate by myself.
May we have
Object Car
Start Position : (0,0,0)
End Position : (100, 0, 150)
this movement shall be done in 1 second. How would the corresponding sourcecode look like ?
I read something, that I should get first the velocity vector, which would be (100, 0, 150) in my case. Later on some multiplying with the timeSinceLastFrame... but I didn't got it at all. May somebody can help
![Smile :-)]({SMILIES_PATH}/icon_smile.gif)
Thanks very much !!
bye
paddy