pixi-wheels

StopLeg

pixi-wheels


pixi-wheels / index / StopLeg

Interface: StopLeg

Defined in: spin/StopPlanner.ts:22

One piece of a planned stop: cover distance degrees in duration ms along ease, forwards unless reverse. A plan is a list of these played back to back, so anticipation, skip and settle are all the same machinery.

Properties#

PropertyTypeDescriptionDefined in
baitAtStart?booleanThe pointer is at the bait when this leg begins.spin/StopPlanner.ts:37
distancenumberDegrees covered, always >= 0.spin/StopPlanner.ts:25
durationnumberMilliseconds. 0 is allowed only for a zero-distance leg.spin/StopPlanner.ts:29
easeEaseFn-spin/StopPlanner.ts:30
endSpeednumber-spin/StopPlanner.ts:33
kindStopLegKind-spin/StopPlanner.ts:23
landsAtEnd?booleanThe pointer is on the landing angle when this leg ends.spin/StopPlanner.ts:35
reversebooleanAgainst the spin direction when true.spin/StopPlanner.ts:27
startSpeednumberAngular speed (deg/s) at the start and end, as the planner intended.spin/StopPlanner.ts:32