SetYaw() public method

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