- Home /
Is there any way to move Unity objects fluently?
Hi there!
I just want to find out if there is any way to move Unity objects fluently. So, when I'm moving one cube into a place of another one it happens immediately. Is there any way to slow it down? And if there is, than how to add some animation when with cubes gets merged? (I'm not sure if "merge" is a proper word cause english is not my mother tongue, so...)
Thanks!
rather than setting transform.position directly or via a lerp, set transform.velocity
Answer by MikeNewall · Apr 17, 2014 at 01:12 AM
You could lerp the position of one cube to the other: https://docs.unity3d.com/Documentation/ScriptReference/Vector3.Lerp.html
If you want tweening animation take a look at this: http://itween.pixelplacement.com/index.php
O$$anonymous$$G, this is so beautiful and easy in Unity! Thanks a lot!!! I was working with Xcode for some time and it was much harder that with Unity, thanks again!
Your answer
![](https://koobas.hobune.stream/wayback/20220613142854im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Move object to some random position once it gets in collision 1 Answer
panel hide and show in NGUI 1 Answer
First Person Controller movement Lag? 1 Answer
Move object from a to b 1 Answer