public override void DrawShapes(Camera cam) { _parent ??= transform.parent; var bot = new Vector3(_parent.position.x, 0, _parent.position.z); using (Draw.Command(cam)) { Draw.BlendMode = ShapesBlendMode.Screen; Draw.DiscGeometry = DiscGeometry.Flat2D; Draw.Matrix = Matrix4x4.TRS(bot, Quaternion.Euler(90, 0, 0), Vector3.one); Draw.Color = Color.white; Draw.Thickness = 3; Draw.DashStyle = DashStyle.MeterDashes(DashType.Basic, 2, 2); Draw.UseDashes = true; Draw.Ring(Vector3.zero, Quaternion.identity, 55); } }
public override void DrawShapes(Camera cam) { if (_parent == null) { _parent = transform.parent; } var pos = _parent.position; var bot = new Vector3(pos.x, 0, pos.z); var rot = Quaternion.Euler(90, 0, 0); using (Draw.Command(cam)) { Draw.BlendMode = ShapesBlendMode.Screen; Draw.DiscGeometry = DiscGeometry.Flat2D; Draw.Color = Color; Draw.Thickness = 3; Draw.DashStyle = DashStyle.MeterDashes(DashType.Basic, 2, 2); Draw.UseDashes = DrawDashed; Draw.Ring(bot, rot, 50 + (DrawDashed ? 5 : 0)); } }