Hi all,
I’ve been struggling to get my bullets to point in the correct direction. Take a look at this;
I have used Debug.Draw to draw the new Forward direction in Blue, and the Up direction in Green.
However, when I pass these exact same variables to the Transform.LookRotation() function, the actual rotation is not the same one (as can be seen by the gizmo in the screenshot above).
I would expect the object, and Gizmo, to actually be rotated in the calculated forward direction, but it’s somehow orthogonal to it. So for some reason, LookRotation does not in fact look at the direction!?
Now, I realize that this function has been here a long time, and I’m probably just missing something as a Unity newbie. But what?
Help please
Using Unity 2020.2