<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Ursus_C360_Animated">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>C-360</en>
        <de>C-360</de>
    </name>
    
    <typeDesc>$l10n_function_tractor</typeDesc>
    
    <filename>Ursus_C360.i3d</filename>

    <size width="3.5" length="6.5"/>

    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="1" rotMax="40" rotMin="-40" restLoad="2.62" repr="3>2|0|0" driveNode="3>2|0|0|0|0|0" radius="0.35" width="0.2"  initialCompression="50" suspTravel="0.02" spring="30" damper="25" mass="2" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel rotSpeed="1" rotMax="40" rotMin="-40" restLoad="2.62" repr="3>3|0|0" driveNode="3>3|0|0|0|0|0" radius="0.35" width="0.2"  initialCompression="50" suspTravel="0.02" spring="30" damper="25" mass="2" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel rotSpeed="0" restLoad="4.70" repr="0>2"                               radius="0.70" width="0.54" initialCompression="50" suspTravel="0.03" spring="35" damper="25" mass="4" hasTyreTracks="true" brakeRatio="1"/>
        <wheel rotSpeed="0" restLoad="4.70" repr="0>3"                               radius="0.70" width="0.54" initialCompression="50" suspTravel="0.03" spring="35" damper="25" mass="4" hasTyreTracks="true" brakeRatio="1"/>
    </wheels>

    <ackermannSteering rotSpeed="60" rotMin="-40" rotMax="40" rotCenterWheel1="2" rotCenterWheel2="3" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" />
    </differentials>

    <motor torqueScale="0.33" minRpm="680" maxRpm="2200" maxBackwardSpeed="10" brakeForce="2.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="33.18" 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>68</fuelCapacity>
    <fuelUsage>18</fuelUsage>

    <cameras count="2">
        <camera1 index="0>33|0|1|0|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
        <camera2 index="0>4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3" transMax="35" >
            <raycastNode index="0>6"/>
            <raycastNode index="0>7"/>
        </camera2>
    </cameras>

    <cameraTransNode index="0>33" rearWindow="0>32" indoorCameraIndex="1"/>
    
    <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>

    <components count="6">
        <component1 centerOfMass="0 0.8 0.1" solverIterationCount="10" />
        <component2 solverIterationCount="15" />
        <component3 solverIterationCount="15" />
        <component4 solverIterationCount="15" />
        <component5 solverIterationCount="15" />
        <component6 solverIterationCount="15" />

        <joint component1="0" component2="1" index="0>25|51" indexActor1="1>0|0"  rotLimit="0 0 10"  />
        <joint component1="0" component2="2" index="0>25|52" indexActor1="2>0|0"  rotLimit="0 0 10"  />
        <joint component1="0" component2="3" index="3>0" rotLimit="0 0 15" transLimit="0 0 0" breakable="false"/>
        <joint component1="0" component2="4" index="4>0" rotLimit="0 10 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="0" component2="5" index="5>0" rotLimit="0 10 0" transLimit="0 0 0" breakable="false"/>
        
        <collisionPair component1="0" component2="3" enabled="true" />
    </components>

    <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" 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>

    <aiTrafficCollisionTrigger index="0>18" />
    <enterReferenceNode index="0>" />
    <exitPoint index="0>9" />

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

    <exhaustEffects>
        <exhaustEffect index="0>31" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.05" maxRpmScale="0.4" forwardXRotations="-250 0 50" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="-100 0 100" />
    </exhaustEffects>

    <characterNode index="0>17|0" armIndex="0>8|0|3|0" cameraMinDistance="2.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>17|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>17|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|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>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>

    <motorStartDuration>3000</motorStartDuration>
    <attachSound file="Dzwieki/attach.wav" pitchOffset="1" />
    <motorStartSound file="Dzwieki/start.wav" pitchOffset="1.0" volume="0.85" />
    <motorSound file="Dzwieki/ursus_c360idle.wav" pitchOffset="1" pitchScale="0.026" pitchMax="1.3" radius="35" innerRadius="8" volume="0.9" />
    <motorSoundRun file="Dzwieki/obroty.wav" pitchOffset="0.5" pitchScale="0.0265" pitchMax="1.6" volume="1.6" />
    <motorStopSound file="Dzwieki/stop1.wav" pitchOffset="1" volume="1"/>
    <aiMotorSound  file="Dzwieki/silnikAI.wav" pitchOffset="1" radius="35" innerRadius="25" volume="2" />
    <honkSound file="Dzwieki/horn.wav" volume="1" radius="70" innerRadius="10" />

    <exhaustFlap index="0>25|38|0" maxRot="95" />

    <lights>
        <light realLight="0>13" decoration="0>14" lightType="0"/>
    </lights>

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

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

    <animationParts>
      <animationPart rootNode="0>25|12|0" clipName="WorkClipSource" clipSpeed="2" offSet="80" loop="true" loadSave="false" accerlation="0.05" deAccerlation="0.05"></animationPart>
      <animationPart rootNode="0>25|0|3|0" clipName="maskaClipSource" clipSpeed="1.08" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|23|0" clipName="pompkaClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|2" clipName="drzwiClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|1" clipName="drzwiabClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|19|0" clipName="Kluczyk" clipSpeed="2.5" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|29|0|0|0|0|0" clipName="wskazowkaClipSource" clipSpeed="1.5" offSet="80" loop="true" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|17|1|0" clipName="hamulecClipSource" clipSpeed="0.8" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|18" clipName="Reczny" clipSpeed="0.8" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>29|0" clipName="Pierwszy" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>29|0|0" clipName="Piaty" clipSpeed="0.75" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>29|0|0|0" clipName="Wsteczny" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|6|0|1" clipName="dupa" clipSpeed="1" offSet="80" loadSave="true"></animationPart>
      <animationPart rootNode="0>25|33" clipName="Wycieraczka" clipSpeed="1.4" offSet="80" loop="true" loadSave="false" accerlation="0.3" deAccerlation="0.3"></animationPart>
      <animationPart rootNode="0>25|5" clipName="dachClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|3" clipName="tylszybaClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|22|0" clipName="kontrolkiClipSource" clipSpeed="2" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|16|1" clipName="GazRClipSource" clipSpeed="0.5" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|7|3" clipName="hydraulika" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|15|1" clipName="wajchaClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|35|0" clipName="PrzyciskClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|17|0" clipName="Sprzeglo" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
      <animationPart rootNode="0>16|0|2" clipName="Kierunki" clipSpeed="1" offSet="80" loop="true" loadSave="false"></animationPart>
      <animationPart rootNode="0>25" clipName="Bujanie" clipSpeed="3" offSet="80" loop="true" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|38" clipName="komin" clipSpeed="4" offSet="80" loop="true" loadSave="false"></animationPart>
      <animationPart rootNode="0>25|19" clipName="Kluczyk" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
    </animationParts>

    <maska index="0>27|0" />
    <swiatlo2 index="0>28" />
    <drzwi_lewe index="0>27|1" />
    <drzwi_prawe index="0>27|2" />
    <zaczep index="0>27|3" />
    <Belka index="0>25|24|1|0|4"/>
    <Sruba index="0>25|7|2"/>
    <Tur index="0>36"/>
    
    <drzwi_zamkniete index="0>25|2"/>
    <drzwi_otwarte index="4>"/>

    <drzwi_zamkniete_1 index="0>25|1"/>
    <drzwi_otwarte_1 index="5>"/>

    <reka index="0>8|0|3" />

    <Paski>
        <Pasek index="0>25|28" scrollSpeed="-4" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="false" turnOnFadeTime="3" turnOffFadeTime="3"/>
    </Paski>

    <deszcz0 	index="0>25|1|2" />
    <deszcz1 	index="0>25|1|3" />
    <deszcz2 	index="0>25|2|2" />
    <deszcz3 	index="0>25|2|3" />
    <deszcz4 	index="0>25|3|9" />
    <deszcz5 	index="0>25|3|10" />
    <deszcz6 	index="0>25|46" />
    <deszcz7 	index="0>25|47" />
    <deszcz8 	index="0>25|48" />
    <deszcz9 	index="0>25|49" />
    <deszcz10 	index="0>25|50" />
    <deszcz11 	index="4>1|1" />
    <deszcz12 	index="4>1|2" />
    <deszcz13 	index="5>1|1" />
    <deszcz14 	index="5>1|2" />
    
	  <animatedDetails>
      <tachoZeiger  zeigerIndex="0>25|29|0|0" id="door1" multiplicator="7" maxRotation="500" />	
    </animatedDetails>

    <attacherJoints>
      <attacherJoint index="0>25|24|0|0|0" rotationNode="0>25|24|0" minRotRotationOffset="5.66" minRotDistanceToGround="1" maxRotDistanceToGround="0.38" minRot="36 0 0" minRot2="-30 0 0" maxRot="2 0 0" rotationNode2="0>25|24|0|0" maxRot2="-2 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="0>11" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d">
        <bottomArm rotationNode="0>25|24|1" translationNode="0>25|24|1|0" referenceNode="0>25|24|1|0|0" zScale="-1" />
        <topArm rotationNode="0>25|7|2" translationNode="0>25|7|2|0" referenceNode="0>25|7|2|0|0" zScale="-1" />
      </attacherJoint>
      <attacherJoint index="0>35" jointType="attachableFrontloader" minRot="0 0 0" minRot2="0 0 0" maxRot="0 0 0" maxRot2="0 0 0" maxTransLimit="0 0 0" maxRotLimit="0 0 0" moveTime="2" />
      <attacherJoint index="0>10|0" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>11" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
      <attacherJoint index="0>25|6|0|0" jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="true" ptoOutputNode="0>11" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
      <attacherJoint index="0>19" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" />
      <attacherJoint index="0>37" jointType="handtool" maxRotLimit="0 0 0" minRotRotationOffset="0" allowsJointLimitMovement="false" />
    </attacherJoints>

    <hydraulics count="5">
      <hydraulic1 index="3>3|0|0|0|4" fixpoint="0>30|0|1" />
      <hydraulic2 index="0>25|42" fixpoint="0>25|3|5" />
      <hydraulic3 index="0>25|43" fixpoint="0>25|3|6" />
      <hydraulic4 index="0>25|3|7" fixpoint="0>25|44" />
      <hydraulic5 index="0>25|3|8" fixpoint="0>25|45" />
    </hydraulics>

    <TractorAnimations>
      <PitchArm  Index="0>25|7|3" refNode="0>25|24|1"/>
    </TractorAnimations>

    <rotationPartLeft index="0>30" minRot="-5 0 0" maxRot="27 0 0" rotTime="1" touchRotLimit="28" />
  
    <seatNode index="0>34" />	
    <cameraRotNode index="0>33|0" />  
  
    <onEnter rootNode="0>33|0|1|0" speedScale="1.4" clip="enterVehicleClipsource" />
  
    <movingTools>
      <movingTool index="0>25|24|1">
        <dependentPart index="0>25|24|3" />
        <dependentPart index="0>25|24|4" />
      </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>8|0|3|0" referencePoint="0>38" referenceFrame="0>" isActiveDirty="true" scaleZ="true" playSound="false" invertZ="true"/>

        <movingPart index="3>3|0|0|0|1" referencePoint="3>2|0|0|0|1" referenceFrame="3>2|0|0|0|1" playSound="false" isActiveDirty="true" />
        
        <movingPart index="0>25|24|3" referencePoint="0>25|24|4|1" referenceFrame="0>" invertZ="true">
          <translatingPart index="0>25|24|3|0" />
        </movingPart>
        
        <movingPart index="0>25|24|4" referencePoint="0>25|24|1|0|1" localReferencePoint="0>25|24|4|2" invertZ="true" referenceFrame="0>" >
          <dependentPart index="0>25|24|4|2" />
        </movingPart>
        
        <movingPart index="0>25|24|4|2" referencePoint="0>25|24|1|0|1" referenceFrame="0>25|24|4|3" invertZ="true">
        </movingPart>
    </movingParts>

    <attacherJointLowerCombo duration="2">
        <attacherJoint index="5" time="0" />
        <attacherJoint index="1" time="1" />
        <attacherJoint index="3" time="1" />
        <attacherJoint index="4" time="1" />
    </attacherJointLowerCombo>
</vehicle>
