<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Ursus_C330_Animated">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <de>Ursus C330</de>
        <en>Ursus C330</en>
    </name>
    <filename>Ursus_C330.i3d</filename>

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

    <wheels autoRotateBackSpeed="1.5">
        <wheel rotSpeed="1" rotMax="40" rotMin="-40" restLoad="2.62" repr="1>2|0" driveNode="1>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="1>3|0" driveNode="1>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.62" 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.62" width="0.54" initialCompression="50" suspTravel="0.03" spring="35" damper="25" mass="4" hasTyreTracks="true" brakeRatio="1"/>
    </wheels>

    <ackermannSteering rotSpeed="60" rotMax="33" rotCenterWheel1="2" rotCenterWheel2="3" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.55" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <motor torqueScale="0.26" 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>35</fuelCapacity>
    <fuelUsage>20</fuelUsage>

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

    <cameraTransNode index="0>32" rearWindow="0>31" indoorCameraIndex="1"/>

    <onEnter rootNode="0>32|0|1|0" speedScale="1.4" clip="enterVehicleClipsource" />

    <seatNode index="0>33" />	
    <cameraRotNode index="0>32|0" />  
    
    <characterNode index="0>13|0" armIndex="0>10|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 107" >
        <ikChains>
            <ikChain id="rightFoot" target="0>13|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>13|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>10|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>10|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>

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

    <aiTrafficCollisionTrigger index="0>14" />

    <exhaustEffects>
        <exhaustEffect index="0>15" 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>

    <newExhaustEffects maxMotorLoad="0.2" psThreshold="0.2">
        <particle node="0>27" position="0 0.1 0" rotation="0 0 0" file="ParticleSystem//newRealParticles.i3d" />
    </newExhaustEffects>
    
    <startExhaustEffects maxMotorLoad="0.2" psThreshold="0.2">
        <particle node="0>27" position="0 0.1 0" rotation="0 0 0" file="ParticleSystem//startRealParticles.i3d" />
    </startExhaustEffects>

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

    <washable dirtDuration="50" washDuration="1" workMultiplier="4" />

    <components count="6">
        <component1 centerOfMass="0 0.8 0.25" solverIterationCount="10" />
        <component2 centerOfMass="0.00 0.00 0.00" solverIterationCount="4" />
        <component3 solverIterationCount="4" />
        <component4 solverIterationCount="4" />
        <component5 solverIterationCount="4" />
        <component6 solverIterationCount="4" />
        
        <joint component1="0" component2="1" index="1>0" rotLimit="0 0 15" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="2>0" rotLimit="5 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="3" index="3>0" rotLimit="5 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="4" index="4>2|0" rotLimit="0 20 0" transLimit="0 0 0" />
        <joint component1="0" component2="5" index="5>2|0" rotLimit="0 20 0" transLimit="0 0 0" />
    </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" />
    </schemaOverlay>

    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>

    <motorStartDuration>4500</motorStartDuration>
    <attachSound file="Dzwieki/attach.wav" pitchOffset="1" />
    <motorStartSound file="Dzwieki/Ursus_start.wav" pitchOffset="0.795" volume="0.5" />
    <motorSound file="Dzwieki/Ursus_engine.wav" pitchOffset="0.9" pitchScale="0.025" pitchMax="1.5" volume="1" radius="35" innerRadius="8" />
    <motorSoundRun file="Dzwieki/Ursus_run.wav" pitchOffset="0.65" pitchScale="0.009" pitchMax="1.175" volume="0.675" />
    <motorStopSound file="Dzwieki/Ursus_Stop.wav" pitchOffset="1" volume="0.5" />
    <compressedAirSound file="Dzwieki/Stop.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="Dzwieki/horn.wav" volume="1" radius="70" innerRadius="10" />

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

    <attacherJoints>
        <attacherJoint index="0>24|0|0|0" rotationNode="0>24|0" minRot="25 0 0" maxRot="9 0 0" rotationNode2="0>24|0|0" minRot2="-17 0 0" maxRot2="-10 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5" ptoOutputNode="0>11" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d">
            <bottomArm rotationNode="0>24|1" translationNode="0>24|1|0" referenceNode="0>24|1|0|0" zScale="-1" />
            <topArm baseNode="0>24|2" filename="Tekstury/Sruba.i3d" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="0>12|0|0" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>11" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
        <attacherJoint index="0>25" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" />
        <attacherJoint index="0>23|22|0|0|0" jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>11" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
        <attacherJoint jointType="frontloader" index="0>39|1|0|4|0|0" allowsJointLimitMovement="false" allowsLowering="false" />
    </attacherJoints>

    <exhaustFlap index="0>23|5" maxRot="82" />

    <lights>
        <light realLight="0>23|3|1|4"  decoration="0>16|0" lightType="0"/>
        <light decoration="0>23|19|1" lightType="0"/>
        <light decoration="0>23|3|1|2" lightType="0"/>
        <light decoration="0>23|3|1|3" lightType="0"/>
    </lights>

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

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

    <mirrors>
        <mirror index="0>23|11" />
    </mirrors>

    <animationParts>
        <animationPart rootNode="0>23|3|1|0" clipName="Maska" clipSpeed="1.5" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|12" clipName="Wirnik" clipSpeed="3" offSet="80" loop="true" loadSave="false" accerlation="0.05" deAccerlation="0.05"></animationPart>
        <animationPart rootNode="0>23|13|0" clipName="Kluczyk" clipSpeed="2" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|2|0" clipName="Hamulec" clipSpeed="2" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|2" clipName="Reczny" clipSpeed="2" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|1" clipName="Sprzeglo" clipSpeed="1.5" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|0|0|0|0|0" clipName="Wsteczny" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|0|0|0|0|0|0" clipName="Czworka" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23" clipName="Korpus" clipSpeed="4" offSet="80" loop="true" loadSave="false" accerlation="0.05" deAccerlation="0.05"></animationPart>
        <animationPart rootNode="0>23|10|4" clipName="Dach" clipSpeed="2" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|10|2" clipName="Drzwi_prawe" clipSpeed="0.75" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|10|1" clipName="Szyba" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|10|3" clipName="Drzwi_lewe" clipSpeed="0.75" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|4|0" clipName="Gaz" clipSpeed="0.2" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|18|0" clipName="pompkaClipSource" clipSpeed="1" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|3|1" clipName="Maska_1" clipSpeed="2" offSet="80" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|20|0|0|0|0|0" clipName="wskazowkaClipSource" clipSpeed="1.5" offSet="80" loop="true" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|21|0" clipName="Wycieraczka" clipSpeed="1" offSet="80" loop="true" loadSave="false"></animationPart>
        <animationPart rootNode="0>23|22|0" clipName="Zaczep" clipSpeed="0.7" offSet="80" loop="false" loadSave="true"></animationPart>
        <animationPart rootNode="0>23|19|2|0" clipName="kontrolkiClipSource" clipSpeed="2" offSet="80" loop="false" loadSave="false"></animationPart>
    </animationParts>

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

    <movingTools>
        <movingTool index="0>24|1">
            <dependentPart index="0>24|3" />
        </movingTool>
        <movingTool index="0>39|1|0" attacherJointIndices="4" anchorActor="0" rotSpeed="20" rotAcceleration="80" rotMax="-2.5" rotMin="-65" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.8">
            <dependentPart index="0>39|1|0|1" />
        </movingTool>
        <movingTool index="0>39|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.8">
            <dependentPart index="0>39|1|0|0|0" />
        </movingTool>
    </movingTools>

    <steeringAnimationNodes>
        <animationNode index="0>26|0" wheelIndex="1" minXRot="36" maxXRot="-36" />
        <animationNode index="0>26|1" wheelIndex="0" minXRot="-36" maxXRot="36" />
    </steeringAnimationNodes>
	
    <TractorAnimations>
      <PitchArm  Index="0>23|9" refNode="0>24|1"/>
    </TractorAnimations>

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

    <hydraulics count="4">
        <hydraulic1 index="0>23|10|8" fixpoint="0>23|10|1|2" />
        <hydraulic2 index="0>23|10|9" fixpoint="0>23|10|1|3" />
        <hydraulic3 index="0>23|10|1|4" fixpoint="0>23|10|10" />
        <hydraulic4 index="0>23|10|1|5" fixpoint="0>23|10|11" />
    </hydraulics>

	  <animatedDetails>
        <tachoZeiger  zeigerIndex="0>23|20|0|0" id="door1" multiplicator="7" maxRotation="500" />	
    </animatedDetails>

    <Belka index="0>24|1|0|3"/>
    <Sruba index="0>24|2"/>
    <Swiatlo index="0>16|1"/>
    <Swiatlo_1 index="0>23|10|4|1"/>
    <Maska index="0>28"/>
    <Halogen index="0>23|10|6"/>
    <Drzwi_lewe index="0>29"/>
    <Drzwi_prawe index="0>30"/>
    <reka index="0>10|0|3" />
    <drzwi_zamkniete index="0>23|10|3"/>
    <drzwi_otwarte index="4>"/>
    <drzwi_zamkniete_1 index="0>23|10|2"/>
    <drzwi_otwarte_1 index="5>"/>
    <Pompka index="0>36"/>
    <Maska_1 index="0>23|3|1"/>
    <przyMaska_1 index="0>37"/>
    <przyBelka index="0>38"/>
    <Belka_1 index="0>24|1|0|3|0"/>
    <Bolec index="0>23|22|0|1"/>
    <Tur index="0>39|0"/>
    <Bolec_przedni index="0>23|3|3"/>
    <Tur_1 index="0>39|1"/>
    
    <AnimacjaDeszczu>
        <AnimacjaDeszczu index="0>23|21|1"/>
        <AnimacjaDeszczu index="0>23|16"/>
        <AnimacjaDeszczu index="0>23|10|1|6"/>
        <AnimacjaDeszczu index="0>23|10|1|7"/>
        <AnimacjaDeszczu index="0>23|10|3|2"/>
        <AnimacjaDeszczu index="4>3"/>
        <AnimacjaDeszczu index="0>23|10|3|3"/>
        <AnimacjaDeszczu index="4>4"/>
        <AnimacjaDeszczu index="0>23|10|2|2"/>
        <AnimacjaDeszczu index="5>3"/>
        <AnimacjaDeszczu index="0>23|10|2|3"/>
        <AnimacjaDeszczu index="5>4"/>
        <AnimacjaDeszczu index="0>23|11|2"/>
    </AnimacjaDeszczu>
    
    <animations>
        <animation name="Limit_rotacji_drzwi_lewych">
            <part componentJointIndex="3" startTime="0" endTime="0.5" startRotLimit="0 0 0" endRotLimit="0 20 0" />
        </animation>
        <animation name="Limit_rotacji_drzwi_prawych">
            <part componentJointIndex="4" startTime="0" endTime="0.5" startRotLimit="0 0 0" endRotLimit="0 20 0" />
        </animation>
        <animation name="Limit_rotacji_osi">
            <part componentJointIndex="0" startTime="0" endTime="0.5" startRotLimit="0 0 0" endRotLimit="0 0 15" />
        </animation>
    </animations>	
    
    <rotacja_drzwi animationName="Limit_rotacji_drzwi_lewych" /> 
    <rotacja_drzwi_1 animationName="Limit_rotacji_drzwi_prawych" /> 
    <rotacja_osi animationName="Limit_rotacji_osi" /> 
</vehicle>
