I have a GameObject being translated by:
float amtToMove = SphereSpeed * Time.deltaTime;
Vector3 direction = Vector3.left;
transform.Translate(direction * amtToMove, Space.World);
I’m looking to change it’s path by a trigger, but I don’t want it to go backwards. How can I get the inverse of it’s direction to make sure it won’t go back? In this scenario, I’m looking for a method or some way to find Vector3.right.
Thanks