I want to draw ray to check how my raycast works in Unity editor.
However all above code doesn't seems to work, drawn ray is always super long.
float m_Distance = 1f; // Try 1 Vector3 forward = transform.TransformDirection(Vector3.forward) * m_Distance; Debug.DrawRay(transform.position, forward, Color.green); // Try 2 Debug.DrawRay(transform.position, transform.forward.normalized * m_Distance);
Is there an anything wrong with my approach? Using Unity 2018.3.12f1.