16
Support / Help creating a Lerp function (absolute positions)
« on: September 16, 2011, 05:35:10 pm »
I am trying to create a Lerp function like the one in Unity whereby by giving two absolute positions and a time interval the function would interpolate between the two at each call....
From playing around with the Object3D.translate function I seem to understand that it translates the object by a given vector....is there an equivalent to position the object in an absolute position in space? Say (10, 0, 20).
Also, if I want to make the object face the target position, would I be using the setOrientation method and give it the vector of the target position?
Thank you very much!
From playing around with the Object3D.translate function I seem to understand that it translates the object by a given vector....is there an equivalent to position the object in an absolute position in space? Say (10, 0, 20).
Also, if I want to make the object face the target position, would I be using the setOrientation method and give it the vector of the target position?
Thank you very much!