Exemple #1
0
 private void OnDrawGizmos()
 {
     GizmosEx.PushColor(Color.green);
     Gizmos.DrawRay(this.transform.position + Vector3.up * 0.1f, Vector3.down * this.GroundCheckDistance);
     Gizmos.DrawRay(this.transform.position, this.GroundNormal.normalized);
     GizmosEx.PopColor();
 }
        private void OnDrawGizmos()
        {
            GizmosEx.PushMatrix(this.transform.localToWorldMatrix);
            GizmosEx.PushColor(Color.red);
            GizmosEx.DrawXYWirePlane(this.Width, this.Height);
            GizmosEx.PopColor();
            GizmosEx.PopMatrix();
            GizmosEx.PopMatrix();

            GizmosEx.PushColor(Color.cyan);
            GizmosEx.DrawArrow(this.LastProjectedPoint, this.LastProjectedPoint + this.LastProjectedVector);
            GizmosEx.PopColor();
        }