csharp
public sealed class TrajectoryCurveA polyline over clip phase, decimated against a tolerance.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The runtime side is a phase-keyed lookup and a lerp, which is the whole of it: a goal that moves is a goal sampled per phase, and nothing about the arbiter or the solver needs to know that it did.
Phase, so a retimed clip needs no re-marking — the same reason a constraint tag's span is normalised.
Fields and properties (2)
public int CountHow many keys survived.
public ReadOnlySpan<TrajectoryKey> KeysThe keys.
Methods (4)
public TrajectoryCurve(params ReadOnlySpan<TrajectoryKey> keys)Builds a curve from keys already in phase order.
public static TrajectoryCurve Constant(Vector3 value)A curve that is one value everywhere.
public Vector3 Sample(float phase)What the curve is at a phase.
public static TrajectoryCurve Decimate(ReadOnlySpan<TrajectoryKey> source, float tolerance, out CurveCompressionReport report)Removes the keys a linear sampler would have produced anyway.
Used by (4)
- GoalTrajectoryVixen.Animation
- SurfacePathVixen.Animation
- TrajectoryFrameVixen.Animation
- TrajectoryTestsVixen.Animation.Tests