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

    <storeData>
        <name>Ursus 1614 1224</name>
        <specs>
            <power>150</power>
            <maxSpeed>36</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store/store_zetorCrystal.dds</image>
        <price>30000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>URSUS</brand>
        <category>tractorsM</category>
        <shopTranslationOffset>0 -0.13 0</shopTranslationOffset>
        <shopRotationOffset>-1 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3271072</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>594468</indexBufferMemoryUsage>
        <textureMemoryUsage>20275048</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>zetorCrystalM2.i3d</filename>
		
        <size width="3.5" length="6"/>
		
        <components>
            <component centerOfMass="0 0.6 0.5" solverIterationCount="10" mass="5500" />
        </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" brand="Ursusowe">
                <wheels autoRotateBackSpeed="1.5">
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" radius="0.665" width="0.45" mass="0.149" restLoad="1.8" repr="0>0"  driveNode="0>0|0" forcePointRatio="0.2" initialCompression="30" suspTravel="0.20" spring="20" damper="20" />
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" radius="0.665" width="0.45" mass="0.149" restLoad="1.8" repr="0>1" driveNode="0>1|0" forcePointRatio="0.2" initialCompression="30" suspTravel="0.20" spring="20" damper="20" />
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" radius="0.885" width="0.5" mass="0.255" restLoad="1.2" repr="0>2" forcePointRatio="0.3" initialCompression="25" suspTravel="0.08" spring="40" damper="40" />
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" radius="0.885" width="0.5" mass="0.255" restLoad="1.2" repr="0>3" forcePointRatio="0.3" initialCompression="25" suspTravel="0.08" spring="40" 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="30" rotCenterWheel1="3" rotCenterWheel2="4" />
        </ackermannSteeringConfigurations>
    </wheels>
	
	<speedRotatingParts>
        <speedRotatingPart node="0>0|2" wheelIndex="1" wheelScale="3"/>
		<speedRotatingPart node="0>1|2" wheelIndex="2" wheelScale="4"/>
    </speedRotatingParts>
	
     <designConfigurations>
        <designConfiguration name="Bez niczego" price="0">
        </designConfiguration>
        <designConfiguration name="Kogut" price="100">
            <objectChange node="0>15|10" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>15|11" visibilityActive="false" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="Kogut i obciaznik" price="500">
            <objectChange node="0>15|11" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>15|10" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
     </designConfigurations>

     <vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="Bez obciaznikow" price="0" vehicleType="tractor">
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="Z obcioznikami" price="500" vehicleType="tractor">
            <objectChange node="0>2|0|0|1" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>3|0|0|1" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>15|12" visibilityActive="false" visibilityInactive="false"/>
        </vehicleTypeConfiguration>
     </vehicleTypeConfigurations>

     <lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
        </states>
		

        <realLights>
            <low>
                <light node="0>5|0|0"   lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>5|2|1"   lightTypes="1"/>
                <light node="0>5|2|0"   lightTypes="2"/>
                <light node="0>5|0|1"   lightTypes="3" />
            </low>
			
            <high>
                <light node="0>5|0|2"    lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>5|2|3"    lightTypes="1"/>
                <light node="0>5|2|2"    lightTypes="2"/>
                <light node="0>5|0|3"    lightTypes="3"/>
                <light node="0>5|3|0"    lightTypes="0"/>
				
                <brakeLight node="0>5|5|0" />
				
                <turnLightLeft node="0>5|1|1" />			
                <turnLightRight node="0>5|1|0" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>18|11" lightTypes="0 3"/>
	    <defaultLight shaderNode="0>18|12" lightTypes="0 3"/>
            <defaultLight shaderNode="0>18|20" lightTypes="1"/>
	    <defaultLight shaderNode="0>18|22" lightTypes="1"/>	
	    <defaultLight shaderNode="0>18|24" lightTypes="1"/>	
	    <defaultLight shaderNode="0>18|0" lightTypes="1"/>			
	    <defaultLight shaderNode="0>18|18" lightTypes="2"/>
	    <defaultLight shaderNode="0>18|13" lightTypes="2"/>		
            <defaultLight shaderNode="0>5|4|4|0" lightTypes="0"/>
	    <defaultLight shaderNode="0>5|4|5|0" lightTypes="0"/>
        </defaultLights>

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

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

        <beaconLights>
            <beaconLight node="0>15|10|0|1" filename="$data/shared/assets/beaconLights/lizard/beaconLight02.xml" />
        </beaconLights>

		
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
    </lights>
	
	<attacherJoints comboDuration="0">
        <attacherJoint node="0>8|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>8|0|0" lowerRotation="-11 0 0" upperRotation="30 0 0" />
            <rotationNode2 node="0>8|0|0|0" />
            <bottomArm rotationNode="0>8|0|1" translationNode="0>8|0|1|0" referenceNode="0>8|0|1|0|0" zScale="-1" startRotation="-10 0 0" />
            <topArm baseNode="0>8|0|2" filename="$data/shared/assets/upperLinks/walterscheid03.i3d" zScale="-1" color="SHARED_GREY5" />
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>8|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>8|1|0" minY="0.713" maxY="0.945" height="0.3"/>
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>8|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" />
        </attacherJoint>
		
        <attacherJoint node="0>8|1|0|0" 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>
	
	<powerTakeOffs>
        <output attacherJointIndices="1 2 3" outputNode="0>8|2|0" />
    </powerTakeOffs>

    <enterable isTabbable="true" >
        <enterReferenceNode node="0>" />
        <exitPoint node="0>6" />

        <cameras>
            <camera node="0>4|0|0" rotatable="true" rotateNode="0>4|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>4|2"/>
                <raycastNode node="0>4|3"/>
				<raycastNode node="0>4|4"/>
            </camera>
            <camera node="0>4|1|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" shadowFocusBox="0>4|5" />
        </cameras>

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

        <mirrors>
            <mirror node="0>14|0" prio="1" />
            <mirror node="0>14|1" prio="1" />
        </mirrors>
    </enterable>
	
	<suspensions>
        <suspension node="chair"             weight="150" minTranslation="-0.1 -0.2 -0.1" maxTranslation="0.1 0.2 0.1" suspensionParametersX="20 4" suspensionParametersY="5 1" suspensionParametersZ="20 4" />
		<suspension node="chair1"             weight="150" minTranslation="-0.3 -0.4 -0.3" maxTranslation="0.3 0.4 0.3" suspensionParametersX="20 4" suspensionParametersY="5 1" suspensionParametersZ="20 4" />
    </suspensions>
	
	<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="1224" hp="117" price="0">
                <motor torqueScale="0.4" minRpm="700" maxRpm="2200" maxForwardSpeed="36" maxBackwardSpeed="15" brakeForce="2.5" lowBrakeForceScale="0.22">
                    <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="20" maxForwardGearRatio="250" minBackwardGearRatio="50" maxBackwardGearRatio="250" />
                <objectChange node="config_6230R" visibilityActive="true" visibilityInactive="false"/>
                <objectChange node="config_6250R" visibilityActive="false" visibilityInactive="true"/>
            </motorConfiguration>
			<motorConfiguration name="1224 TURBO" hp="130" price="5000">
                <motor torqueScale="0.4" />
                <objectChange node="config_6230R" visibilityActive="true" visibilityInactive="false"/>
                <objectChange node="config_6250R" visibilityActive="false" visibilityInactive="true"/>
            </motorConfiguration>
            <motorConfiguration name="1614" hp="150" price="10000">
                <motor torqueScale="0.4" />
                <objectChange node="config_6230R" visibilityActive="false" visibilityInactive="true"/>
                <objectChange node="config_6250R" visibilityActive="true" visibilityInactive="false"/>
            </motorConfiguration>
			<motorConfiguration name="1614 TURBO" hp="160" price="15000">
                <motor torqueScale="0.4" />
                <objectChange node="config_6230R" visibilityActive="false" visibilityInactive="true"/>
                <objectChange node="config_6250R" visibilityActive="true" visibilityInactive="false"/>
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="0>11|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>

        <motorStartDuration>1800</motorStartDuration>
		
		<animationNodes>
            <animationNode node="0>12|2" rotAxis="3" rotSpeed="1200" turnOnFadeTime="4" turnOffFadeTime="3"/>
			<animationNode node="0>17|1|16|0|2|1" rotAxis="3" rotSpeed="1200" turnOnFadeTime="4" turnOffFadeTime="1"/>
			<animationNode node="0>17|1|16|0|2|0" rotAxis="3" rotSpeed="1200" turnOnFadeTime="4" turnOffFadeTime="1"/>
        </animationNodes>

        <dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm" animName="rpmNeedle" minValueAnim="300" maxValueAnim="1800" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ANIMATION" valueType="rpm" animName="Gaz" minValueAnim="300" maxValueAnim="1800" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ANIMATION" valueType="rpm" animName="Gaz1" minValueAnim="0" maxValueAnim="1800" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ANIMATION" valueType="motorTemperature" animName="temperatureDisplay" minValueAnim="20" maxValueAnim="120" groups="MOTOR_ACTIVE"/>
        </dashboards>

        <sounds externalSoundFile="sounds/zetorCrystal.xml" />
    </motorized>
	
	<drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>

        <steeringWheel node="0>7|0" indoorRotation="540" outdoorRotation="35" />
		
		<dashboards>
            <dashboard displayType="ROT"     valueType="decelerationAxis" node="brakePedal" minRot="0 0 0" maxRot="0 0 34" doInterpolation="true" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ROT"     valueType="decelerationAxis" node="brakePedal1" minRot="0 0 0" maxRot="0 0 30" doInterpolation="true" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ROT" valueType="movingDirection" node="directionMarker" minRot="-14 -1.964 82" maxRot="14 -1.964 82" doInterpolation="true" interpolationSpeed="0.01" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>

	
	
    <animations>
        <animation name="rpmNeedle">
            <part node="0>17|0|2|16|0|0|0" startTime="0.0" endTime="3.0" startRot="90 0 0" endRot="90 0 -150"/>
        </animation>
		<animation name="Gaz">
           <part node="0>17|1|7|0|0"    startTime="0" endTime="3" startRot="0 0 0" endRot="0 -70 0" />
		</animation>
		<animation name="Gaz1">
           <part node="0>17|1|0|1|0|0"    startTime="0" endTime="3" startRot="0 0 0" endRot="35 0 0" />
		</animation>
		<animation name="temperatureDisplay">
           <part node="0>17|0|2|16|2|0|0"    startTime="0" endTime="1" startRot="0 0 0" endRot="0 -85 0" />
		</animation>
		<animation name="temperatureDisplay">
           <part node="0>17|0|2|16|2|0|0"    startTime="0" endTime="1" startRot="0 0 0" endRot="0 -85 0" />
		</animation>
		<animation name="brakePedal">
           <part node="0>17|1|8|0"    startTime="0.1" endTime="1" startRot="0 0 0" endRot="0 0 34" />
		</animation>
    </animations>
	

	<cylindered>
       <movingTools>
	    <!-- attacher joint back bottom-->
            <movingTool node="0>8|0|1">
                <dependentPart node="0>12|0" />
            </movingTool>
		<movingTool node="0>17|0|2|1|0" >
                <controls axis="AXIS_CRANE_ARM" invertAxis="true" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="140" rotAcceleration="150" rotMax="-1" rotMin="-85.039" startRot="-1" rotationAxis="2" />
        </movingTool>
            <movingTool node="0>17|0|2|2|0" >
                <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="140" rotAcceleration="150" rotMax="1" rotMin="-90" startRot="-90" rotationAxis="2" />
            </movingTool>		
            <movingTool node="0>17|0|2|3" >
                <controls axis="AXIS_CRANE_ARM3" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="140" rotAcceleration="150" rotMax="-24 0 0" rotMin="-58.046" startRot="-58.046 0 0" rotationAxis="1" />
            </movingTool>
            <movingTool node="0>17|4|0" >
                <controls axis="AXIS_CRANE_ARM4" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="80" rotAcceleration="150" rotMax="17 0 0" rotMin="0" startRot="17 0 0" rotationAxis="1" />
            </movingTool>	
        </movingTools>

        <movingParts>
		<!-- steeringBar -->
            <movingPart node="0>0|1" referencePoint="0>1|1" referenceFrame="0>" scaleZ="true" isActiveDirty="true" />

        <!-- hydraulicMainArm -->
            <movingPart node="0>12|0" referencePoint="0>8|0|1|0|1" referenceFrame="0>" localReferencePoint="0>12|0|0" >
                <dependentPart node="0>12|0|0" />
                <dependentPart node="0>12|1" />
            </movingPart>
			
            <movingPart node="0>12|0|0" referencePoint="0>8|0|1|0|1" referenceFrame="0>8|0|1|0|1" />
			
            <movingPart node="0>12|1" referencePoint="0>12|0|1" referenceFrame="0>12|0|1" >
                <translatingPart node="0>12|1|0" />
            </movingPart>
        </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="130"/>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="2000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <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>10|0" />
    </ai>

   <connectionHoses>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>17|5|0" socket="hydraulic02"/>
        <target attacherJointIndices="1 2 3" type="hydraulicOut" node="0>17|5|1" socket="hydraulic02"/>

        <target attacherJointIndices="1 2 3" type="airDoubleRed" node="0>17|5|3" socket="air_red"/>
        <target attacherJointIndices="1 2 3" type="airDoubleRed" node="0>17|5|3" socket="air_red"/>
        
        <target attacherJointIndices="1 2 3" type="electric" node="0>17|5|2" socket="electric"/>
    </connectionHoses>

    <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>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	 <i3dMappings>
        <i3dMapping id="brakePedal" node="0>17|1|8|0" />
		<i3dMapping id="brakePedal1" node="0>17|1|8|1|0|0" />
		<i3dMapping id="directionMarker" node="0>17|1|2|0|0" />
		<i3dMapping id="chair" node="0>17|1|12|2|0" />
		<i3dMapping id="chair1" node="0>4|1" />
		<i3dMapping id="swiatlo" node="0>5|6|0" />
		<i3dMapping id="config_6230R" node="0>20|1|0" />
        <i3dMapping id="config_6250R" node="0>20|0" />
		<i3dMapping id="ursus" node="0>3" />
		<i3dMapping id="ursus1" node="0>2" />
		<i3dMapping id="ursus2" node="0>0|0" />
		<i3dMapping id="ursus3" node="0>1|0" />
		<i3dMapping id="treleborg" node="0>21" />
    </i3dMappings>
	
</vehicle>
