<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="3512">
	<annotation>Copyright (C) Agromet</annotation>
    <name>
        <en>Ursus 3512</en>
        <de>Ursus 3512</de>
    </name>
    <description></description>
    <filename>3512.i3d</filename>
    
		
  <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="1" restLoad="0.9" repr="1>2" driveNode="1>2|0|0" radius="0.35" width="0.44" initialCompression="50"  suspTravel="0.1" spring="95" damper="40" mass="0.12" hasTyreTracks="true" />
        <wheel rotSpeed="1" restLoad="0.9" repr="1>3" driveNode="1>3|0|0" radius="0.35" width="0.44" initialCompression="50"  suspTravel="0.1" spring="95" damper="40" mass="0.12" hasTyreTracks="true" />
        <wheel rotSpeed="0" restLoad="1.0" repr="0>2" radius="0.678" width="0.54" initialCompression="50" suspTravel="0.09" spring="155" damper="40" mass="0.242" hasTyreTracks="true" />
        <wheel rotSpeed="0" restLoad="1.0" repr="0>3" radius="0.678" width="0.54" initialCompression="50" suspTravel="0.09" spring="155" damper="40" mass="0.242" hasTyreTracks="true" />
    </wheels>

    <ackermannSteering rotSpeed="70" rotMax="38" rotCenterWheel1="2" rotCenterWheel2="3" />


    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
    </differentials>

    <motor torqueScale="0.26" minRpm="600" maxRpm="2200" maxBackwardSpeed="13" brakeForce="1.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="33" 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>


    <fuelCapacity>58</fuelCapacity>
    <fuelUsage>13</fuelUsage>
	
    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="27" />
        <camera2 index="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" isInside="true" />
    </cameras>
	
    <lights count="1">
        <light1 index="12" />
    </lights>

	<brakeLights>
		<brakeLight index="0>22" />
	</brakeLights>

 	<turnSignals>
        <turnSignalLeft index="0>20" />
        <turnSignalRight index="0>21" />
    </turnSignals>


		<lightsaddon lightsStayOn="true">
                        <light type="work" index="0>33" inputName="tur" helptext="tur" stayOn="true"/>
                        <light type="work" index="0>30|2|4" inputName="widly" helptext="widly" stayOn="true"/>
                 </lightsaddon>

	<beaconLights>
        <beaconLight index="0>25|0|1" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d" />
    </beaconLights>
		
    <steering index="0>16|0" indoorRotation="540" outdoorRotation="70" />
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />
    <cuttingAreas count="0">
        <!--cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/-->
    </cuttingAreas>

    <tipCamera index="11" />
	
     <attachSound file="Dzwieki/attach.wav" pitchOffset="1" />
     <motorStartSound file="Dzwieki/odpalanie.wav" pitchOffset="1" volume="1" />
     <motorSound file="Dzwieki/wolne.wav" pitchOffset="0.8" pitchScale="0.043" pitchMax="1.4" volume="1" />
     <motorStopSound file="Dzwieki/gaszenie.wav" pitchOffset="1" />
     <motorSoundRun file="Dzwieki/wysokie.wav" pitchOffset="0.5" pitchScale="0.026" pitchMax="1.15" volume="0.8" />
    <compressedAirSound file="$data/vehicles/shared/compressedAir.wav" pitchOffset="1" volume="1.0"/>
    <compressionSound file="$data/vehicles/shared/compressorWork.wav" pitchOffset="1" volume="1.5"/>
     <aiMotorSound  file="Dzwieki/AI.wav" pitchOffset="0.55" radius="25" innerRadius="4" volume="0.8" /> 
     <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.65" volume="0.00001" />
     <honkSound file="Dzwieki/horn.wav" volume="1" radius="80" innerRadius="35" />

    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="0>32">
            <dependentPart index="0>31" />
        </movingTool>
        <movingTool index="0>33|1|0" attacherJointIndices="4" anchorActor="0" rotSpeed="20" rotAcceleration="80" rotMax="-2.5" rotMin="-72" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.3">
            <dependentPart index="0>33|1|0|1" />
		</movingTool>
        <movingTool index="0>33|1|0|4|0" attacherJointIndices="4" anchorActor="0" rotSpeed="35" rotAcceleration="300" rotMax="145" rotMin="5" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" speedFactor="0.3">
			<dependentPart index="0>33|1|0|0|0" />
		</movingTool>
    </movingTools>

    <movingParts>
		<!-- attacher joint back bottom-->
        <movingPart index="0>31" referencePoint="0>32|0|1" localReferencePoint="0>31|0" referenceFrame="0>" >
            <dependentPart index="0>31|0" />
        </movingPart>
        <movingPart index="0>31|0" referencePoint="0>32|0|1" referenceFrame="0>32|0|1" />
        <!-- arm cylinder -->
        	<movingPart index="0>33|1|0|1" referencePoint="0>33|2|0|0" referenceFrame="0>33|2|0|0">
           	 <translatingPart index="0>33|1|0|1|0" />
        	</movingPart>

        	<!-- main hinge -->
       		 <movingPart index="0>33|1|0|0|0" referencePoint="0>33|1|0|4|0|1" localReferencePoint="0>33|1|0|0|0|0" referenceFrame="0>33|1|0|0|0|0">
         	   <dependentPart index="0>33|1|0|0|0|0" />
         	   <dependentPart index="0>33|1|0|2" />
       		 </movingPart>
        	<!-- front top hinge -->
        	<movingPart index="0>33|1|0|0|0|0" referencePoint="0>33|1|0|4|0|1" referenceFrame="0>33|1|0|4|0">
        	</movingPart>

        	<!-- tool cylinder -->
        	<movingPart index="0>33|1|0|2" referencePoint="0>33|1|0|0|0|1" referenceFrame="0>33|1|0|0">
            	<translatingPart index="0>33|1|0|2|0" />
        	</movingPart>
    </movingParts>

      <attacherJoints>
        <attacherJoint index="0>13|0|0" rotationNode="0>13" minRot="25 0 0" minRot2="-15 0 0" maxRot="-12 0 0" rotationNode2="0>13|0" maxRot2="13 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="0>28" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d">
            <bottomArm rotationNode="0>32" translationNode="0>32|0" referenceNode="0>32|0|0" zScale="-1" />
            <topArm rotationNode="34" translationNode="34|0|1" referenceNode="34|0|0" zScale="-1" />
        </attacherJoint>
    <!-- trailer attacher -->
	<attacherJoint index="19" jointType="trailer"    maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false"/>
	<attacherJoint index="0>10" transNode="0>10" transMinYHeight="0.839" transMaxYHeight="0.839" jointType="trailer"    maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>28" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
	<attacherJoint index="0>17" jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>28" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
        <attacherJoint jointType="frontloader" index="0>33|1|0|4|0|0" allowsJointLimitMovement="false" allowsLowering="false" />
   </attacherJoints>

    <animations>
		<animation name="LeweDrzwi">
			<part node="30|2|1" startTime="0" duration="2" startRot="0 -90 0" endRot="0 -194 0"/>
        </animation>	
		<animation name="TylSzyba">
			<part node="30|2|2" startTime="0" duration="2" startRot="0 0 0" endRot="35 0 0"/>
        </animation>	
		<animation name="PraweDrzwi">
			<part node="30|2|0" startTime="0" duration="2" startRot="0 -90 0" endRot="0 16 0"/>
        </animation>
	<animation name="Szyberdach">
			<part node="30|2|3" startTime="0" duration="3" startRot="0 0 0" endRot="-6 0 0"/>
        </animation>
	<animation name="rpmDisplay">
            <part node="0>30|2|5|0" startTime="0" endTime="1" startRot="0 0 -68" endRot="0 0 -307" />
        </animation>
        <animation name="fuelDisplay">
            <part node="0>30|2|5|1" startTime="0" endTime="1" startRot="0 0 -98" endRot="0 0 15" />
        </animation>
     </animations>


 <indoorHud>
        <rpm animName="rpmDisplay" />
        <fuel animName="fuelDisplay" />
    </indoorHud>


	
	
	<interactiveComponents>
		<windows>
			<window name="LeweDrzwi"  mark="0>30|2|9" size="0.2" animName="LeweDrzwi" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="TylSzyba"   mark="0>30|2|6" size="0.2" animName="TylSzyba" 	onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="PraweDrzwi"  mark="0>30|2|8" size="0.2" animName="PraweDrzwi" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Szyberdach"  mark="0>30|2|7" size="0.1" animName="Szyberdach" onMessage="ic_component_open" offMessage="ic_component_close"/>
	</windows>
	</interactiveComponents>

