Animation of an obgect transform according to it's change
I'm pretty new to Unity and I want to ask for some help/directions with animations. I need to animate movement of the simple object, let's say a cube, that is moved from point A to point B on a x-z plane with transform.position in a script. Distance between A and B could vary. For example A equals to (0, 0, 0) and B could get values like (1, 0, 0); (2, 0, 0) or (0, 0, 2) i need this cube to come through point with y = 1 at the middle of AB segment.
Answer by coperphild · Dec 01, 2015 at 02:43 PM
Well to answer my own questions, animations were wrong approach, .Lerp solved my problem, a good article on .Lerp https://chicounity3d.wordpress.com/2014/05/23/how-to-lerp-like-a-pro/
other thing is that I need now to deal with some synchronization problems