Cut one unit's cue sequence over [0, time] into the intervals its cadence
is made of.
Each cue interpolates its unit from from to to, so the ground covered
inside a cue is its straight-line x-z displacement scaled by the same eased
progress sampleFormationMotion places the unit by: the two read one law,
and a member's feet cannot disagree with where its unit stands. Every easing
a formation cue allows is monotone, so an interval never covers negative
ground.
A gap between cues covers nothing. The state a unit holds between two cues
is the earlier cue's exact to, and a jump from that state to the next
cue's from is a discontinuity the sampler already permits rather than
travel a member could walk, so it contributes seconds and no distance. The
gait is retained across it, because a unit that has stopped is still doing
whatever its last cue had it doing.
Turning is reported apart from travel because the two reach a member
differently: every member of a unit covers the unit's translation, while the
ground a turn carries a member over is that member's own distance from the
pivot. A consumer that knows a member's radius composes them; one that does
not still gets the unit's travel exactly.
Cues are ordered by start alone. The builder refuses overlapping or
zero-length cues inside one unit, so no two starts tie in valid input; in
malformed input the input's own order is kept. A negative time yields no
segments.
Cut one unit's cue sequence over
[0, time]into the intervals its cadence is made of.Each cue interpolates its unit from
fromtoto, so the ground covered inside a cue is its straight-line x-z displacement scaled by the same eased progresssampleFormationMotionplaces the unit by: the two read one law, and a member's feet cannot disagree with where its unit stands. Every easing a formation cue allows is monotone, so an interval never covers negative ground.A gap between cues covers nothing. The state a unit holds between two cues is the earlier cue's exact
to, and a jump from that state to the next cue'sfromis a discontinuity the sampler already permits rather than travel a member could walk, so it contributes seconds and no distance. The gait is retained across it, because a unit that has stopped is still doing whatever its last cue had it doing.Turning is reported apart from travel because the two reach a member differently: every member of a unit covers the unit's translation, while the ground a turn carries a member over is that member's own distance from the pivot. A consumer that knows a member's radius composes them; one that does not still gets the unit's travel exactly.
Cues are ordered by start alone. The builder refuses overlapping or zero-length cues inside one unit, so no two starts tie in valid input; in malformed input the input's own order is kept. A negative
timeyields no segments.