コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public Vector3 GetTangentForDetail(float t, float allsteps = 100)
 {
     return(Path ? Path.GetTangentForDetail(t, allsteps) : Vector3.zero);
 }