Hello, I’m new to unity and I need some help. I want to change object’s constant velocity direction when one button is pressed. I know it is simple, but I can’t figure it out.
Depending on which axis this is a view of, something like this should work:
if(Input.GetKeyDown(KeyCode.Q)){
yourSpeedVariable.x *= -1;
}