<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="Fl_Cascadia">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <filename>FL_Cascadia.i3d</filename>
    <size width="4.5" length="7"/>
	
    <wheels autoRotateBackSpeed="4">
        <wheel rotSpeed="1" repr="0>0" driveNode="0>0" radius="0.55" restLoad="2.0" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="60" damper="30" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="8" mass="2" width="0.52" hasParticles="true"/>
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1" radius="0.55" restLoad="2.0" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="60" damper="30" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="8" mass="2" width="0.52" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>2" driveNode="0>2" radius="0.55" restLoad="2.0" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="60" damper="30" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="8" mass="2" width="0.52" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>3" driveNode="0>3" radius="0.55" restLoad="2.0" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="60" damper="30" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="8" mass="2" width="0.52" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>4" driveNode="0>4" radius="0.55" restLoad="2.0" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="60" damper="30" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="8" mass="2" width="0.52" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>5" driveNode="0>5" radius="0.55" restLoad="2.0" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="60" damper="30" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="8" mass="2" width="0.52" hasParticles="true"/>
    </wheels>
	
    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4"/>
	
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1"/>
        <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3"/>
        <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="4" wheelIndex2="5"/>
        <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1"/>
        <!-- front-back -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="2" differentialIndex2="3"/>
        <!-- front-back -->
    </differentials>
	
    <motor torqueScale="3.23" minRpm="1000" maxRpm="3500" maxBackwardSpeed="16" brakeForce="40" lowBrakeForceScale="0.12" lowBrakeForceSpeedLimit="1" minForwardGearRatio="8" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.5" torque="1.7"/>
        <torque normRpm="0.55" torque="1.9"/>
        <torque normRpm="0.65" torque="2.1"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="2"/>
        <torque normRpm="1" torque="0.7"/>
    </motor>
	
    <fuelCapacity>1500</fuelCapacity>
    <fuelUsage>200</fuelUsage>
	
    <cameras count="2">
        <camera1 index="0>10|0" rotatable="true" rotateNode="10" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="40">
            <raycastNode index="0>16"/>
            <raycastNode index="0>17"/>
            <raycastNode index="0>18"/>
        </camera1>
        <camera2 index="0>11" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
	
    <lights>
        <low>
            <light realLight="0>21|0" decoration="0>21|1" lightTypes="0"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>21|0" decoration="0>21|1" lightTypes="0"/>
        </high>
        <!--to be adjusted manually-->
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
        </states>
    </lights>
	
    <brakeLights>
        <brakeLight decoration="0>21|4"/>
    </brakeLights>
	
    <turnLights>
        <turnLightLeft decoration="0>21|2"/>
        <turnLightRight decoration="0>21|3"/>
    </turnLights>
	
    <reverseLights>
        <reverseLight decoration="0>21|5"/>
		<reverseLight decoration="0>21|2"/>
		<reverseLight decoration="0>21|3"/>
    </reverseLights>
	
    <lightsaddon lightsStayOn="true" strobesAreBeacons="true">
        <light type="work" index="0>21|6" inputName="FLfoglights" helptext="FLfoglights" stayOn="true"/>
		<light type="work" index="0>21|7" inputName="FLtrailerlights" helptext="FLtrailerlights" stayOn="true"/>
    </lightsaddon>
	
    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
        <fuel animName="fuelDisplay"/>
    </indoorHud>
	
    <animations>
        <animation name="rpmDisplay">
            <part node="0>13|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -220"/>
        </animation>
        <animation name="speedDisplay">
            <part node="0>13|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -265"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>13|2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -65"/>
        </animation>
    </animations>
	
    <passenger>
        <place passengerIndex="0>19|0" passengerNickNameRenderNode="0>19|2" exitPointIndex="0>19|3" index="0>19|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.6" transMin="0" transMax="0"/>
    </passenger>
	
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>
	
    <attacherJoints>
        <attacherJoint index="0>7" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
	<attacherJointConfigurations>
        <attacherJointConfiguration name="$l10n_configuration_valueDefault" price="0">
            <objectChange node="0>20" visibilityActive="false"/>
        </attacherJointConfiguration>
        <attacherJointConfiguration name="$l10n_configuration_trailerAttacherBack" price="700">
            <attacherJoint index="0>20|0|0" jointType="trailer" transNode="0>20|0" transNodeMinY="0.323" transNodeMaxY="0.95" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
                <schema position="1 0" rotation="0" invertX="false" />
                <attachSound file="$data/sounds/attach.wav" pitchOffset="1.20" volume="1.10"  indoorVolumeFactor="0.75" indoorLowpassGain="0.75"/>
            </attacherJoint>
            <attacherJoint index="0>20|0|0" jointType="trailerLow" transNode="0>20|0" transNodeMinY="0.323" transNodeMaxY="0.95" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
                <schema position="1 0" rotation="0" invertX="false" />
                <attachSound file="$data/sounds/attach.wav" pitchOffset="1.20" volume="1.10"  indoorVolumeFactor="0.75" indoorLowpassGain="0.75"/>
            </attacherJoint>
            <objectChange node="0>20" visibilityActive="true"/>
        </attacherJointConfiguration>
    </attacherJointConfigurations>
	
    <steering index="0>14|0" indoorRotation="360" outdoorRotation="40"/>
    <characterNode index="0>15|0" cameraMinDistance="2.0" filename="$dataS2/character/player/player.xml" spineRotation="180 0 90">
        <target ikChain="rightFoot" targetNode="0>15|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>15|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>14|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>14|0|1" setDirty="true"/>
    </characterNode>
	
    <ai>
        <trafficCollisionTrigger index="0>9"/>
    </ai>
	
    <exhaustEffects>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>12" minRpmColor="0 0 0 1" maxRpmColor="0 0 0 10" minRpmScale="0.2" maxRpmScale="0.5" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
	
    <motorStartDuration>2500</motorStartDuration>

    <motorStartSound file="$data/vehicles/steerable/americanTruck/americanTruck_start.wav" pitchOffset="0.77" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.95"/>
    <motorSound file="$data/vehicles/steerable/americanTruck/americanTruck_idle.wav"       pitchOffset="0.77" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.95" pitchMax="1.20" volumeMin="0.50" volumeMinSpeed="36" pitchScale="0.02" />
    <motorStopSound file="$data/vehicles/steerable/newHolland/newHollandT8320_stop.wav"    pitchOffset="0.90" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.65" />

    <motorSoundRun file="$data/vehicles/steerable/tatra/tatraPhoenix_run.wav"              pitchOffset="0.55" volume="0.75" indoorVolumeFactor="0.50" indoorLowpassGain="0.75" pitchMax="1.10" />
    <motorSoundLoad file="$data/vehicles/steerable/newHolland/newHollandT9560_load.wav"    pitchOffset="0.45" volume="0.90" indoorVolumeFactor="0.50" indoorLowpassGain="0.75" pitchMax="1.08"  minimalVolumeFactor="0.05" />
    <gearboxSound file="$data/sounds/transmission/transmissionCVT.wav"                     pitchOffset="0.50" volume="0.05" indoorVolumeFactor="0.62" indoorLowpassGain="0.75" pitchMax="0.95"  volumeMax="0.60"    reverseVolumeMax="0.30"/>
    <retarderSound file="$data/sounds/transmission/retarderET2015.wav"                     pitchOffset="0.48" volume="1.00" indoorVolumeFactor="0.65" indoorLowpassGain="0.80" pitchMax="0.87"  volumeMax="0.58"    minSpeed="6" />

    <brakeCompressor capacity="10000" fillSpeed="950" />
    <maximalAirConsumptionPerFullStop value="3050" />
    <brakeCompressorStartSound file="$data/vehicles/steerable/jcb/jcb_module.wav"                 pitchOffset="1.08" volume="0.38" indoorVolumeFactor="0.35" indoorLowpassGain="0.95" />
    <brakeCompressorRunSound file="$data/sounds/technicalAccessories/compressor_idle.wav"         pitchOffset="0.78" volume="0.10" indoorVolumeFactor="0.25" indoorLowpassGain="0.95"    pitchMax="0.85"  />
    <brakeCompressorStopSound file="$data/sounds/technicalAccessories/pressure_regulator.wav"     pitchOffset="1.15" volume="0.40" indoorVolumeFactor="0.50" indoorLowpassGain="0.95" />
    <compressedAirSound file="$data/sounds/technicalAccessories/brakeSmall.wav"                   pitchOffset="1.09" volume="0.50" indoorVolumeFactor="0.90" indoorLowpassGain="0.95" />
    <airReleaseValveSound file="$data/sounds/technicalAccessories/brakeBig.wav"                   pitchOffset="1.05" volume="0.40" indoorVolumeFactor="0.75" indoorLowpassGain="0.95"/>
    <reverseDriveSound    file="$data/sounds/reverseDrivingBeep_3.wav"                            pitchOffset="1.00" volume="1.00" indoorVolumeFactor="0.20" indoorLowpassGain="0.75" />
    <attachSound file="$data/sounds/truck_attach.wav"                                             pitchOffset="1.00" volume="1.00" indoorVolumeFactor="0.25" indoorLowpassGain="0.90"/>
    <hydraulicSound file="$data/sounds/hydraulicUp.wav"                                           pitchOffset="1.00" volume="0.45" indoorVolumeFactor="0.25" indoorLowpassGain="0.90" />
    <honkSound file="$data/sounds/hornBig.wav"                                                    pitchOffset="0.94" volume="1.25" indoorVolumeFactor="0.60" indoorLowpassGain="0.90"  radius="100" innerRadius="18.775" />
	
    <components count="1">
        <component1 centerOfMass="-0.00 0.70 0.74" solverIterationCount="10"/>
    </components>
	
	<schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
	
    <storeData>
        <name>
            <en>Freight Liner Cascadia</en>
		</name>
        <image>store.dds</image>
        <price>75000</price>
        <dailyUpkeep>125</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FREIGHTLINER</brand>
        <category>winston9587</category>
    </storeData>
</vehicle>
