// Interpolate between current and target orientation over the duration public override void Update(double elapsedTime, SpaceCraftBase spaceCraft) { double ratio = (elapsedTime - StartTime) / Duration; spaceCraft.SetYaw(_currentOrientation * (1 - ratio) + _targetOrientation * ratio); }
public override void Finalize(SpaceCraftBase spaceCraft) { spaceCraft.SetYaw(_targetOrientation); }