public SetRelativePitch ( double pitch ) : void | ||
pitch | double | |
return | void |
// Interpolate between current and target orientation over the duration public override void Update(double elapsedTime, SpaceCraftBase spaceCraft) { double ratio = (elapsedTime - StartTime) / Duration; spaceCraft.SetRelativePitch(_currentRelativePitch * (1 - ratio) + _targetRelativePitch * ratio); }
public override void Finalize(SpaceCraftBase spaceCraft) { spaceCraft.SetRelativePitch(_targetRelativePitch); }