void OnDrawGizmos() { Gizmos.color = Color.red; Gizmos.DrawWireSphere(this.transform.position, Radius); Spatial3DTreeVisualizer.DrawTreeGizmos(Point.AllPoints); }
void OnDrawGizmos() { if (DrawTree) { Spatial3DTreeVisualizer.DrawTreeGizmos(Point.AllPoints); } if (DrawShape) { var center0 = this.transform.position - Vector3.right * Radius; var center1 = this.transform.position + Vector3.right * Radius; Gizmos.color = ShapeColor; //Gizmos.DrawWireSphere(center0, Radius); //Gizmos.DrawWireCube(center1, Vector3.one * Radius * 2f); Gizmos.DrawLine(this.transform.position, this.transform.position + (this.transform.right - this.transform.up * 2) * 100); Gizmos.DrawLine(this.transform.position, this.transform.position - (this.transform.right - this.transform.up * 2) * 100); Gizmos.DrawLine(this.transform.position, this.transform.position + Vector3.Cross(this.transform.right - this.transform.up * 2, this.transform.forward)); } }