<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="MTZ80">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>MTZ-1025.2</en>
        <de>MTZ-1025.2</de>
		<ru>͒ǭ80</ru>
    </name>
    <filename>mtz80.i3d</filename>
	
    <size width="3.5" length="6"/>
	
    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="50" rotMax="22" rotMin="-22" restLoad="2.3" repr="1>1" driveNode="1>1|0" radius="0.80" suspTravel="0.1" spring="40" damper="55" mass="0.01" initialCompression="50" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="50" rotMax="22" rotMin="-22" restLoad="2.3" repr="1>2" driveNode="1>2|0" radius="0.80" suspTravel="0.1" spring="40" damper="55" mass="0.01" initialCompression="50" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="0" restLoad="2.1" repr="0>0" radius="0.82" suspTravel="0.1" spring="90" damper="55" mass="0.1" initialCompression="50" hasTyreTracks="true" tyreTrackAtlasIndex="0" />
        <wheel rotSpeed="0" restLoad="2.1" repr="0>1" radius="0.82" suspTravel="0.1" spring="90" damper="55" mass="0.1" initialCompression="50" hasTyreTracks="true" tyreTrackAtlasIndex="0" />
    </wheels>>	
	
	
	<differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>
	
	<motor torqueScale="0.593" minRpm="780" maxRpm="2000" maxBackwardSpeed="12" brakeForce="2.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="27.65" maxForwardGearRatio="130" minBackwardGearRatio="98.26" 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>200</fuelCapacity>
    <fuelUsage>18</fuelUsage>
	
    <cameras count="2">
        <camera1 index="3|0" rotatable="true" rotateNode="3" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" >
            <raycastNode index="0>5"/>
            <raycastNode index="0>6"/>
        </camera1>
        <camera2 index="4" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

    <lights>
        <light realLight="0>19" decoration="0>21" lightType="0"/>
        <light realLight="0>20" decoration="0>22" lightType="1"/>
    </lights>

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

    <turnSignals>
        <turnSignalLeft index="0>24|0" />
        <turnSignalRight index="0>24|1" />
    </turnSignals>

    <steering index="0>8|0" indoorRotation="540" outdoorRotation="40" />

    <characterNode index="0>11|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 107" >
        <ikChains>
            <ikChain id="rightFoot" target="0>11|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>11|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>8|0|2" 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>8|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>
	
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>7"/>

    <aiTrafficCollisionTrigger index="0>9" />

    <exhaustEffects>
        <exhaustEffect index="0>10" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.08" maxRpmScale="0.8"   forwardXRotations="-250 0 120" forwardZRotations="0 0 0" steerXRotations="180 0 -120" steerZRotations="0 0 0" />
    </exhaustEffects>

     <animParts>    
          <animPart index="0>13|0|2|0" id="Vonopad" showHelp="true" autoReturn="false" scaleMin="100 100 100" scaleMax="0 0 0" moveTime="0.000005" />
          <animPart index="0>14" id="Atach_3_0" showHelp="true" autoReturn="false" scaleMin="1 1 1" scaleMax="0 0 0" moveTime="0.000005" />     
          <animPart index="0>25|0" id="Teto" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="-5.7 0 0" moveTime="2" />
          <animPart index="0>25|0|1" id="Haromszog" showHelp="false" autoReturn="false" rotMin="0 0 0" rotMax="85 0 0" moveTime="3" />
          <animPart index="0>25|1" id="AjtoH" showHelp="false" autoReturn="false" rotMin="11.04 0 0" rotMax="167.449 8.655 178.298" moveTime="0" />   
          <animPart index="0>26|0" id="vontato" showHelp="true" autoReturn="false" scaleMin="100 100 100" scaleMax="0 0 0" moveTime="0.000005" />                   	  
     </animParts> 
	

        <attacherJoints>
        <attacherJoint index="0>12|0|0" rotationNode="0>12" minRot="21 0 0" minRot2="-7 0 0" maxRot="2 0 0" rotationNode2="0>12|0" maxRot2="-2 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2.5" ptoOutputNode="0>17" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>13" translationNode="0>13|0" referenceNode="0>13|0|0" zScale="-0.1" />
            <topArm rotationNode="14" translationNode="14|0" referenceNode="14|0|0" zScale="-0.1" />
        </attacherJoint>
		<attacherJoint index="0>26|3"   jointType="trailer" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>17" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
		<attacherJoint index="0>13|0|2|0|0"   jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>17" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
		<attacherJoint index="0>26|15"   jointType="trailer" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>17" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
    </attacherJoints>	
	
	
	<speedRotatingParts>
        <speedRotatingPart index="0>26|6|0" wheelIndex="2" wheelScale="-2"/>        
        </speedRotatingParts>
	
	<RotateParts>
          <rotatePart index="0>26|5" x="0" y="0" z="-0.02" lastMotor="true"/>	
          <rotatePart index="0>26|8" x="0" y="0" z="-0.04" lastMotor="true"/>
          <rotatePart index="0>26|9" x="0" y="0" z="-0.03" lastMotor="true"/>
          <rotatePart index="0>26|10" x="0" y="0" z="-0.03" lastMotor="true"/>
          <rotatePart index="0>26|11" x="0" y="0" z="-0.03" lastMotor="true"/>
          <rotatePart index="0>26|12" x="0" y="0" z="-0.04" lastMotor="true"/>
          <rotatePart index="0>26|13" x="0" y="0" z="-0.04" lastMotor="true"/>
          <rotatePart index="0>26|14" x="0" y="0" z="-0.04" lastMotor="true"/>				  
    </RotateParts>

    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="0>13">
            <!-- cylinder 1 -->
            <dependentPart index="0>15" />
            <!-- cylinder 2 -->
            <dependentPart index="0>16" />            
        </movingTool>
    </movingTools>

    <movingParts>
		<!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>15" referencePoint="0>16|1" referenceFrame="0>" invertZ="true">
            <translatingPart index="0>15|0" />
        </movingPart>

        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="0>16" referencePoint="0>13|0|1" localReferencePoint="0>16|2" referenceFrame="0>" invertZ="true">
            <dependentPart index="0>16|2" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>16|2" referencePoint="0>13|0|1" referenceFrame="0>16|0" invertZ="true">
        </movingPart>
		<!-- steering -->
		<movingPart index="1>1|2|0" referencePoint="1>2|1" referenceFrame="1>" isActiveDirty="true" playSound="false" scaleZ="false">
        </movingPart>

      <!-- tahlo rizeni -->
        <movingPart index="1>2|3" referencePoint="0>26|7" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true" />
    </movingParts>

	<washable dirtDuration="50" washDuration="1" workMultiplier="4" />
	
    <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>
	
    <motorStartDuration>2130</motorStartDuration>
   <attachSound file="$data/vehicles/shared/attach.wav" pitchOffset="1.0" />
	<motorStartSound file="sound/start.wav" pitchOffset="1.9" volume="0.8"/>
	<motorSound file="sound/stand.wav" pitchOffset="1" pitchScale="0.016" pitchMax="1.65" volume="2.5" radius="25" innerRadius="10" />
	<motorSoundRun file="sound/last.wav" pitchOffset="0.50" pitchScale="0.0360" pitchMax="1.38" volume="4.5" radius="50" innerRadius="20" />	
	<motorStopSound file="sound/stop.wav" pitchOffset="1.0" volume="0.5"/>
    <compressedAirSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="2"/>
    <compressionSound file="$data/vehicles/shared/compressorWork.wav" pitchOffset="1" volume="1.5"/>
	<honkSound file="$data/vehicles/shared/hornBig.wav" volume="1.3" radius="70" innerRadius="10" />
    <hydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.55" volume="0.8" />   
	
    <components count="2">
        <component1 centerOfMass="0.00 1.00 0.03" solverIterationCount="4" />
		<component2 centerOfMass="0.00 0.70 0.00" solverIterationCount="4" />
		<joint component1="0" component2="1" index="0>18" rotLimit="0 0 20" transLimit="0 0 0" breakable="false"/>
    </components>

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

</vehicle>
