public override void skipTo(float timelineTime) { caliper = PropSimObject.getElement(Caliper.BehaviorName) as Caliper; caliper.setMeasurement(Millimeters * ((timelineTime - StartTime) / Duration)); caliper.moveToMeasurement(Millimeters, Duration - (timelineTime - StartTime)); }
public override void started(float timelineTime, Clock clock) { caliper = PropSimObject.getElement(Caliper.BehaviorName) as Caliper; caliper.moveToMeasurement(Millimeters, Duration); }