﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="IFAW50">
    <description/>
    <filename>IFAW50.i3d</filename>
   <wheels autoRotateBackSpeed="2.0">
        <wheel rotSpeed="1" repr="1" driveNode="1|0" radius="0.57" restLoad="8.0" initialCompression="20" forcePointRatio="0.2" suspTravel="0.2" spring="90" damper="90" hasTireTracks="true" tireTrackAtlasIndex="4" mass="1.8" hasParticles="true"/>
        <wheel rotSpeed="1" repr="2" driveNode="2|0" radius="0.57" restLoad="8.0" initialCompression="20" forcePointRatio="0.2" suspTravel="0.2" spring="90" damper="90" hasTireTracks="true" tireTrackAtlasIndex="4" mass="1.8" hasParticles="true"/>
        <wheel rotSpeed="0" repr="3" radius="0.57" restLoad="8.0" initialCompression="20" forcePointRatio="0.2" suspTravel="0.2" spring="90" damper="90" hasTireTracks="true" tireTrackAtlasIndex="4" mass="1.8" hasParticles="true"/>
        <wheel rotSpeed="0" repr="4" radius="0.57" restLoad="8.0" initialCompression="20" forcePointRatio="0.2" suspTravel="0.2" spring="90" damper="90" hasTireTracks="true" tireTrackAtlasIndex="4" mass="1.8" hasParticles="true"/>
    </wheels>
    
	<ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="2" rotCenterWheel2="3"/>
    
	 
	<differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>
    
	<motor torqueScale="0.6" minRpm="800" maxRpm="2300" maxBackwardSpeed="15" brakeForce="16" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="10.8" maxForwardGearRatio="216.8" minBackwardGearRatio="57.8" maxBackwardGearRatio="216.8">
        <torque normRpm="0.45" torque="0.5"/>
        <torque normRpm="0.5" torque="0.6"/>
        <torque normRpm="0.59" torque="0.7"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="0.8"/>
        <torque normRpm="1" torque="0.7"/>
    </motor>
    
	<fuelCapacity>120</fuelCapacity>
    <fuelUsage>28</fuelUsage>
    
	<cameras count="2">
        <camera1 index="5|0" rotatable="true" rotateNode="5" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="5" transMax="30"/>
        <camera2 index="0>6" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>
    
	 <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
        <fuel animName="fuelDisplay"/>
    </indoorHud>
	
	<lights>
        <low>
            <light realLight="0>21|0|1" decoration="0>21|0|0" lightTypes="0"/>
			<light realLight="0>21|4|1" decoration="0>21|4|0" lightTypes="1"/>
			<light realLight="0>21|5|1" decoration="0>21|5|0" lightTypes="2"/>
			<light realLight="0>21|6|1" decoration="0>21|6|0" lightTypes="3"/>
        </low>
        <high>
		    <light realLight="0>21|0|1" decoration="0>21|0|0" lightTypes="0"/>
			<light realLight="0>21|4|1" decoration="0>21|4|0" lightTypes="1"/>
			<light realLight="0>21|5|1" decoration="0>21|5|0" lightTypes="2"/>
			<light realLight="0>21|6|1" decoration="0>21|6|0" lightTypes="3"/>
        </high>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
		    <state lightTypes="0 1 2" />
			<state lightTypes="0 1 2 3" />
        </states>
    </lights>
    
	<brakeLights>
        <brakeLight realLight="0>21|2|1" decoration="0>21|2|0"/>
    </brakeLights>
    
	<turnLights>
        <turnLightLeft decoration="0>21|1|0"/>
        <turnLightRight decoration="0>21|1|1"/>
    </turnLights>
    
	

    <reverseLights>
        <reverseLight realLight="0>21|3|1" decoration="0>21|3|0" />
    </reverseLights>
	
    <steering index="0>0|0|0" indoorRotation="360" outdoorRotation="37"/>
    
	<characterNode index="0>12|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100">
	    <target ikChain="rightFoot" targetNode="0>12|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>12|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>0|0|0|1" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>0|0|0|2" setDirty="true"/>
    </characterNode>
	
    <enterReferenceNode index="0>"/>
    <exitPoint index="11"/>
	
    <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>
        <!--attacherJoint index="0>7" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="0 150 10">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint-->
        <attacherJoint index="0>18" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <!--attacherJoint index="0>19" jointType="trailerLow" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint-->
        <attacherJoint index="0>20" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50">
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
    </attacherJoints>
    
	
    
	<size width="3.5" length="5.5" lengthOffset="-0.4"/>
   
     <honkSound file="$data/sounds/hornBig.wav" volume="1" innerRadius="10" radius="70"/>
    <cylinderedHydraulicsounds file="sounds/hydraulicUp.wav" pitchOffset="0.8" volume="0.4"/>
    <fillsounds file="sounds/siloFillsounds.wav" pitchOffset="1.0" volume="1.5"/>
    <attachSound file="$data/sounds/truck_attach.wav" pitchOffset="1"/>
    <motorStartSound file="sounds/W50_start_internal.ogg" pitchOffset="0.7"/>
    <motorSound file="sounds/Ifarun_internal.ogg" pitchOffset="1.06" pitchScale="0.02" pitchMax="5" volume="0.6"/>
    <motorSoundRun file="sounds/IFArun4_internal.ogg" pitchOffset="1" pitchScale="0.02" pitchMax="1" volume="0.9"/>
    <motorStopSound file="sounds/W50_out_internal.ogg" pitchOffset="1"/>
    <aiMotorSound file="Sounds/IFArun4AI.wav" pitchOffset="1.0" radius="25" innerRadius="4" volume="1.0"/>
    <motorSoundLeave file="Sounds/IfarunAI.wav" pitchOffset="1.0" radius="85" innerRadius="4" volume="1.3"/>
    <motorStartSoundInternal file="sounds/W50_start.ogg" pitchOffset="1" volume="1.5"/>
    <motorSoundInternal file="sounds/Ifarun.ogg" pitchOffset="1" pitchScale="0.03" pitchMax="4" volume="1.5"/>
    <motorSoundInternalRun file="sounds/IFArun4.ogg" pitchOffset="1" pitchScale="0.02" pitchMax="1" volume="1"/>
    <motorStopSoundInternal file="sounds/W50_out.ogg" pitchOffset="1"/>
   
    
	<exhaustEffects>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>13" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.1 0.1 0.1 4" minRpmScale="0.2" maxRpmScale="0.5" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
    
	<honkSound file="Sounds/horn.wav" volume="1" innerRadius="20" radius="50"/>
    
	<components count="1">
        <component1 centerOfMass="0 0.5 -1.5" solverIterationCount="4"/>
    </components>
    
	<interactiveComponents>
		<windows>
				
			<window name="TuerLinks"    mark="0>0|1|1|8" size="0.1" animName="TuerLinks" onMessage="ic_component_open" offMessage="ic_component_close"/>
	        <window name="TuerRechts"   mark="0>0|1|2|8" size="0.1" animName="TuerRechts" onMessage="ic_component_open" offMessage="ic_component_close"/>
	        <window name="FensterLinks"   mark="0>0|1|1|9" size="0.1" animName="FensterLinks" onMessage="ic_component_open" offMessage="ic_component_close"/>
	        <window name="FensterRechts"   mark="0>0|1|2|9" size="0.1" animName="FensterRechts" onMessage="ic_component_open" offMessage="ic_component_close"/>
	        <window name="Dachvorn"   mark="0>0|1|9" size="0.1" animName="Dachvorn" onMessage="ic_component_open" offMessage="ic_component_close"/>
	        <window name="Dachhinten"   mark="0>0|1|8" size="0.1" animName="Dachhinten" onMessage="ic_component_open" offMessage="ic_component_close"/>
		</windows>
	</interactiveComponents>
	
	<animations>
        
		
		
		<animation name="TuerLinks">
	        <part node="0>0|1|1" startTime="0" duration="2" startRot="0 0 0" endRot="0 -80 0"/>
        </animation>
        <animation name="TuerRechts">
	        <part node="0>0|1|2" startTime="0" duration="2" startRot="0 0 0" endRot="0 80 0"/>
        </animation>
        <animation name="FensterLinks">
	        <part node="0>0|1|1|0" startTime="0" duration="4" startTrans="-0.036 -0.25 -0.4" endTrans="-0.077 0.231 -0.4"/>
        </animation>
        <animation name="FensterRechts">
	        <part node="0>0|1|2|1" startTime="0" duration="4" startTrans="0.054 -0.259 -0.432" endTrans="0.107 0.24 -0.432"/>
        </animation>
	    <animation name="Dachvorn">
	       <part node="0>0|1|5|0" startTime="0" duration="1" startRot="0 0 0" endRot="-10 0 0"/>
	       <part node="0>0|1|5|0|0|0|0" startTime="0" duration="1" startRot="0 0 -5" endRot="8 -8 25"/>
	       <part node="0>0|1|5|0|0|0|1" startTime="0" duration="1" startRot="-180 0 -175" endRot="-188 -8 -205"/>
	       <part node="0>0|1|5|0|0|1|0" startTime="0" duration="1" startRot="0 0 -5" endRot="8 -8 0"/>
	       <part node="0>0|1|5|0|0|1|1" startTime="0" duration="1" startRot="-180 0 -175" endRot="-188 -8 -180"/>
        </animation>
        <animation name="Dachhinten">
	       <part node="0>0|1|5" startTime="0" duration="1" startRot="0 0 0" endRot="10 0 0"/>
	       <part node="0>0|1|5|0|0|1|0" startTime="0" duration="1" startRot="0 0 -5" endRot="-8 8 25"/>
	       <part node="0>0|1|5|0|0|1|1" startTime="0" duration="1" startRot="-180 0 -175" endRot="-188 8 -205"/>
	       <part node="0>0|1|5|0|0|0|0" startTime="0" duration="1" startRot="0 0 -5" endRot="-8 8 0"/>
	       <part node="0>0|1|5|0|0|0|1" startTime="0" duration="1" startRot="-180 0 -175" endRot="-172 8 -180"/>
        </animation>
		
		<!-- tipping left -->
		 <animation name="tipAnimationLeft">
            <part node="0>23|0" startTime="0" endTime="8" startRot="0 0 0" endRot="0 0 35"/>
            <!-- body -->
            <part node="0>23|0|0" startTime="0" endTime="8" startRot="0 0 0" endRot="0 0 -96"/>
            <!-- klappe -->
            <part node="0>23|0|0|0" startTime="0" endTime="8" startRot="0 0 0" endRot="0 0 32"/>
            <!-- klappe oben -->
			<part node="0>23|0|7|0|0" startTime="0.2" endTime="8" startRot="0 0 0" endRot="0 0 35"/>
            <!-- Particle -->
        </animation>
    </animations>
	
	
	
	<tipReferencePoints>
       
        <tipReferencePoint index="0>25|0" width="1.5" />
        
    </tipReferencePoints>
	
	 <movingTools>
        <movingTool index="0>23|0">
            <dependentPart index="0>24|0"/>
        </movingTool>
        
    </movingTools>
	
    <movingParts>
        <movingPart index="0>24|0" referencePoint="0>23|0|11" referenceFrame="0>24|1" lockAxis="1"/>
		<movingPart index="0>24|0" referencePoint="0>23|0|11" referenceFrame="0>24|1" lockAxis="3">
            <translatingPart index="0>24|0|0"/>
            <translatingPart index="0>24|0|0|0"/>
            <translatingPart index="0>24|0|0|0|0"/>
        </movingPart>
		
		<movingPart index="0>0|1|0|31|0" referencePoint="0>23|0|1|0" referenceFrame="0>0|1|0|31|0" scaleZ="true" playSound="false" isActiveDirty="true"/>
        <movingPart index="0>23|0|1" referencePoint="0>23|0|0|0|0" referenceFrame="0>23|0|1" scaleZ="true" playSound="false" isActiveDirty="true"/>
        <movingPart index="0>0|1|0|30|0" referencePoint="0>23|0|2|0" referenceFrame="0>0|1|0|30|0" scaleZ="true" playSound="false" isActiveDirty="true"/>
        <movingPart index="0>23|0|2" referencePoint="0>23|0|0|0|1" referenceFrame="0>23|0|2" scaleZ="true" playSound="false" isActiveDirty="true"/>
    </movingParts>
	
	
	
	<cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav"  pitchOffset="0.8" volume="0.5" indoorVolumeFactor="0.75" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav"          pitchOffset="1.0" volume="1.5" indoorVolumeFactor="0.75" />
    <attachSound file="$data/sounds/attach.wav"                    pitchOffset="1.0" volume="1.0" indoorVolumeFactor="0.35" indoorLowpassGain="0.75"/>
	
	<fillUnits>
        <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="15000" />
    </fillUnits>

     <fillVolumes>
        <volumes>
            <volume index="0>23|0|10|0"/>
        </volumes>

        <unloadInfos>
            <unloadInfo> <!-- left -->
                <node index="0>23|0|10|1|0" width="1.0" length="2.9" />
            </unloadInfo>
        </unloadInfos>

        <heights>
            <height fillVolumeIndex="1" > <!-- back -->
                <refNode index="0>23|0|9|0" />
                <refNode index="0>23|0|9|1" />
                <node index="0>23|0|7|0|1" baseScale="1 1 1" transAxis="0 1 0" transMax="0 0.05 0"/>
            </height>
        </heights>
    </fillVolumes>
	
	<tipAnimations>
        <tipAnimation speedScale="1" closeSpeedScale="-1.7" animationName="tipAnimationLeft" dischargeStartTime="0.8" dischargeEndTime="18">
            <tipEffect>
                <effectNode effectNode="0>23|0|7|0|0|0" materialType="unloading" materialTypeId="3" fadeTime="0.5"/>
                <effectNode effectNode="0>23|0|7|0|0|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5"/>
            </tipEffect>
            <emitterShape node="0>23|0|7|0|1|0" />
            <fillVolume>
                <unloadInfo index="1"/>
                <height index="1"/>
            </fillVolume>
        </tipAnimation>
    </tipAnimations>
	
	<fillRootNode index="0>"/>
    <exactFillRootNode index="0>23|0|6"/>
    <fillAutoAimTargetNode index="0>23|0|5" />
    <fillMassNode index="0>"/>
	
	    <fillLitersPerSecond>500</fillLitersPerSecond>  

	
	 <ai>
        <trafficCollisionTrigger index="0>22"/>
    </ai>
	
	<washable dirtDuration="60" washDuration="1" workMultiplier="4"/>
	
    <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>IFA W50 SHA</en>
            <de>IFA W50 SHA</de></name>
        <functions/>
        <specs/>
        <image>store.dds</image>
        <price>22400</price>
        <dailyUpkeep>15</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>IFA</brand>
        <category>trucks</category>
    </storeData>
</vehicle>
