-------------------------------------------------------------------------------- -- Function......... : setupCar -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function CarDemoMain.setupCar ( ) -------------------------------------------------------------------------------- local s = application.getCurrentUserScene ( ) if ( s ~= nil ) then local c = scene.createRuntimeObject ( s, "Car" ) if ( c ~= nil ) then this.hCar ( c ) --object.setTranslation ( c, -40, 10, 0, object.kGlobalSpace ) else log.error ( "could not create car !" ) end end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------