ForwardVector3.forward
is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.htmlper official documentation, it'sit is the shorhand to (0,0,1)shorthand for , that's meannew Vector3(0,0,1)
. That means that Vector3.forward
will increase your "z" valuez
direction by 1 1
, NOT makenot by your object really goobjects real "forward" .
Edit : transform.forwardTransform.forward
is the blue axis of the transform, in world space , in. In other words, the blue line is the Z axis / direction of the transform , read here https://docs.unity3d.com/ScriptReference/Transform-forward.htmlas per , ifofficial documentation. If this thing is unclear , transform.forward meant totransform.forward
means only move your object ONLY atalong the Z axis / direction .
Edit : Z axis / directionZ axis / direction is like a compass ,compass; no matter you rotate or not your rotation, the north and south direction will have no change ,change; the compass will still be pointing at north and south .