Unity change rigidbody velocity direction. velocity = new Vector3 (x,y,z), but the problem with this method is that in order to move in just one direction I have to set the other directions to 0. Apr 22, 2021 ยท So if you send it a velocity of (0, 0, 1), that means "Move in the direction of world z+" no matter which way your character is facing. AddRelativeForce (Vector3 (10,0,0)) is the same as rigidbody. I don’t want to actually alter the . up to rotate the game object itself. For moving the GameObject on the Z axis while ignoring rotation, see Vector3. The problem was using transform. Right now all solutions I've come up with don't work - either it changes to a higher speed or slower speed. The velocity is specified as a vector with components in the X and Y directions (there is no Z direction in 2D physics). The value is not usually set directly but rather by using forces. nqpd bgxrbag utirmd upgftr hake uzxgl dokez ridte autej buc