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

    <storeData>
        <name>6711</name>
        <specs>
            <power>58</power>
            <maxSpeed>25</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>            
        </functions>
        <image>store_zetor11.dds</image>
        <price>2800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ZETOR</brand>
        <category>tractorsS</category>
        <shopTranslationOffset>0 -0.13 0</shopTranslationOffset>
        <shopRotationOffset>-1 0 0</shopRotationOffset>
        <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" lengthOffset="0.2"/>
    <components>
        <component centerOfMass="0 0.65 0.2" solverIterationCount="10" mass="3008" />
        <component centerOfMass="0 0 0" solverIterationCount="20" mass="1621"/>
        <joint component1="1" component2="2" node="0>0|2" rotLimit="0 0 11" rotLimitSpring="0 0 4000" rotLimitDamping="0 0 75" maxRotDriveForce="0 0 10" 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.5">
                    <wheel filename="Wheels/Front.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.64" repr="frontWheelLeftRepr" driveNode="frontWheelLeftDriveNode" forcePointRatio="0.2" initialCompression="30" suspTravel="0.20"  spring="32" damper="30"/>
                    </wheel>
                    <wheel filename="Wheels/Front.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.64" repr="frontWheelRightRepr" driveNode="frontWheelRightDriveNode" forcePointRatio="0.2" initialCompression="30" suspTravel="0.20"  spring="32" damper="30"/>
                    </wheel>
                    <wheel filename="Wheels/Back.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="backWheelLeft" forcePointRatio="0.3" initialCompression="30" suspTravel="0.1" spring="32" damper="30" />
                    </wheel>
                    <wheel filename="Wheels/Back.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="backWheelRight" forcePointRatio="0.3" initialCompression="30" suspTravel="0.1" spring="32" damper="30" />             
                    </wheel>
                    <foliageBendingModifier index="1" minX="-1" maxX="1" />
                    <foliageBendingModifier index="2" minX="-1.2" maxX="1.2" />
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="60" rotMax="35" 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|6|1" lightTypes="0"/>                
                <light node="0>2|6|2" lightTypes="2"/>
            </low>
			
            <high>
                <light node="0>2|6|3" lightTypes="0"/>
                <light node="0>2|2|1" lightTypes="0"/>
                <light node="0>2|6|4" lightTypes="2"/>

                <brakeLight node="0>2|2|1" />
				
                <turnLightLeft node="0>2|3|0|1" />	
                <turnLightLeft node="0>2|3|0|2" />
                
             
                <turnLightRight node="0>2|3|1|1" />
                <turnLightRight node="0>2|3|1|2" />                
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>2|6|0|0" lightTypes="0"/> 
	    <defaultLight shaderNode="0>2|6|0|1" lightTypes="0"/> 
            <defaultLight shaderNode="0>2|6|0|2" lightTypes="0"/> 
            <defaultLight shaderNode="0>2|6|0|3" lightTypes="0"/> 
            <defaultLight shaderNode="0>2|6|0|4" lightTypes="0"/> 
            <defaultLight shaderNode="0>2|6|0|5" lightTypes="0"/>
            
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="0>2|4|0|0" />
	    <brakeLight shaderNode="0>2|4|0|1" />
        </brakeLights>

        <turnLights>
	    <turnLightLeft shaderNode="0>2|3|0|0|0" />
            <turnLightLeft shaderNode="0>2|3|0|0|1" />
           
            

            <turnLightRight shaderNode="0>2|3|1|0|0" />
            <turnLightRight shaderNode="0>2|3|1|0|1" />                    
        </turnLights>

    <sounds>
        <switchLight template="SWITCH_01" linkNode="0>" />
        <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
    </sounds>
 <dashboards>            
            <dashboard displayType="EMITTER" valueType="turnLightLeft"  node="turnLeftDecal" idleValue="0" intensity="7.5" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="turnLightRight" node="turnRightDecal" idleValue="0" intensity="7.5" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="lightState" node="Zt323_Dashboard" idleValue="0" intensity="1" lightTypes="0 1 2 3" groups="MOTOR_ACTIVE"/>            
        </dashboards>
   
    </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 name="6711" hp="58" price="0"> 
                <motor torqueScale="0.25" minRpm="800" maxRpm="1900" maxForwardSpeed="26" maxBackwardSpeed="10" brakeForce="2" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" 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>
   
     <animationNodes>
        <animationNode node="0>13|6|0" rotSpeed="600" rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="3"/>
        <animationNode node="0>13|6|5" rotSpeed="800" rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="3"/>
        <animationNode node="0>13|6|6" rotSpeed="600" rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="3"/>
        <animationNode node="0>13|6|7" rotSpeed="600" rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="3"/>
    </animationNodes>

    <dashboards>
        <dashboard displayType="ANIMATION" valueType="rpm" animName="rpmNeedle" minValueAnim="0" maxValueAnim="2200" groups="MOTOR_ACTIVE"/>
    </dashboards>

    <motorStartDuration>3900</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="0" transMin="4" transMax="50" translation="0 0 5" rotation="-20 180 0">
            <raycastNode node="0>1|2"/>
            <raycastNode node="0>1|3"/>
        </camera>
        <camera node="0>1|1" rotatable="true" limit="false" rotMinX="-1.1" rotMaxX="0" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

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

    <characterTargetNodeModifier node="0>6|1" transitionTime="0.1">
        <state node="0>13|6|10"  referenceNode="0>13|6|4" directionReferenceNode="0>13|6|4|0|0" />
        <state node="0>13|6|1|2" referenceNode="0>13|6|1" />			
    </characterTargetNodeModifier>

    <mirrors>
        <mirror node="0>13|3|0|0|3" prio="1" />
        <mirror node="0>13|3|0|0|4" prio="1" />
        <mirror node="0>13|3|1|0|3" prio="1" />
    </mirrors> 
    </enterable>

    <attacherJoints comboDuration="0">
        <attacherJoint node="0>5|0|0|0|0" lowerRotationOffset="-0.82" upperRotationOffset="0.82" moveTime="2.5" comboTime="1">
            <distanceToGround lower="0.36" upper="0.82" />
            <bottomArm rotationNode="0>5|0|1" translationNode="0>5|0|1|0" referenceNode="0>5|0|1|0|0" zScale="-1" startRotation="-17 0 0" />
            <topArm baseNode="0>5|0|2" filename="$data/shared/assets/upperLinks/walterscheid03.i3d" zScale="-1" color="SHARED_GREY5" />
            <rotationNode node="0>5|0|0" lowerRotation="-10 0 0" upperRotation="35 0 0" />
            <rotationNode2 node="0>5|0|0|0" />
            <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>
        <!-- trailer attacher -->
        <attacherJoint node="0>5|1|0|0" jointType="trailer" lowerRotLimit="20 70 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <distanceToGround lower="0.44" upper="1.02" />
            <transNode node="0>5|1|0" minY="0.75" maxY="0.91" />
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <attacherJoint node="0>5|1|1" jointType="trailerLow" lowerRotLimit="20 65 50" 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" 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> 

    <powerTakeOffs>
        <output attacherJointIndices="1 2 3" outputNode="0>5|2|0" />
    </powerTakeOffs>  
  
    <cylindered>
    <movingTools>
        <!-- attacher joint back bottom-->
        <movingTool node="0>5|0|1">
            <dependentPart node="0>9|0" />
        </movingTool>
        <!-- dvere_L -->
            <movingTool node="0>13|3|1|0" >
                <controls axis="AXIS_CRANE_ARM" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="80" rotAcceleration="150" rotMax="0" rotMin="-120" startRot="-1" rotationAxis="2" />
            </movingTool>		
        <!-- dvere_P -->			
            <movingTool node="0>13|3|0|0" >
                <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="80" rotAcceleration="150" rotMax="120" rotMin="0" startRot="0" rotationAxis="2" />
            </movingTool>
         <movingTool node="seat">
                <dependentPart node="SeatArm" />
                <dependentPart node="SeatArm2" />                
            </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="SeatArm2" referencePoint="SeatArm2Ref" referenceFrame="SeatArm2Ref"  />
            <movingPart node="SeatArm" referencePoint="SeatArmRef" referenceFrame="SeatArmRef"  />
    </movingParts>
    <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>
    
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="70"/>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="2000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

   <suspensions>        
        <suspension node="seat"              weight="150" minTranslation="-0.00 -0.15 0.0" maxTranslation="0.00 0.15 0.0"  suspensionParametersY="5 1" suspensionParametersZ="20 4" />
        <suspension useCharacterTorso="true" weight="90"  minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1" />
    </suspensions>

    <animations>
   <animation name="wiperFrontAnimation">
            <part node="wiper"  startTime="0.0" endTime="0.7" startRot="0 0 25" endRot="0 0 -95" />
        </animation>
        <animation name="rpmNeedle">
            <part node="0>10|1|0" startTime="0" endTime="4" startRot="90 -8.171 0" endRot="90 -81.46 0" />
	</animation>      					
    </animations>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>
        <steeringWheel node="0>4|0" indoorRotation="540" outdoorRotation="35" />

        <dashboards>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="0>13|6|4" minRot="0 0 0" maxRot="15 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="0>13|6|1" minRot="0 0 0" maxRot="22 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
	</dashboards>
    </drivable>

    <wipers>
        <wiper animName="wiperFrontAnimation" >
            <state animSpeed="0.75" animPause="2.0" />
            <state animSpeed="0.75" animPause="0.0" />
            <state animSpeed="1.10" animPause="0.0" />
        </wiper>
    </wipers>

    <honk>
        <sound template="HONK_FENDT511C" linkNode="0>" />
    </honk>

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>

    <ai>
        <collisionTrigger node="0>7|0" />
    </ai>

    <foliageBending>
        <bendingNode minX="-0.95" maxX="0.95" minZ="-0.65" maxZ="1.55" yOffset="0.6" />
        <bendingNode minX="-0.95" maxX="0.95" minZ="-2.25" maxZ="-0.65" yOffset="0.6" />
    </foliageBending>
	
    <connectionHoses>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>13|12|0" socket="hydraulic02"/>
        <target attacherJointIndices="1 2 3" type="hydraulicOut" node="0>13|12|1" socket="hydraulic02"/>       

        <target attacherJointIndices="1 2 3" type="airDoubleRed" node="0>13|12|4" socket="air_red"/>
        
        <target attacherJointIndices="1 2 3" type="electric" node="0>13|12|3" socket="electric"/>
    </connectionHoses>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="Standardni" price="0" vehicleType="tractor">
            <objectChange node="0>0|0|0|0" visibilityActive="false" visibilityInactive="false"/> 
	    <objectChange node="0>0|1|0|0" visibilityActive="false" visibilityInactive="false"/> 
        </vehicleTypeConfiguration>
     <vehicleTypeConfiguration name="Zavazi kol" price="200" vehicleType="tractor">
            <objectChange node="0>0|0|0|0" visibilityActive="true" visibilityInactive="false"/> 
	    <objectChange node="0>0|1|0|0" visibilityActive="true" visibilityInactive="false"/> 
        </vehicleTypeConfiguration>		
     </vehicleTypeConfigurations>


    <i3dMappings>        
        <i3dMapping id="wheels" node="0>0" />
        <i3dMapping id="backWheelLeft" node="0>0|0|0" />        
        <i3dMapping id="backWheelRight" node="0>0|1|0" />
        <i3dMapping id="wheels2" node="1>0" />
        <i3dMapping id="WheelLeftRot" node="1>0|0" />
        <i3dMapping id="frontWheelLeftRepr" node="1>0|0|0" />
        <i3dMapping id="frontWheelLeftDriveNode" node="1>0|0|0|0|0" />
        <i3dMapping id="WheelRightRot" node="1>0|1" />
        <i3dMapping id="frontWheelRightRepr" node="1>0|1|0" />
        <i3dMapping id="frontWheelRightDriveNode" node="1>0|1|0|0|0|0" />
        <i3dMapping id="turnLeftDecal" node="0>13|10|0" />
        <i3dMapping id="turnRightDecal" node="0>13|10|1" />
        <i3dMapping id="wiper" node="0>13|6|14" />       
        <i3dMapping id="Zt323_Dashboard" node="0>13|4|29" />
        <i3dMapping id="seat" node="0>15" />
        <i3dMapping id="playerSkin" node="0>15|0" />
        <i3dMapping id="SeatArm2Ref" node="0>15|1" />
        <i3dMapping id="SeatArmRef" node="0>15|2" />
        <i3dMapping id="SeatArm2" node="0>16|0" />
        <i3dMapping id="SeatArm" node="0>16|1" />
   
    </i3dMappings>

</vehicle>