PoseRecorder class final

Writes a PoseRecord down as a run is played: every everyth step, whichever bodies the caller hands it.

Constructors

PoseRecorder({int every = 4, double stepSeconds = 1.0 / 60.0})
A recorder taking a frame every every steps (four by default) of stepSeconds (a sixtieth). Asserts every is above nought.

Properties

every → int
Count of steps between frames.
final
hashCode → int
The hash code for this object.
no setterinherited
length → int
Count of frames recorded so far.
no setter
recorded → PoseRecord
The record so far.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepSeconds → double
The simulation's fixed step, in seconds.
final

Methods

due(int step) → bool
Whether step is one a frame is taken at, so a caller gathers its bodies only then.
forgetAfter(int step) → void
Forgets frames after step: a run rewound and lived again from there.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(int step, Iterable<BodyPose> bodies) → void
Records bodies as they were after step, if step is due.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited