<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Zetor 7745 Forest</name>
        <specs>
            <power>77</power>
            <maxSpeed>35</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store_zetor7245.dds</image>
        <price>34000</price>
        <dailyUpkeep>110</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ZETOR</brand>
        <category>tractorsS</category>
        <vertexBufferMemoryUsage>2263952</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>394908</indexBufferMemoryUsage>
        <textureMemoryUsage>19224224</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>zetor.i3d</filename>
        <size width="2" length="4"/>
		
        <components>
            <component centerOfMass="0 0.94 0.1" solverIterationCount="10" mass="2790" />
            <component centerOfMass="0 0.0 0"  solverIterationCount="20" mass="1211" />
            <joint component1="1" component2="2" node="0>0|2"  rotLimit="0 0 10" rotLimitSpring="0 0 4000" rotLimitDamping="0 0 75" maxRotDriveForce="5 5 5" rotDriveRotation="0 0 0" rotDriveSpring="0 0 20" rotDriveDamping="0 0 10" breakable="false"/> 
        </components>
		
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <turnedOn name="DEFAULT_VEHICLE_ON"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
            <turnedOnSelected name="DEFAULT_VEHICLE_SELECTED_ON"/>
        </schemaOverlay>
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.0">
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1"  restLoad="1.0" repr="1>0|1|0" driveNode="1>0|1|0|0|0" radius="0.543" width="0.28" mass="0.179"  forcePointRatio="0.2" initialCompression="20" suspTravel="0.22" spring="60" damper="40" />
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1"  restLoad="1.0" repr="1>0|0|0" driveNode="1>0|0|0|0|0" radius="0.543" width="0.28" mass="0.179"  forcePointRatio="0.2" initialCompression="20" suspTravel="0.22" spring="60" damper="40" />
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0"  restLoad="0.8" repr="0>0|1" radius="0.743" width="0.28" mass="0.379" forcePointRatio="0.3" initialCompression="20" suspTravel="0.28" spring="24" damper="40" />
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0"  restLoad="0.8" repr="0>0|0" radius="0.743" width="0.28" mass="0.379" forcePointRatio="0.3" initialCompression="20" suspTravel="0.28" spring="24" damper="40" />
                    </wheel>
                    <foliageBendingModifier index="1" minX="-1" maxX="1" />
                    <foliageBendingModifier index="2" minX="-1.07" maxX="1.07" />
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="60" rotMax="34" rotCenterWheel1="3" rotCenterWheel2="4" />
        </ackermannSteeringConfigurations>
    </wheels>
	
	<lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
        </states>

        <realLights>
            <low>
                <light node="0>2|0|0"   lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>2|1|0|1"   lightTypes="2"/>
                <light node="0>2|0|1"   lightTypes="3" />
            </low>
			
            <high>
                <light node="0>2|0|2"    lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>2|1|0|2"    lightTypes="1"/>
                <light node="0>2|1|1|1"    lightTypes="2"/>
                <light node="0>2|0|3"    lightTypes="1 3"/>
				
                <brakeLight node="0>2|2|1" />
            </high>
        </realLights>
		
		<beaconLights>
            <beaconLight node="0>2|5|0" filename="$data/shared/assets/beaconLights/lizard/beaconLight02.xml" />
        </beaconLights>


        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
    </lights>
	
	<motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="40"  fillType="diesel" />  <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="200" fillType="air" permanentConsumption="false" refillLitersPerSecond="250" refillCapacityPercentage="0.5" /> <!-- usage per second at full brake power -->
            </consumerConfiguration>
        </consumerConfigurations>

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

       <motorConfigurations>
            <motorConfiguration hp="77">
                <motor torqueScale="0.32" minRpm="800" maxRpm="2300" maxForwardSpeed="35" maxBackwardSpeed="10" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0001" >
                    <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="25.9" maxForwardGearRatio="250" minBackwardGearRatio="50" maxBackwardGearRatio="250" />
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="0>8|0" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0 0 0 3" minRpmScale="0.05" maxRpmScale="0.5" xzRotationsOffset="150 0" xzRotationsForward="50 0" xzRotationsBackward="-100 0" xzRotationsLeft="-50 -150" xzRotationsRight="-50 150" />
        </exhaustEffects>
		
		<dashboards>
    		<dashboard displayType="ANIMATION" valueType="rpm" animName="rpmDisplay" minValueAnim="0" maxValueAnim="2300" groups="MOTOR_ACTIVE"/> 
            <dashboard displayType="ANIMATION" valueType="rpm" animName="speedDisplay" minValueAnim="0" maxValueAnim="2300" groups="MOTOR_ACTIVE"/>			
		</dashboards>


        <motorStartDuration>2000</motorStartDuration>

        <sounds externalSoundFile="sound/zetor.xml" />
    </motorized>
	
	<enterable isTabbable="true" >
        <enterReferenceNode node="0>" />
        <exitPoint node="0>3" />

        <cameras>
            <camera node="0>1|0|0" rotatable="true" rotateNode="0>1|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="40" translation="0 0 5" rotation="-20 180 0"  >
                <raycastNode node="0>1|2"/>
                <raycastNode node="0>2|3"/>
            </camera>
            <camera node="0>1|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" shadowFocusBox="" />
        </cameras>

        <characterNode node="0>6|0" cameraMinDistance="1.5" spineRotation="-90 0 90" >
            <target ikChain="leftFoot"  targetNode="0>6|2" />
            <target ikChain="rightFoot" targetNode="0>6|1" />
            <target ikChain="leftArm"   targetNode="0>4|0|1" />
            <target ikChain="rightArm"  targetNode="0>4|0|0" />
        </characterNode>

        <mirrors>
            <mirror node="0>11|0" prio="1" />
            <mirror node="0>11|1" prio="1" />
        </mirrors>
    </enterable>
	
	<powerTakeOffs>
        <output attacherJointIndices="1 2 3" outputNode="0>5|2|0" />
    </powerTakeOffs>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>

        <steeringWheel node="0>4|0" indoorRotation="540" outdoorRotation="35" />
    </drivable>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="70">
				      <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
					  </fillUnit>  
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="2000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>


    <attacherJoints comboDuration="0">
        <attacherJoint node="0>5|0|0|0|0" lowerRotationOffset="-1.5" upperRotationOffset="-1.5" moveTime="2.5" comboTime="1">
            <distanceToGround lower="0.36" upper="1.07" />
            <rotationNode node="0>5|0|0" lowerRotation="-11 0 0" upperRotation="30 0 0" />
            <rotationNode2 node="0>5|0|0|0" />
            <bottomArm rotationNode="0>5|0|1" translationNode="0>5|0|1|0" referenceNode="0>5|0|1|0|0" zScale="-1" startRotation="-10 0 0" />
            <topArm baseNode="0>5|0|2" filename="$data/shared/assets/upperLinks/walterscheid03.i3d" zScale="-1" color="SHARED_GREY5" />
            <schema position="1 0" rotation="0" invertX="false" />
			<objectChange node="0>5|1|0" visibilityActive="false" visibilityInactive="true" />
            <objectChange node="0>5|1|1" visibilityActive="false" visibilityInactive="true" />
        </attacherJoint>
		
        <attacherJoint node="0>5|1|0|0" jointType="trailer" lowerRotLimit="20 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <distanceToGround lower="0.44" upper="1.02" />
            <transNode node="0>5|1|0" minY="0.713" maxY="0.945" height="0.3"/>
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>5|1|1" jointType="trailerLow" lowerRotLimit="20 60 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false" />
			<objectChange node="0>5|0|1" rotationActive="35 0 0"  rotationInactive="-17 0 0" />
            <objectChange node="0>5|1|0" visibilityActive="false"  visibilityInactive="true" />
        </attacherJoint>
		
        <attacherJoint node="0>5|1|2" jointType="trailer" lowerRotLimit="20 65 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
            <schema position="1 0" rotation="0" invertX="true" />
        </attacherJoint>
		
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <cylindered>
    <movingTools>
        <!-- attacher joint back bottom-->
        <movingTool node="0>5|0|1">
            <dependentPart node="0>9|0" />
        </movingTool>
		<movingTool node="0>13|3|1" >
                <controls axis="AXIS_CRANE_ARM" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="80" rotAcceleration="150" rotMax="-1" rotMin="-165" startRot="-1" rotationAxis="2" />
            </movingTool>		
        <!-- dvere_P -->			
            <movingTool node="0>13|3|0" >
                <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="80" rotAcceleration="150" rotMax="165" rotMin="1" startRot="0" rotationAxis="2" />
            </movingTool>		
        <!-- okno_stresne -->			
            <movingTool node="0>13|2|1" >
                <controls axis="AXIS_CRANE_ARM3" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="40" rotAcceleration="150" rotMax="90 0 90" rotMin="0" startRot="90 0 0" rotationAxis="1" />
            </movingTool>			
        <!-- okno_stresne -->			
            <movingTool node="0>13|0|0" >
                <controls axis="AXIS_CRANE_ARM4" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="40" rotAcceleration="150" rotMax="140 0 0" rotMin="0" startRot="90 0 0" rotationAxis="1" />
            </movingTool>	
    </movingTools>

    <movingParts>
        <!-- back -->
        <movingPart node="0>9|0" referencePoint="0>5|0|1|0|1" localReferencePoint="0>9|0|0" referenceFrame="0>5|0|1|0">
            <dependentPart node="0>9|0|0|0" />
            <dependentPart node="0>9|0|0|1" />
            <dependentPart node="0>9|1" />
            <dependentPart node="0>9|2" />
        </movingPart>
        <movingPart node="0>9|0|0|0" referencePoint="0>5|0|1|0|1|0" referenceFrame="0>5|0|1|0|1|0">
            <translatingPart node="0>9|0|0|0|0" />
        </movingPart>
        <movingPart node="0>9|0|0|1" referencePoint="0>5|0|1|0|1|1" referenceFrame="0>5|0|1|0|1|1">
            <translatingPart node="0>9|0|0|1|0" />
        </movingPart>
        <movingPart node="0>9|1" referencePoint="0>5|0|1|0|2" referenceFrame="0>5|0|1|0|2" scaleZ="true"/>
        <movingPart node="0>9|2" referencePoint="0>5|0|1|0|3" referenceFrame="0>5|0|1|0|3" scaleZ="true"/>
        
        <movingPart node="1>0|0|0|0|2" referencePoint="0>5|3" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true"/>  
        <movingPart node="1>0|1|0|0|1" referencePoint="1>0|0|0|0|1" referenceFrame="1>0|0|0" scaleZ="true" playSound="false" isActiveDirty="true"/>
		<movingPart node="1>4" referencePoint="0>5|4" referenceFrame="0>" isActiveDirty="true" />
    </movingParts>
	
    <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
		
	</cylindered>
	
	<animations>
        <animation name="rpmDisplay">
            <part node="0>10|1|0" startTime="0" endTime="4" startRot="90 0 0" endRot="90 -220 0" />
			<part node="0>10|5|0|0|0|0|0|0|0|0" startTime="0" endTime="4" startRot="90 -20 0" endRot="90 -45 0" />
        </animation>
        <animation name="fuelDisplay">
            <part node="0>10|0|0" startTime="0" endTime="1" startRot="90 0 0" endRot="90 -75 0" />
        </animation>            
		<animation name="speedDisplay">
			<part node="0>10|4" startTime="0" endTime="1" startRot="90 -25 0" endRot="90 -60 0" />
		</animation>
    </animations>
	
	<ai>
        <collisionTrigger node="0>7|0" />
    </ai>

    <wearable wearDuration="190" workMultiplier="0.001" fieldMultiplier="2"/>
    <washable dirtDuration="130" washDuration="0.001" workMultiplier="3" fieldMultiplier="2"/>
    
</vehicle>