Linecast with transforms rotation?
Hello, I am using Physics2d.LineCast to create linecast this way (debbuging for now only)
Debug.DrawLine(transform.position + new Vector3(0, 1, 0), transform.position + (new Vector3(1 * direction, 1, 0)));
Unfortunately its not following gameobject`s rotation, this line keep the same rotation all the time, even though my transform gets rotated, I would be grateful for some help, thank you
Comment
Your answer
