<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
   <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>            <en>CASE 1919</en>
        </name>
        <specs>
            <power>65</power>
            <maxSpeed>15</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store.png</image>
        <price>120000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CASE</brand>
        <category>miscvehicles</category>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>case1919.i3d</filename>
		 <sounds filename="sounds/case1919_sounds.xml" />
        <size width="3.5" length="8"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="1000"/>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="2000"/>
            <joint component1="1" component2="2" node="componentJoint1" rotLimit="0 0 0" transLimit="0 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="LOADER" />
        <mapHotspot type="WHEELLOADER" />
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" >
				<wheels autoRotateBackSpeed="1.4">
					<wheel isLeft="true" hasTireTracks="true" hasParticles="true">
						<physics tipOcclusionAreaGroupId="1" rotSpeed="0" repr="leftRear" radius="0.775" restLoad="5.1" initialCompression="70" suspTravel="0.1" spring="60" damper="70" width="1" frictionScale="3"/>
					</wheel>
					<wheel isLeft="false" hasTireTracks="true" hasParticles="true">
						<physics tipOcclusionAreaGroupId="1" rotSpeed="0" repr="rightRear" radius="0.775" restLoad="5.1" initialCompression="70" suspTravel="0.1" spring="60" damper="70" width="1" frictionScale="3"/>
					</wheel>
					<wheel isLeft="true" hasTireTracks="true" hasParticles="true">
						<physics tipOcclusionAreaGroupId="1" rotSpeed="0" repr="leftFront" radius="0.56" restLoad="5.1" initialCompression="40" suspTravel="0.1" spring="60" damper="70" width="1" frictionScale="3"/>
					</wheel>
					<wheel isLeft="false" hasTireTracks="true" hasParticles="true">
						<physics tipOcclusionAreaGroupId="1" rotSpeed="0" repr="rightFront" radius="0.56" restLoad="5.1" initialCompression="40" suspTravel="0.1" spring="60" damper="70" width="1" frictionScale="3"/>
					</wheel> 
					<wheel isLeft="true" hasTireTracks="true" hasParticles="true">
						<physics tipOcclusionAreaGroupId="1" rotSpeed="0" repr="driveGear" radius="0.775" restLoad="0" initialCompression="0" suspTravel="0" spring="0" damper="0" width="0"/>
					</wheel>
					<wheel isLeft="false" hasTireTracks="true" hasParticles="true">
						<physics tipOcclusionAreaGroupId="1" rotSpeed="0" repr="cogWheel" radius="0.775" restLoad="0" initialCompression="0" suspTravel="0" spring="0" damper="0" width="0"/>
					</wheel>
				</wheels>
				<size width="4"/>
			</wheelConfiguration>
		</wheelConfigurations>
		
		<ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="28" rotMax="35" rotCenter="0 2.379"/>
        </ackermannSteeringConfigurations>
	</wheels>
    
	<articulatedAxis componentJointIndex="1" anchorActor="0>0" rotSpeed="35" rotMax="20" rotMin="-20" />
	
	<enterable isTabbable="true">
        <enterReferenceNode node="CASE1919"/>
        <exitPoint node="exitPoint"/>
        <cameras>
            <camera node="outdoorCam" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="5" transMax="40" translation="0 0 6.5" rotation="-15 180 0">
                <raycastNode node="raycastNode1"/>
                <raycastNode node="raycastNode2"/>
                <raycastNode node="raycastNode3"/>
            </camera>
            <camera node="indoorCam" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0"  isInside="true" shadowFocusBox="shadowFocusBox"/>
        </cameras>
        <!--<characterNode node="playerSkin" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="player_rightFoot"/>
            <target ikChain="leftFoot" targetNode="player_leftFoot"/>
            <target ikChain="rightArm" targetNode="player_rightHand"/>
            <target ikChain="leftArm" targetNode="player_leftHand"/>
        </characterNode>-->
    </enterable>
	
	<lights>
		
	</lights>
	
	<honk>
       <sound file="sounds/whistle.ogg" innerRadius="35">
            <volume outdoor="1"/>
        </sound> 
    </honk>
	
	<drivable>
		<steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60"/>
    </drivable>
	
	<motorized>
        <consumerConfigurations>
            <consumerConfiguration>
				<consumer fillUnitIndex="1" 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="3" wheelIndex2="4"/>
                    <!-- back 3-4 -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="5" wheelIndex2="6"/>
                    <!-- back 5-6 -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
                    <!-- back 5-8 -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <motorConfigurations>
            <motorConfiguration name="CASE1919" hp="65" price="0">
			<motor torqueScale="0.963" minRpm="500" maxRpm="800" maxBackwardSpeed="20" brakeForce="20" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="16" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
				<torque normRpm="0.45" torque="0.9"/>
				<torque normRpm="0.5" torque="0.97"/>
				<torque normRpm="0.59" torque="1"/>
				<torque normRpm="0.72" torque="1"/>
				<torque normRpm="0.86" torque="0.88"/>
				<torque normRpm="1" torque="0.72"/>
			</motor>
                <transmission minForwardGearRatio="15" maxForwardGearRatio="150" minBackwardGearRatio="40" maxBackwardGearRatio="150"/>
            </motorConfiguration>
        </motorConfigurations>
        <exhaustEffects>
            <exhaustEffect node="exhaustParticleLinkNode" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="1 1 1 1" maxRpmColor="1 1 1 1" minRpmScale="0.55" maxRpmScale="0.55" xzRotationsOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
        </exhaustEffects>
        <motorStartDuration>2000</motorStartDuration>
		
		<animationNodes>
			<animationNode node="spinner" rotSpeed="600" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="2" linkNode="0>"/>
        </animationNodes>
    </motorized>
	<speedRotatingParts>
        <speedRotatingPart node="flyWheel" radius="-0.7"/>
		<speedRotatingPart node="topSpinner" radius="0.1"/>
    </speedRotatingParts>
	<attacherJoints comboDuration="0">
		 <attacherJoint node="trailerAttacherJointBack" jointType="trailer" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1" canTurnOnImplement="true">
            <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="true">
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
    </attacherJoints>
	
	<cylindered>
        <movingTools>
			
        </movingTools>
        <movingParts>
				<!-- STEERING CHAINS -->
			<movingPart node="0>11|0" referencePoint="1>0|2" referenceFrame="1>0" isActiveDirty="true" maxUpdateDistance="100" scaleZ="true" />
			<movingPart node="0>11|1" referencePoint="1>0|3" referenceFrame="1>0" isActiveDirty="true" maxUpdateDistance="100" scaleZ="true" />
				<!-- CONNECTING ROD AND PISTON -->
			<movingPart node="connectingRod" referencePoint="connectingRodRef" referenceFrame="connectingRodRef" isActiveDirty="true" maxUpdateDistance="100"  />
        </movingParts>
    </cylindered>
	
   <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
					<fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="288">
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<ai>
        <collisionTrigger node="aiCollisionTrigger"/>
    </ai>
	
	<foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="0.1" maxZ="2.6" yOffset="0.8"/>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-2" maxZ="1.65" yOffset="-0.95" node="CASE1919"/>
    </foliageBending>
	
	<i3dMappings>
        <i3dMapping id="CASE1919" node="0>"/>
		<i3dMapping id="frontaxle" node="1>0"/>
		<i3dMapping id="componentJoint1" node="0>8"/>
		<i3dMapping id="leftRear" node="0>0"/>
		<i3dMapping id="rightRear" node="0>1"/>
		<i3dMapping id="leftFront" node="1>0|0"/>
		<i3dMapping id="rightFront" node="1>0|1"/>
		<i3dMapping id="articulatedAxisAiReverserNode" node="0>9"/>
		<i3dMapping id="exitPoint" node="0>3"/>
		<i3dMapping id="outdoorCam" node="0>2|0|0"/>
		<i3dMapping id="outdoorCameraTarget" node="0>2|0"/>
		<i3dMapping id="raycastNode1" node="0>2|2"/>
		<i3dMapping id="raycastNode2" node="0>2|3"/>
		<i3dMapping id="raycastNode3" node="0>2|4"/>
		<i3dMapping id="indoorCam" node="0>2|1"/>
		<i3dMapping id="playerSkin" node="0>6|0"/>
		<i3dMapping id="player_rightFoot" node="0>6|1"/>
		<i3dMapping id="player_leftFoot" node="0>6|2"/>
		<i3dMapping id="player_rightHand" node="0>7|0|0"/>
		<i3dMapping id="player_leftHand" node="0>7|0|1"/>
		<i3dMapping id="exhaustParticleLinkNode" node="0>5"/>
		<i3dMapping id="aiCollisionTrigger" node="0>4|0"/>
		<i3dMapping id="shadowFocusBox" node="0>2|5"/>
		<i3dMapping id="trailerAttacherJointBack" node="0>14|0|0"/>
		<i3dMapping id="steeringWheel" node="0>7|0"/>
		<i3dMapping id="driveGear" node="0>12|3"/>
		<i3dMapping id="cogWheel" node="0>12|4"/>
		<i3dMapping id="flyWheel" node="0>12|0"/>
		<i3dMapping id="connectingRod" node="0>12|0|0"/>
		<i3dMapping id="pistonRod" node="0>13|2"/>
		<i3dMapping id="connectingRodRef" node="0>13|2|0"/>
		<i3dMapping id="topSpinner" node="0>12|1"/>
		<i3dMapping id="spinner" node="0>12|2"/>
		<i3dMapping id="pistonRodRef" node="0>12|0|0|0"/>
		
	</i3dMappings>
</vehicle>
