SetRelativePitch() public method

public SetRelativePitch ( double pitch ) : void
pitch double
return void
Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
 public override void Finalize(SpaceCraftBase spaceCraft)
 {
     spaceCraft.SetRelativePitch(_targetRelativePitch);
 }