<characterNode index="0>23|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" rightArmIKChainId="rightArm" spineRotation="180 0 105" >
    <ikChains>
            <ikChain id="rightFoot" target="0>23|1" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true" >
                <node index="0|1" />
                <node index="0|1|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|1|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|1|0|0|0" />
            </ikChain>
            <ikChain id="leftFoot" target="0>23|2" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|2"     />
                <node index="0|2|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|2|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|2|0|0|0" />
            </ikChain>
            <ikChain id="rightArm" target="0>16|0|0" targetOffset="0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|1" />
                <node index="0|0|0|1|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|1|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|1|0|0|0" />
                <rotationNode index="0|0|0|1|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
            <ikChain id="leftArm" target="0>16|0|1" targetOffset="-0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|2" />
                <node index="0|0|0|2|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|2|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|2|0|0|0" />
                <rotationNode index="0|0|0|2|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|2|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
        </ikChains>
    </characterNode>

    <aiTrafficCollisionTrigger index="18" /> 



    
 <components count="2">
        <component1 centerOfMass="0 0.8 0.1" solverIterationCount="10" />
        <joint component1="0" component2="1" index="1>1" rotLimit="0 0 10" transLimit="0 0 0" breakable="false"/>
    </components>
    


	<lightCoronas>
		<lightCorona index="24" />	
	</lightCoronas>
	
	<driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
    </driveGroundParticleSystems>
	
	

 	<exhaustEffects>
        <exhaustEffect index="0>26" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.4" forwardXRotations="0 0 0" forwardZRotations="200 0 -80" steerXRotations="-50 0 -50" steerZRotations="-250 0 200" />
    </exhaustEffects>



	    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="0 0.4" rotation="0" invertX="true" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="0 0" rotation="0" invertX="true" />
    </schemaOverlay>

</vehicle>
