void PlotFuturePath(float time, Vector3 position) { float dt = 0.05f; for (int i = 0; i < futurePathPlotSteps; i++) { var v = GetSmoothRandomVelocity(time + i * dt, position); var idx = i - plotStartStep; if (idx >= 0 && idx % plotEveryNSteps == 0) { Draw.Arrowhead(position, v, 0.1f, gizmoColor); } position += v.normalized * dt; } }