-------------------------------------------------------------------------------- -- Handler.......... : onTurnLeft -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function Car.onTurnLeft ( b ) -------------------------------------------------------------------------------- this.bTurnLeft ( b ) if ( b ) then if ( this.bTurnRight ( ) ) then this.turnWheels ( 0 ) else this.turnWheels ( -45 ) end else if ( this.bTurnRight ( ) ) then this.turnWheels ( 45 ) else this.turnWheels ( 0 ) end end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------