private void DrawSceneTangentLine() { Handles.color = Color.blue; for (int i = 0; i < 100; i++) { Vector3 pos = GetWorldPosition(path.GetPointDetail(i)); Vector3 v = path.GetTangentForDetail(i); Handles.DrawLine(pos, pos + v.normalized); } }
public Vector3 GetTangentForDetail(float t, float allsteps = 100) { return(Path ? Path.GetTangentForDetail(t, allsteps) : Vector3.zero); }