Topic: Line drawing doesn't go through points
We have a bunch of markers, and wish to draw lines connecting them. When using the Drawing API, none of the lines are passing through the marker points.
I've had to scale my markers down to .005f, as in the HTC Vive, they come out huuuuuge otherwise. I'm not sure if this would affect it, and they would otherwise be in the correct place?
I set the line weight to .001f, as again, it just covers the entire map otherwise.
My code's fairly simple:
foreach (double[] coord in geoms)
{
Vector2 pos = new Vector2((float)coord[0], (float)coord[1]);
OnlineMapsMarker3D marker3D = control.AddMarker3D(pos,spawnPrefab);
marker3D.scale = 0.005f;
//positions.Add(pos);
}
double[] positions = geoms.SelectMany(i => i).ToArray();
OnlineMapsDrawingLine line = new OnlineMapsDrawingLine(positions, Color.green, .001f);
OnlineMaps.instance.AddDrawingElement(line);
Any idea?