Hi, i need to ask you if in unity exist some method or function to move object to certain position only via one axis, for example only via X axis from vector.x 12 to 15. Now i have function where i checking if actual position on axis X is smaller then destination vector X, if yes, object have velocity, if its bigger, then object velocity is 0 and object stop and then same method for reverse movement, when actual vector x is bigger then startPosition, then move. but exist some easier method how to do this easier?
Thanks ![]()