-------------------------------------------------------------------------------- -- Function......... : updateStopGlows -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function Car.updateStopGlows ( ) -------------------------------------------------------------------------------- if ( this.bGoBack ( ) or ( this.bTurnLeft ( ) and not this.bGoFront ( ) ) or ( this.bTurnRight ( ) and not this.bGoFront ( ) ) ) then shape.setMeshOpacity ( this.hStopGlowL ( ), 1 ) shape.setMeshOpacity ( this.hStopGlowR ( ), 1 ) --object.sendEvent ( application.getCurrentUserMainCamera ( ), "CarDemoCamera", "onMoveBack", false ) else shape.setMeshOpacity ( this.hStopGlowL ( ), 0 ) shape.setMeshOpacity ( this.hStopGlowR ( ), 0 ) --object.sendEvent ( application.getCurrentUserMainCamera ( ), "CarDemoCamera", "onMoveBack", true ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------