I need to move cube from point “a” to point “b”. Movement should be smooth, not momentary. Also cube should face it’s direction.
Any ideas how to realise it?
Tried to use this:
Vector3 startm = new Vector3(px - 0.5f, 0.5f, py - 0.5f); Vector3 finm = new Vector3(cx - 0.5f, 0.5f, cy - 0.5f); Player.transform.position = Vector3.MoveTowards (startm, finm, Time.deltaTime);
But if I use this code, cube momentary moves just a little bit to its direction and stops. If I change “Time.deltaTime” to “100 * Time.deltaTime”, cube reach position, but still momentary - no smooth movement.
Thanks in advance for help!