<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="JCB526">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>JCB526</en>
        <de>JCB526</de>
    </name>
    <description>JCB526</description>
    <filename>JCB526.i3d</filename>
    <size width="3.0" length="7.0" />
		
    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="60" rotMax="30" rotMin="-30" driveMode="2" repr="0" driveNode="0|0" radius="0.65" deltaY="0.6" suspTravel="0.6" spring="180" damper="0" mass="0.20" />
        <wheel rotSpeed="60" rotMax="30" rotMin="-30" driveMode="2" repr="1" driveNode="1|0" radius="0.65" deltaY="0.6" suspTravel="0.6" spring="180" damper="0" mass="0.20" />
        <wheel rotSpeed="-60" rotMax="30" rotMin="-30" driveMode="2" repr="2" driveNode="2|0" radius="0.65" deltaY="0.6" suspTravel="0.6" spring="180" damper="0" mass="0.20" />
        <wheel rotSpeed="-60" rotMax="30" rotMin="-30" driveMode="2" repr="3" driveNode="3|0" radius="0.65" deltaY="0.6" suspTravel="0.6" spring="180" damper="0" mass="0.20" />
    </wheels>
		
    <motor minRpm="100" maxRpm="850 1350 2300 720" maxTorques="-1 -1 -1 -1" brakeForce="7.5" lowBrakeForceScale="0.4" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="22.7" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="0">
		<torque rpm="100" torque="0.45"/>
		<torque rpm="2300" torque="0.62"/>
		<backwardTorque rpm="600" torque="0.6"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>	
	
	<accelerationSpeed maxAcceleration="0.5" deceleration="0.6" backwardDeceleration="0.7" />
	<operatingHours posX="0.7543" posY="0.2415" />
    <ESLimiter posX="0.7543" posY="0.2415" />
	
    <fuelCapacity>102</fuelCapacity>
    <fuelUsage>0.001</fuelUsage>
    <downForce>8</downForce>
	<bunkerSiloCompacter compactingScale="1"/>

    <cameras count="3">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="false" rotMinX="0" rotMaxX="0" transMin="4" transMax="0" >
			<raycastNode index="0>21"/>
			<raycastNode index="0>22"/>
		</camera1>
        <camera2 index="5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
	<camera3 index="19|0|3" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>
		
	<beaconLights>
		<beaconLight index="33|0|2" speed="0.017" />
	</beaconLights>
	
	<!-- Lights -->
	<lights>
<!--	    <light realLight="0>17|5" fakeLight="0>17|5|2" decoration="0>17|5|1" lightType="0"/> -->
    </lights>	
    
	<lightsaddon lightsStayOn="false">		
		<light type="work" index="34|0" real="34|0|2" beam="34|0|1" inputName="frontwork" helptext="frontwork" stayOn="false"/>
		<light type="work" index="34|1" real="34|1|2" beam="34|1|1" inputName="rearwork" helptext="rearwork" stayOn="false"/>
		<light type="work" index="34|2" real="34|2|2" beam="34|2|1" inputName="normal" helptext="normal" stayOn="true"/>
		<light type="work" index="19|5" real="19|5|2" beam="19|5|1" inputName="Boomlight" helptext="Boomlight" stayOn="true"/>
		<light type="dirLeft" index="34|3" />
		<light type="dirRight" index="34|4" />		
		<light type="brake" index="34|5" />
		<light type="reverse" index="34|6" />
		<flashers soundfile="blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.3" autoreturn="false" tolerance="0.5" pitch="0.5" />
	</lightsaddon>		
	
	<mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/tool_dav_arm1.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_TELEHANDLER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/tool_dav_arm2.png" mouseButton="RIGHT" mouseAxis="Y" axis="AXIS_TELEHANDLER_INNER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/tool_dav_tool.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_TELEHANDLER_TOOL" />
    </mouseControls>	
	
    <steering index="13|0" rotationSpeed="4"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />

    <cuttingAreas count="0">
        <!--cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/-->
    </cuttingAreas>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="16" low="true" />
    </trailerAttacherJoints>

    <tipCamera index="10" />

	<attacherJoints>
        <attacherJoint jointType="telehandler" index="19|0|2|0" allowsJointLimitMovement="false" allowsLowering="false" />
    </attacherJoints>    

    <movingTools>
        <movingTool index="19" componentJointIndex="0" anchorActor="0" rotSpeed="30" rotAcceleration="70" rotMax="5" rotMin="-60" axis="AXIS_TELEHANDLER_ARM" invertAxis="true" mouseAxis="AXIS_TELEHANDLER_ARM" invertMouseAxis="true" speedFactor="0.4">
            <dependentPart index="0>20" />
            <dependentPart index="0>19|0" />
        </movingTool>
		<movingTool index="19|0" componentJointIndex="1" anchorActor="0" transSpeed="1" transAcceleration="40" transMax="3.2" transMin="1.08" translationAxis="3" axis="AXIS_TELEHANDLER_INNER_ARM" invertAxis="false" mouseAxis="AXIS_TELEHANDLER_INNER_ARM" invertMouseAxis="true" speedFactor="0.3">
            <dependentPart index="0>19|0|2" />
        </movingTool>
		<movingTool index="19|0|2" attacherJointIndices="0" anchorActor="0" rotSpeed="100" rotAcceleration="140" rotMax="80" rotMin="-20" axis="AXIS_TELEHANDLER_TOOL" invertAxis="false" mouseAxis="AXIS_TELEHANDLER_TOOL" invertMouseAxis="false" speedFactor="0.4">
            <dependentPart index="0>19|0|0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- arm cylinder -->
        <movingPart index="0>20" referencePoint="0>19|1" referenceFrame="0>19|1">
            <translatingPart index="0>20|0" />
        </movingPart>

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

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="$data/vehicles/steerable/deutz/agrotron_xl_start.wav" pitchOffset="1" volume="2" />
    <motorSound file="$data/vehicles/steerable/deutz/agrotron_xl_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.65" volume="2" />
    <motorSoundRun file="$data/vehicles/steerable/deutz/sdf_combine_idle.wav" pitchOffset="0.5" pitchScale="0.025" pitchMax="1.05" volume="0.8" />
    <motorStopSound file="$data/vehicles/steerable/deutz/agrotron_xl_out.wav" pitchOffset="1" />
    <compressedAirSound file="$data/vehicles/steerable/deutz/compressedAir.wav" pitchOffset="1"/>
    <reverseDriveSound file="$data/vehicles/steerable/deutz/reverseDrivingBeep.wav" volume="0.5" />
	<cylinderedHydraulicSound file="$data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.75" volume="0.6" />
    <aiMotorSound  file="$data/vehicles/steerable/deutz/agrotron_xl_idleAI.wav" pitchOffset="1" radius="25" innerRadius="4" volume="1.0" />
	<honkSound file="$dataS2/sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="18" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>	
	
    <characterNode index="15" cameraMinDistance="1.5" />

    <aiTrafficCollisionTrigger index="17" />	

    <components count="3">
        <component1 centerOfMass="0 0 0" solverIterationCount="20" />
        <component2 centerOfMass="0 -1.3 0" solverIterationCount="20" />
        <component3 centerOfMass="0 -1.7 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>19|2" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="0" component2="2" index="0>19|0|1" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <collisionPair component1="1" component2="2" enabled="false"/>
    </components>

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

</vehicle>
