In this video we copy the line Vector3.forward and change Vector3 to -Vector3.
Is there a specific reason that we are using the negative on the vector3 as opposed to Vector3.back?
In this video we copy the line Vector3.forward and change Vector3 to -Vector3.
Is there a specific reason that we are using the negative on the vector3 as opposed to Vector3.back?
Hi,
No, there is no special reason. I assume Rick wanted to show that we are able to do some vector maths here. In our case, Vector3.back is the same as the result of -Vector3.forward.
See also:
I also just implemented this with Vector3.back
β¦ Itβs just mathematics, wherever you want to factor in that β-1β; still, one could argue that sticking with Vector3.forward
makes sense as well: intuitively, this is saying βweβre not changing the rotation axis, but we are changing the rotation valueβ where a negative value indicates rotating in the opposite direction β¦
But well, tomato to-mah-to Depending on how you look at it and formulate it, I think both can make just the same amount of sense (you could say that a rotation cannot be negative, so itβs the axis that has to flip if you want to rotate in the other direction)
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.