transform.forward doesn't seem to be right?
Just learning Unity so this could be me being clueless.
transform.forward doesn't seem to be pointing the right way? I don't really know how to explain so I'll post pictures that seem to show it better.
Drawing a line with Debug.DrawLine(transform.position, transform.forward, Color.yellow);
to show.
No idea what's happening with this and any help would be much obliged.
Its possible that you are mixing up local position with global position.
The toggle in the top left next to the pivot/centre toggle?
Answer by Noxee · Mar 27, 2016 at 01:04 AM
Apparently DrawLine hates transform.forward so it's best to use DrawRay instead
Answer by Section-One · Dec 16, 2016 at 06:23 PM
Just stumbled upon this..
DrawLine does not "hate" transform.forward.
The second parameter for DrawLine is an end vector.
The second parameter for DrawRay is a direction vector.
2 different things.