gizmo.drawline question : point a to b using transform.right as point
Which will draw a line 1 unity long starting at the origin. As for your code, what I think you want is:
Gizmos.DrawLine (transform.position, transform.position + transform.right * dist);
link














