Skip to main content
Grammar and punctuation; formatting; inlined hyperlinks; removed forumesque commentary
Source Link
Gnemlock
  • 5.3k
  • 5
  • 28
  • 59

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  .

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Edit : transform.forward is the blue axis of the transform in world space , in other words blue line is the Z axis / direction of the transform  , read here https://docs.unity3d.com/ScriptReference/Transform-forward.html , if this thing is unclear  , transform.forward meant to move your object ONLY at Z axis / direction  .

Edit : Z axis / direction is like a compass , no matter you rotate or not , the north and south direction will have no change , the compass still pointing at north and south  .

Vector3.forward is not really a forward , as per official documentation, it is the shorthand for new Vector3(0,0,1). That means that Vector3.forward will increase your z direction by 1, not by your objects real "forward" .

Transform.forward is the blue axis of the transform, in world space. In other words, the blue line is the Z axis / direction of the transform, as per official documentation. If this thing is unclear, transform.forward means only move your object along the Z axis / direction.

Z axis / direction is like a compass; no matter your rotation, the north and south direction will have no change; the compass will still be pointing north and south.

improved formatting
Source Link
user6668201
  • 158
  • 3
  • 21

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Edit : transform.forward is the blue axis of the transform in world space , in other words blue line is the Z axis / direction of the transform , read here https://docs.unity3d.com/ScriptReference/Transform-forward.html , if this thing is unclear , transform.forward meant to move your object ONLY at Z axis / direction .

Edit : Z axis / direction is like a compass , no matter you rotate or not , the north and south direction will have no change , the compass still pointing at north and south .

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Edit : transform.forward is the blue axis of the transform in world space , in other words blue line is the Z axis / direction of the transform , read here https://docs.unity3d.com/ScriptReference/Transform-forward.html , if this thing is unclear , transform.forward meant to move your object ONLY at Z axis / direction .

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Edit : transform.forward is the blue axis of the transform in world space , in other words blue line is the Z axis / direction of the transform , read here https://docs.unity3d.com/ScriptReference/Transform-forward.html , if this thing is unclear , transform.forward meant to move your object ONLY at Z axis / direction .

Edit : Z axis / direction is like a compass , no matter you rotate or not , the north and south direction will have no change , the compass still pointing at north and south .

improved formatting
Source Link
user6668201
  • 158
  • 3
  • 21

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Edit : transform.forward is the blue axis of the transform in world space , in other words blue line is the Z axis / direction of the transform , read here https://docs.unity3d.com/ScriptReference/Transform-forward.html , if this thing is unclear , transform.forward meant to move your object ONLY at Z axis / direction .

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Forward is not really a forward , as readed here https://docs.unity3d.com/ScriptReference/Vector3-forward.html , it's the shorhand to (0,0,1) , that's mean Vector3.forward increase your "z" value by 1 , NOT make your object really go "forward" .

Edit : transform.forward is the blue axis of the transform in world space , in other words blue line is the Z axis / direction of the transform , read here https://docs.unity3d.com/ScriptReference/Transform-forward.html , if this thing is unclear , transform.forward meant to move your object ONLY at Z axis / direction .

Source Link
user6668201
  • 158
  • 3
  • 21
Loading