I am trying to make this cube travel along the Y Axis in a direction until it hits a Block Volume. In which case, I want it to change direction. I was using the Add Actor World Offset to move my player cube using an input.
Right now my new cube will travel Positive Y or Negative Y depending on the Float value in the Delta Location. Is there a way I can toggle between Positive and Negative values to achieve a " back and forth " motion? Ideally, using some collision event.