SetRoll() public method

public SetRoll ( double roll ) : void
roll double
return void
Beispiel #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.SetRoll(_currentOrientation * (1 - ratio) + _targetOrientation * ratio);
        }
Beispiel #2
0
 public override void Finalize(SpaceCraftBase spaceCraft)
 {
     spaceCraft.SetRoll(_targetOrientation);
 }