// ------------------------------------------------------------------------ // drawing of lines, circles and (filled) disks to annotate steering // behaviors. When called during OpenSteerDemo's simulation update phase, // these functions call a "deferred draw" routine which buffer the // arguments for use during the redraw phase. // // note: "circle" means unfilled // "disk" means filled // "XZ" means on a plane parallel to the X and Z axes (perp to Y) // "3d" means the circle is perpendicular to the given "axis" // "segments" is the number of line segments used to draw the circle // draw an opaque colored line segment between two locations in space public virtual void Line(Vector3 startPoint, Vector3 endPoint, Color color) { if (isEnabled == true && drawer != null) { drawer.Line(startPoint, endPoint, color); } }
public override void Draw(IDraw d) { d.Line(From, To, Color.Cyan); }