Hi @iGrok,
Welcome to our community!
That’s a good question. We manipulate the transform.position
directly and do not take any axis into consideration. We just make the object move between two points, hence we cannot move the object on the local axis with this solution.
However, you could certainly develop a different solution to make the obstacle move along its local axis. This would require you to define exactly what you mean by that. If you are able to define the concept, you’ll very likely be able to make your idea work. The more vague your idea is, the less likely it is that you will be able to implement in your project.
See also: