-------------------------------------------------------------------------------- -- Function......... : updateWheels -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function Car.updateWheels ( ) -------------------------------------------------------------------------------- if ( this.bGoFront ( ) or this.bGoBack ( ) or ( not this.bTurnLeft ( ) and not this.bTurnRight ( ) ) ) then dynamics.setFriction ( this.hWheelBL ( ), 1.1 ) dynamics.setFriction ( this.hWheelBR ( ), 1.1 ) else dynamics.setFriction ( this.hWheelBL ( ), 0.5 ) dynamics.setFriction ( this.hWheelBR ( ), 0.5 ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------