<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <storeData>
        <name>F550 Dump Truck</name>
        <specs>
            <power>420</power>
            <maxSpeed>50</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.dds</image>
        <price>56000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FORD</brand>
        <category>cars</category>
        <shopTranslationOffset>0 0.11 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2719756</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>561366</indexBufferMemoryUsage>
        <textureMemoryUsage>22588768</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

	
    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>f550.i3d</filename>
        <size width="3.5" length="7"/>
		<components count="1">
			<component centerOfMass="0 0.5 1.25" solverIterationCount="10" mass="5245"  />
		</components>		
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>		
	
    <wheels>
        <wheelConfigurations>
             <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="3">
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontLeft"    radius="0.40" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.35" spring="35" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontRight"  radius="0.40" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.35" spring="35" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackLeft"   radius="0.40" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.35" spring="35" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackRight"  radius="0.40" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.35" spring="35" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>					
            </wheelConfiguration>				
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="80" rotMax="45" rotCenterWheel1="2" rotCenterWheel2="3" />
        </ackermannSteeringConfigurations>
    </wheels>
	
	<lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
			<state lightTypes="0 1 2"/>
        </states>
        <realLights>
            <low>
                <light node="lowBeamReal" lightTypes="1"/>
                <light node="highBeamReal" lightTypes="2"/>
            </low>
            <high>
                <light node="lowBeamReal" lightTypes="1"/>
                <light node="highBeamReal" lightTypes="2"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="orangeDefault" lightTypes="0"/>
            <defaultLight shaderNode="lowBeamStatic" lightTypes="1"/>
            <defaultLight shaderNode="orangeDumpDefault" lightTypes="0"/>
            <defaultLight shaderNode="redDumpDefault" lightTypes="0"/>
            <defaultLight shaderNode="leftRedRear" lightTypes="0"/>
            <defaultLight shaderNode="rightRedRear" lightTypes="0"/>
            <defaultLight shaderNode="rearRedTails" lightTypes="0"/>
            <defaultLight shaderNode="highBeamStatic" lightTypes="2"/>
        </defaultLights>
        <brakeLights>
            <brakeLight shaderNode="leftRedRearBrake"/>
            <brakeLight shaderNode="rightRedRearBrake"/>
            <brakeLight shaderNode="rearRedTailsBrake"/>
        </brakeLights>
        <reverseLights>
            <reverseLight shaderNode="rearWhiteTails"/>
        </reverseLights>
        <turnLights>
			<turnLightLeft shaderNode="leftturn"/>
			<turnLightRight shaderNode="rightturn"/>
			<turnLightLeft shaderNode="leftturn1"/>
			<turnLightRight shaderNode="rightturn1"/>
			<turnLightLeft shaderNode="leftrearturn"/>
			<turnLightRight shaderNode="rightrearturn"/>
        </turnLights>
        <sounds>
            <switchLight template="SWITCH_01"/>
            <turnLight template="SWITCH_TURNLIGHT"/>
        </sounds>
		<beaconLights>
            <beaconLight node="beacon01" filename="$data/shared/assets/beaconLights/lizard/beaconLight02.xml"/>
            <beaconLight node="beacon02" filename="$data/shared/assets/beaconLights/lizard/beaconLight02.xml"/>
		</beaconLights>
    </lights>
   
    <enterable isTabbable="true" >
        <enterReferenceNode node="0>9"/>
        <exitPoint node="exitPoint"/>
		
        <cameras count="2">
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="2.3" transMax="30" translation="0 0 3.4" rotation="-20 180 0">
                
            </camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0"  />
        </cameras>
		
        <characterNode node="playerSkin" cameraMinDistance="1.5" spineRotation="-90 0 90" >
            <target ikChain="rightFoot" targetNode="playerRightFootTarget" />
            <target ikChain="leftFoot"  targetNode="playerLeftFootTarget" />
            <target ikChain="rightArm"  targetNode="playerRightHandTarget"/>
            <target ikChain="leftArm"   targetNode="playerLeftHandTarget"/>
        </characterNode>

		<mirrors>
            <mirror node="mirrors" prio="1"/>
        </mirrors>		
		
    </enterable>
	
	
	
     <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
	<steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60"/>
    </drivable>  
 
 
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="2" usage="70" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>


        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
					<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="1" wheelIndex2="2"/>
					<!-- front left-right -->
					<differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="3" wheelIndex2="4"/>
					<!-- back left-right -->
					<differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
					<!-- front-back -->
				</differentials>
            </differentialConfiguration>
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="F550" hp="300" price="0">
                <motor torqueScale="0.6" minRpm="1000" maxRpm="6000" maxForwardSpeed="120" maxBackwardSpeed="45" brakeForce="8" lowBrakeForceScale="0.22" rotInertia="0.0015">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200"/>
            </motorConfiguration>
        </motorConfigurations>

		<exhaustEffects>
			<exhaustEffect node="exhaustParticle" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.4" minRpmScale="0.05" maxRpmScale="0.5" xzRotationsOffset="0 0" xzRotationsForward="-100 0" xzRotationsBackward="-50 0" xzRotationsLeft="0 50" xzRotationsRight="0 -50" />
		</exhaustEffects>
		
        <motorStartDuration>2000</motorStartDuration>
        <sounds externalSoundFile="sounds/f550_dump.xml">
		</sounds>	
		
	</motorized>

    <attacherJoints>
        <attacherJoint node="trailerAttacherJointBack" jointType="trailer" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="trailerAttacherJointBack" jointType="trailerLow" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>

        <attacherJoint node="snowplow" jointType="skidSteer"  allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="5 5 5" transLimitSpring="7500 7500 7500" transLimitDamping="5 5 5" >
            <schema position="1 0.4" rotation="0" invertX="true" />
        </attacherJoint>		
		
        <sounds>
            <attach template="ATTACH_01" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" />
        </sounds>
    </attacherJoints>
	<connectionHoses>
        <target attacherJointIndices="1 2" type="electric" node="electricBack" socket="electric"/>
    </connectionHoses>
 
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="8000" >
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTarget" startZ="1.4" endZ="-2.7" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="500" />
                </fillUnits>
            </fillUnitConfiguration>			
        </fillUnitConfigurations>
    </fillUnit>	

	<fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.2" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
		
       <unloadInfos>
			<unloadInfo fillVolumeIndex="1" >
                <node node="fillVolumeHeightNodesBack1" width="1.3" length="0.5" minHeight="0.8" priority="2" />
                <node node="fillVolumeHeightNodesBack2" width="1.3" length="0.5" minHeight="0.8" priority="2" />
                <node node="fillVolumeHeightNodesFront1" width="1.3" length="2.6" />
                <node node="fillVolumeHeightNodesFront2" width="1.3" length="2.6" />
            </unloadInfo>
        </unloadInfos>
        <heightNodes>
            <heightNode fillVolumeIndex="1" >
                <refNode node="fillVolumeHeightNodesBack1" />
                <refNode node="fillVolumeHeightNodesBack2" />
                <node node="effectNodesBack" baseScale="1 1 1" transAxis="0 1 0" transMax="0 0.5 0" />
            </heightNode>		
        </heightNodes>		
		
    </fillVolume>  
	
    <animations>
		<animation name="tipAnimationBack">
            <part node="0>16|0"     startTime="1" endTime="10" startRot="0 0 0" endRot="50 0 0"/>   
            <part node="0>16"       startTime="1" endTime="10" startRot="0 0 0" endRot="-40 0 0"/> 
            <part node="0>16|8|0|0" startTime="0.3" endTime="8" startRot="0 0 0"  endRot="45 0 0" />		
        </animation>		
    </animations> 
	
	<cylindered>
        <movingTools>
            <movingTool node="dumpBed" playSound="true">
                <dependentPart node="mainLift" />
				<dependentPart node="bedLift" />
				<dependentPart node="piston" />
				<dependentPart node="pistonPunch" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="mainLift" referencePoint="liftRef" localReferencePoint="bedLift" referenceFrame="bedLiftRef">
                <dependentPart node="bedLift"/>
                <dependentPart node="piston"/>
            </movingPart>
			<movingPart node="bedLift" referencePoint="liftRef" referenceFrame="liftRef" />
			<movingPart node="piston" referencePoint="pistonRef" referenceFrame="0>" lockAxis="3">
            <translatingPart node="pistonPunch"/>
			</movingPart>
        </movingParts>
    </cylindered>	
	
   <dischargeable>	
        <dischargeNode node="dischargeNodeBack" emptySpeed="1000" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="2.5" length="0.5" zOffset="0.5"/>
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectParticleBack" effectClass="ParticleEffect" />
                    <effectNode effectNode="effectGrainBack" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistanceNode="dischargeNodeBack" extraDistance="0.2"/>
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" />
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>	
	
	
    <ai>
        <collisionTrigger node="aiCollisionTrigger" />
    </ai>	
	
    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-3.4" maxZ="3.6" yOffset="0.6" />
    </foliageBending>
	
	<baseMaterial>
        <material name="cabcolor" baseNode="f550Cab">
            <shaderParameter name="colorMat0" value="1 1 1 32"/>
        </material>
        <material name="dumpBody" baseNode="dumpBed">
            <shaderParameter name="colorMat2" value="1 1 1 32"/>
        </material>
    </baseMaterial>
	
    <baseMaterialConfigurations price="100" useDefaultColors="true" defaultColorIndex="17">
        <material name="cabcolor" shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>
    <designMaterialConfigurations price="100" useDefaultColors="true" defaultColorIndex="7">
        <material name="dumpBody" shaderParameter="colorMat2"/>
    </designMaterialConfigurations>
	
	<dischargeable requiresTipOcclusionArea="false"/>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>	
	
	
	

    <i3dMappings>
        <i3dMapping id="F550_main_component" node="0>" />
        <i3dMapping id="exitPoint" node="0>9" />
        <i3dMapping id="outdoorCameraTarget" node="0>4" />
        <i3dMapping id="outdoorCamera1" node="0>4|0" />
        <i3dMapping id="indoorCamera1" node="0>5" />	
        <i3dMapping id="steeringWheel" node="0>6|0" />
        <i3dMapping id="playerLeftHandTarget" node="0>6|0|0" />
        <i3dMapping id="playerRightHandTarget" node="0>6|0|1" />
        <i3dMapping id="playerSkin" node="0>7|0" />
        <i3dMapping id="playerRightFootTarget" node="0>7|1" />
        <i3dMapping id="playerLeftFootTarget" node="0>7|2" />
        <i3dMapping id="exhaustParticle" node="0>10" />
        <i3dMapping id="aiCollisionTrigger" node="0>8" />
        <i3dMapping id="trailerAttacherJointBack" node="0>12|0|0|0|0" />	
        <i3dMapping id="wheelFrontLeft" node="0>0" />
        <i3dMapping id="wheelFrontRight" node="0>1" />
        <i3dMapping id="wheelBackLeft" node="0>2" />
        <i3dMapping id="wheelBackRight" node="0>3" />
        <i3dMapping id="snowplow" node="0>11|14|0" />		
        <i3dMapping id="exactFillRootNode" node="0>16|2" />	
        <i3dMapping id="fillAutoAimTarget" node="0>16|3" />	
        <i3dMapping id="fillVolume" node="0>16|14|1" />
        <i3dMapping id="fillVolumeHeightNodesBack1" node="0>16|6|1|0|0" />
        <i3dMapping id="fillVolumeHeightNodesBack2" node="0>16|6|1|0|1" />
        <i3dMapping id="fillVolumeHeightNodesFront1" node="0>16|6|1|0|2" />
        <i3dMapping id="fillVolumeHeightNodesFront2" node="0>16|6|1|0|3" />
        <i3dMapping id="fillVolumeHeightNodesBackGrainDoor" node="0>16|6|1|0|4" />
        <i3dMapping id="effectNodesBack" node="0>16|8|0|0" />
        <i3dMapping id="dischargeNodeBack" node="0>16|4" />	
        <i3dMapping id="effectParticleBack" node="0>16|8|0|1|0" />	
        <i3dMapping id="effectGrainBack" node="0>16|8|0|0|0" />
        <i3dMapping id="effectSmokeBack" node="0>16|8|0|0|1" />	
        <i3dMapping id="tailgate" node="0>16|0" />
        <i3dMapping id="unloadInfo" node="0>16|6|2" />		
        <i3dMapping id="dumpBed" node="0>16" />			
        <i3dMapping id="f550Cab" node="0>11|0" />	
		<i3dMapping id="electricBack" node="0>12|0|0|0|1"/>
		<i3dMapping id="lowBeamReal" node="0>13|5"/>
        <i3dMapping id="highBeamReal" node="0>13|6"/>
        <i3dMapping id="orangeDefault" node="0>13|0"/>
        <i3dMapping id="lowBeamStatic" node="0>13|1"/>
        <i3dMapping id="highBeamStatic" node="0>13|2"/>
        <i3dMapping id="orangeDumpDefault" node="0>16|16|0"/>
        <i3dMapping id="redDumpDefault" node="0>16|16|1"/>
        <i3dMapping id="leftRedRear" node="0>16|16|2"/>
        <i3dMapping id="rightRedRear" node="0>16|16|3"/>
        <i3dMapping id="rearRedTails" node="0>13|3"/>
        <i3dMapping id="rearWhiteTails" node="0>13|4"/>
        <i3dMapping id="rearRedTailsBrake" node="0>13|7"/>
        <i3dMapping id="leftRedRearBrake" node="0>16|16|4"/>
        <i3dMapping id="rightRedRearBrake" node="0>16|16|5"/>
        <i3dMapping id="beacon01" node="0>16|16|6"/>
        <i3dMapping id="beacon02" node="0>16|16|7"/>
		<i3dMapping id="leftturn" node="0>13|8"/>
		<i3dMapping id="rightturn" node="0>13|9"/>
		<i3dMapping id="leftturn1" node="0>13|10"/>
		<i3dMapping id="rightturn1" node="0>13|11"/>
		<i3dMapping id="leftrearturn" node="0>16|16|8"/>
		<i3dMapping id="rightrearturn" node="0>16|16|9"/>
        <i3dMapping id="bedLiftSet" node="0>14"/>		
        <i3dMapping id="mainLift" node="0>14|0"/>
        <i3dMapping id="liftRef" node="0>16|1"/>
        <i3dMapping id="bedLift" node="0>14|0|0"/>
        <i3dMapping id="bedLiftRef" node="0>14|1"/>
        <i3dMapping id="piston" node="0>14|0|1"/>
        <i3dMapping id="pistonRef" node="0>14|0|0|0"/>
        <i3dMapping id="pistonPunch" node="0>14|0|1|0"/>
        <i3dMapping id="mirrors" node="0>11|11"/>
    </i3dMappings>		
	
</vehicle>
