public static void drawConeLine(Vector3 start, Vector3 end, float radius, int uSegments = 8, int vSegments = 1) { var uvTransform = new UvLineTransform(start, end); if (uvTransform.len <= 0.0f) { return; } drawWireCone(start, radius, uvTransform.len, uvTransform.rotation, 0.0f, uSegments, vSegments); }
public static void drawConeLineAdaptive(Vector3 start, Vector3 end, float radius, int uSegments = 8, float vSize = 1.0f) { var uvTransform = new UvLineTransform(start, end); if (uvTransform.len <= 0.0f) { return; } int vSegments = 1; if (vSize > 0.0f) { vSegments = Mathf.CeilToInt(uvTransform.len / vSize); } drawWireCone(start, radius, uvTransform.len, uvTransform.rotation, 0.0f, uSegments, vSegments); }