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.
Well to answer my own questions, animations were wrong approach, .Lerp solved my problem,
a good article on .Lerp How to Lerp like a pro | Chico Unity3D
other thing is that I need now to deal with some synchronization problems