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

    <storeData>
        <name>c360</name>
        <specs>
            <power>57</power>
            <maxSpeed>30</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
            <function>$l10n_function_tractorFrontloader</function>
        </functions>
        <image>Store_Ursus_c355.dds</image>
        <price>9000</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>Ursus_C355.i3d</filename>
		
        <size width="3.5" length="6"/>
		
        <components>
            <component centerOfMass="0 0.9 0.53" solverIterationCount="20" mass="3400"/>
            <component centerOfMass="0 0 0" solverIterationCount="20" mass="800"/>
            <joint component1="1" component2="2" node="1>0"  rotLimit="0 0 15" rotLimitSpring="0 0 4000" rotLimitDamping="0 0 10" maxRotDriveForce="0 0 10" rotDriveRotation="0 0 0" rotDriveSpring="0 0 1" rotDriveDamping="0 0 1" 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="RWD" price="0">
            <objectChange node="1>1" visibilityActive="true" />
            <objectChange node="1>2" visibilityActive="false" />
                <wheels autoRotateBackSpeed="1.5">
                    <wheel  isLeft="true" hasTireTracks="false" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="1.3" repr="1>1|1"  driveNode="1>1|1|0|0|0"  radius="0.39" width="0.45" forcePointRatio="0.2" initialCompression="30" suspTravel="0.10" spring="36" damper="200" />
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="false" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.3" repr="1>1|2" driveNode="1>1|2|0|0|0" radius="0.39" width="0.45" forcePointRatio="0.2" initialCompression="30" suspTravel="0.10" spring="36" damper="200" />
                    </wheel>
                    <wheel filename="Wheels/TM600_420_85R30.xml" configId="dual" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="0>0|0"  radius="0.710" width="0.6" forcePointRatio="0.3" initialCompression="25" suspTravel="0.08" spring="40" damper="40" />
                    </wheel>
                    <wheel filename="Wheels/TM600_420_85R30.xml" configId="dual" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="0>0|1" radius="0.710" width="0.6" forcePointRatio="0.3" initialCompression="25" suspTravel="0.08" spring="40" damper="40" />
                    </wheel>	
                </wheels>
                    <foliageBendingModifier index="1" minX="-1" maxX="1" />
                    <foliageBendingModifier index="2" minX="-1.07" maxX="1.07" />
            </wheelConfiguration>
            <wheelConfiguration name="AWD" price="300">
            <objectChange node="1>1" visibilityActive="false" />
            <objectChange node="1>2" visibilityActive="true" />
                <wheels autoRotateBackSpeed="1.5">
                    <wheel isLeft="true" hasTireTracks="false" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="1.3" repr="1>2|1"  driveNode="1>2|1|0|0|0"  radius="0.42" width="0.45" forcePointRatio="0.2" initialCompression="30" suspTravel="0.10" spring="36" damper="200" />
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="false" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.3" repr="1>2|2" driveNode="1>2|2|0|0|0" radius="0.42" width="0.45" forcePointRatio="0.2" initialCompression="30" suspTravel="0.10" spring="36" damper="200" />
                    </wheel>
                    <wheel filename="Wheels/TM600_420_85R30.xml" configId="dual" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="0>0|0"  radius="0.710" width="0.6" forcePointRatio="0.3" initialCompression="25" suspTravel="0.08" spring="40" damper="40" />
                    </wheel>
                    <wheel filename="Wheels/TM600_420_85R30.xml" configId="dual" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.2" repr="0>0|1" radius="0.710" width="0.6" forcePointRatio="0.3" initialCompression="25" suspTravel="0.08" spring="40" damper="40" />
                    </wheel>
                </wheels>
                    <foliageBendingModifier index="1" minX="-1" maxX="1" />
                    <foliageBendingModifier index="2" minX="-1.07" maxX="1.07" />
            </wheelConfiguration>		
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="60" rotMax="32" 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>13|0|0"   lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>13|2|1"   lightTypes="1"/>
                <light node="0>13|2|0"   lightTypes="2"/>
                <light node="0>13|0|1"   lightTypes="3" />
            </low>
			
            <high>
                <light node="0>13|0|2"    lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>13|2|3"    lightTypes="1"/>
                <light node="0>13|2|2"    lightTypes="2"/>
                <light node="0>13|0|3"    lightTypes="3"/>
				
                <brakeLight node="0>13|3|0" />
				
                <turnLightLeft node="0>13|1|1" />			
                <turnLightRight node="0>13|1|0" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>13|4|0" lightTypes="0 3"/>
			<defaultLight shaderNode="0>13|4|1" lightTypes="0 3"/>	
			<defaultLight shaderNode="0>13|4|8" lightTypes="0 3"/>	
			<defaultLight shaderNode="0>13|4|9" lightTypes="0 3"/>	
			<defaultLight shaderNode="0>13|4|10" lightTypes="0 3"/>	
			<defaultLight shaderNode="0>13|4|11" lightTypes="0 3"/>		
			<defaultLight shaderNode="0>13|4|12" lightTypes="2"/>	
			<defaultLight shaderNode="0>13|4|13" lightTypes="2"/>
			<defaultLight shaderNode="0>13|4|4|0" lightTypes="0 3"/>	
			<defaultLight shaderNode="0>13|4|5|0" lightTypes="0 3"/>	
			<defaultLight shaderNode="0>13|4|6" lightTypes="1"/>	
			<defaultLight shaderNode="0>13|4|7" lightTypes="1"/>			
        </defaultLights>

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

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

        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
    </lights>
	
	<attacherJoints comboDuration="0">
        <attacherJoint node="0>2|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>2|0|0" lowerRotation="-11 0 0" upperRotation="30 0 0" />
            <rotationNode2 node="0>2|0|0|0" />
            <bottomArm rotationNode="0>2|0|1" translationNode="0>2|0|1|0" referenceNode="0>2|0|1|0|0" zScale="-1" startRotation="-10 0 0" />
            <topArm baseNode="0>2|0|2" filename="kabi/Sruba.i3d" zScale="-1" color="SHARED_GREY5" />
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>2|1|0" jointType="trailer" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <distanceToGround lower="0.44" upper="1.02" />
            <transNode node="0>2|1|0" minY="0.816" maxY="0.817" height="0.3"/>
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>2|1|1|0" jointType="trailerLow" lowerRotLimit="10 50 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>2|1|2" jointType="trailer" lowerRotLimit="10 50 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>2|2|0" />
    </powerTakeOffs>

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

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

        <characterNode node="0>5|0|0|0" cameraMinDistance="1.5" spineRotation="-90 0 90" >
            <target ikChain="leftFoot"  targetNode="0>5|0|0|2" />
            <target ikChain="rightFoot" targetNode="0>5|0|0|1" />
            <target ikChain="leftArm"   targetNode="0>5|1|12|0|0" />
            <target ikChain="rightArm"  targetNode="0>5|0|0|3" />
        </characterNode>
		
    </enterable>
	
	<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="57">  
                <motor torqueScale="0.545" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="2" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.003" >
                    <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="26" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130" />
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="0>5|5|2|1|0|0" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.6 0.6 0.6 0.1" maxRpmColor="0.1 0.1 0.1 0.4" minRpmScale="0.05" maxRpmScale="0.9" xzRotationsOffset="-180 0" xzRotationsForward="0 300" xzRotationsBackward="150 0" xzRotationsLeft="20 80" xzRotationsRight="40 -200" />
        </exhaustEffects>

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

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

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

        <steeringWheel node="0>5|1|12|0" indoorRotation="540" outdoorRotation="35" />
		
        <dashboards>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="0>5|1|9|2|0"   minRot="0 0 0" maxRot="0 -35 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="0>5|1|4"   minRot="0 0 0" maxRot="28 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
	    </dashboards>		
    </drivable>

    <animations>
        <animation name="rpmNeedle">
            <part node="0>10|0" startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="0 -150 0"/>
        </animation>		
    </animations>	
	
	
	<cylindered>
	  <movingTools>
	    <movingTool node="0>2|3|1|0" >
            <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1.0" iconName="FRONTLOADER_ARM_ROTATE" />
            <attacherJoint jointIndices="5" />
            <rotation rotSpeed="20" rotAcceleration="80" rotMax="-2.5" rotMin="-72" startRot="-5" detachingRotMinLimit="-10" />
            <dependentPart node="0>3|3|1|0|1"/>		
        </movingTool>
        <movingTool node="0>2|3|1|0|4|0" >
            <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
            <attacherJoint jointIndices="5" />
            <rotation rotSpeed="40" rotAcceleration="300" rotMax="145" rotMin="5" startRot="50" syncMaxRotLimits="true" />
            <dependentPart node="0>2|3|1|0|0|0"/>			
        </movingTool>
      </movingTools>
	
	    <movingParts>
        <!-- tyc -->
            <movingPart node="1>1|1|0|3|0" referencePoint="1>1|2|0|2" referenceFrame="0>" scaleZ="true" isActiveDirty="true" />
            <movingPart node="1>2|1|0|3|0" referencePoint="1>2|2|0|2" referenceFrame="0>" scaleZ="true" isActiveDirty="true" />
        
		
		
        <!-- hydraulicMainArm -->
            <movingPart node="0>3|0" referencePoint="0>2|0|1|0|1" referenceFrame="0>" localReferencePoint="0>3|0|0" >
                <dependentPart node="0>3|0|0" />
            </movingPart>
			
            <movingPart node="0>3|0|0" referencePoint="0>2|0|1|0|1" referenceFrame="0>2|0|1|0|1" />

        <movingPart node="0>2|3|1|0|1" referencePoint="0>2|3|0|3" referenceFrame="0>2|3|0|3" isActiveDirty="true">
            <translatingPart node="0>2|3|1|0|1|0" />
        </movingPart>

        <movingPart node="0>2|3|1|0|4|1" referencePoint="0>2|3|1|0|4|0|2|0" referenceFrame="0>2|3|1|0|4|0|2|0" isActiveDirty="true">
            <translatingPart node="0>2|3|1|0|4|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>4|3" />
    </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>

    <!-- odpruzenie	 -->
    <suspensions>
        <suspension node="0>12|1|2"    weight="150" minTranslation="0 -0.45 0.0" maxTranslation="0 0.45 0.0" suspensionParametersX="20 4" suspensionParametersY="5 1" suspensionParametersZ="20 4" />
	</suspensions>

    <!-- hadice	 -->
    <connectionHoses>
        <target attacherJointIndices="1 2 3 4" type="hydraulicIn" node="-"/>
        <target attacherJointIndices="1 2 3 4" type="hydraulicOut" node="-"/>
    </connectionHoses>
	
	<frontloaderConfigurations>
        <frontloaderConfiguration name="$l10n_ui_no" price="0">
            <objectChange node="0>2|3" visibilityActive="false"/>
        </frontloaderConfiguration>
        <frontloaderConfiguration name="$l10n_ui_yes" price="1500" icon="$dataS2/menu/hud/configurations/config_loader.png">
            <attacherJoint node="0>2|3|1|0|4|0|0|0" jointType="frontloader" lowerRotLimit="0 0 0" lowerTransLimit="0 0 0" moveTime="2">
                <rotationNode upperRotation="0 0 0" lowerRotation="0 0 0"/>
                <schema position="1 0.4" rotation="0" invertX="true"/>
            </attacherJoint>
            <objectChange node="0>2|3" visibilityActive="true" visibilityInactive="false"/>
        </frontloaderConfiguration>
    </frontloaderConfigurations>
	
	<vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="Bez_Kabiny" price="0" vehicleType="tractor">
            <objectChange node="0>5|2|0" visibilityActive="false" />
            <objectChange node="0>5|7" visibilityActive="false" />	
            <objectChange node="0>5|6" visibilityActive="false" />		
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="Puszka" price="1025" vehicleType="tractor">
            <objectChange node="0>5|2|0" visibilityActive="true" />	
            <objectChange node="0>5|7" visibilityActive="false" />	
            <objectChange node="0>5|6" visibilityActive="false" />	
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="Naglak" price="2225" vehicleType="tractor">
            <objectChange node="0>5|2|0" visibilityActive="false" />
            <objectChange node="0>5|7" visibilityActive="true" />	
            <objectChange node="0>5|6" visibilityActive="false" />		
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="czeska" price="300" vehicleType="tractor">
            <objectChange node="0>5|2|0" visibilityActive="false" />	
            <objectChange node="0>5|7" visibilityActive="false" />	
            <objectChange node="0>5|6" visibilityActive="true" />	
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
	<wearable wearDuration="190" workMultiplier="0.001" fieldMultiplier="2"/>
    <washable dirtDuration="130" washDuration="0.001" workMultiplier="3" fieldMultiplier="2"/>
	
</vehicle>
