Smoothly move object from A to B
-
I would like to smoothly transform (animate) a 3D object from position A to position B. I used method setParent(SceneObject newParent) to accomplish that. But for now the object moves in a single frame van A to B I would to smoothly animate it. What is the best workflow for that?
FYI, on the A (first part of the filter) the object is stuck to the screen and after an interaction I want to be the 3D model attached to the head (B).
The tween script is generally the best way to move objects (tutorial here).
However, wanting to attach the model to the head is going to complicate that. You could use a tween script and at the end change the object parent, but if the user moves their head you'll still get a jump.
You could instead "lerp" the object between the two positions. I'm not aware of any tutorials or walkthroughs for this so you'll have to play around with it and write the controller script for it.