/// <summary> /// Draws a wire cylinder with an origin, rotation and size using the specified color. /// </summary> /// <param name="origin">The position of the cylinder.</param> /// <param name="rotation">A rotation matrix to set the orientation of the cylinder. The cylinder is by default XZ aligned.</param> /// <param name="size">The size of the cylinder.</param> /// <param name="color">The color of the cylinder.</param> public void DrawCylinder(Vector3 origin, Matrix rotation, Vector3 size, Color color) { var world = CylinderGizmoGeometry.CalculateWorld(origin, rotation, size); AddDrawInstance(Cylinder, color, world); }