﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor_cylindered">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <de>Case IH Magnum 340</de>
        <en>Case IH Magnum 340</en>
    </name>
    <filename>data/vehicles/steerable/caseIH/caseIHMagnum340.i3d</filename>

    <size width="3.5" length="6.5"/>

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="70" rotMax="30" rotMin="-30" driveMode="2" repr="0>0" driveNode="0>0|0" radius="0.768" deltaY="0.20" suspTravel="0.23" spring="35" damper="50" mass="0.462" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="70" rotMax="30" rotMin="-30" driveMode="2" repr="0>1" driveNode="0>1|0" radius="0.768" deltaY="0.20" suspTravel="0.23" spring="35" damper="50" mass="0.462" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0>2" radius="0.97" deltaY="0.1" suspTravel="0.14" spring="80" damper="45" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0>3" radius="0.97" deltaY="0.1" suspTravel="0.14" spring="80" damper="45" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
    <motor minRpm="100" maxRpm="680 1060 2500 435" maxTorques="-1 -1 -1 -1" brakeForce="9" lowBrakeForceScale="0.5" compensateWheelRadius="true" accelerations="1 1 1 1" lowBrakeForceSpeedLimit="1" forwardGearRatio="14" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="2500" torque="3.2"/>
		<backwardTorque rpm="100" torque="3"/>
		<backwardTorque rpm="650" torque="0.6"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.12" deceleration="0.6" backwardDeceleration="0.7" />
    <fuelCapacity>635</fuelCapacity>
    <fuelUsage>0.0063</fuelUsage>
	<downForce>6</downForce>
	<bunkerSiloCompacter compactingScale="3"/>

    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="18" >
			<raycastNode index="0>6"/>
			<raycastNode index="0>7"/>
		</camera1>
        <camera2 index="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
    </cameras>
	
    <lights>
        <light realLight="0>9" fakeLight="0>20|1" decoration="0>20|0" lightType="0"/>
        <light realLight="0>10" decoration="0>21" lightType="1"/>
    </lights>
	
	<brakeLights>
		<brakeLight index="0>23" />
	</brakeLights>
	
	<beaconLights>
		<beaconLight index="0>22|0" speed="0.016" />
		<beaconLight index="0>22|1" speed="0.016" />
	</beaconLights>
	
    <steering index="0>11|0" rotationSpeed="12"/>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="0>16" low="true" ptoOutputNode="0>15" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d"/>
    </trailerAttacherJoints>

    <attacherJoints>
        <attacherJoint index="0>12|0|0" rotationNode="0>12" minRot="20 0 0" minRot2="-13 0 0" maxRot="5 0 0" rotationNode2="0>12|0" maxRot2="-5 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2.5" ptoOutputNode="0>15" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>13" translationNode="0>13|0" referenceNode="0>13|0|0" zScale="-1" />
        </attacherJoint>
    </attacherJoints>

    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="0>13">
            <dependentPart index="0>26" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>26" referencePoint="0>13|0|1" localReferencePoint="0>26|0" referenceFrame="0>" >
            <dependentPart index="0>26|0" />
			<dependentPart index="0>27" />
			<dependentPart index="0>14|0" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>26|0" referencePoint="0>13|0|1" referenceFrame="0>13|0|1" >
			<dependentPart index="0>26|0|0" />
			<dependentPart index="0>26|0|1" />
        </movingPart>
		<movingPart index="0>26|0|0" referencePoint="0>13|0|1|0" referenceFrame="0>13|0|1|0">
            <translatingPart index="0>26|0|0|0" />
        </movingPart>
		<movingPart index="0>26|0|1" referencePoint="0>13|0|1|1" referenceFrame="0>13|0|1|1">
            <translatingPart index="0>26|0|1|0" />
        </movingPart>
		<!-- hydraulic -->
		<movingPart index="0>27" referencePoint="0>26|1" referenceFrame="0>26|1">
            <translatingPart index="0>27|0" />
        </movingPart>
		<movingPart index="0>14|0" referencePoint="0>13|0|2|0" referenceFrame="0>">
            <translatingPart index="0>14|0|0" />
        </movingPart>
		
		
		<!-- steering -->
		<movingPart index="0>1|1" referencePoint="0>0|1" referenceFrame="0>" isActiveDirty="true" playSound="false" scaleZ="true">
        </movingPart>
		<movingPart index="0>24" referencePoint="0>1|2" referenceFrame="0>" isActiveDirty="true" playSound="false">
            <translatingPart index="0>24|0" />
        </movingPart>
		<movingPart index="0>25" referencePoint="0>0|2" referenceFrame="0>" isActiveDirty="true" playSound="false">
            <translatingPart index="0>25|0" />
        </movingPart>
    </movingParts>

    <characterNode index="0>17" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="0>18" />
	<exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>19" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/caseIH/caseIHMagnum340_start.wav" pitchOffset="1" volume="1" />
    <motorSound file="data/vehicles/steerable/caseIH/caseIHMagnum340_idle.wav" pitchOffset="1" pitchScale="0.022" pitchMax="1.4" volume="1" radius="50" innerRadius="20" />
    <motorSoundRun file="data/vehicles/steerable/caseIH/caseIHMagnum340_run.wav" pitchOffset="0.525" pitchScale="0.023" pitchMax="1.2" volume="1.3" />
    <motorStopSound file="data/vehicles/steerable/caseIH/caseIHMagnum340_stop.wav" pitchOffset="1" volume="1" />
    <compressedAirSound file="data/vehicles/steerable/deutz/brakeBig.wav" pitchOffset="1" volume="1"/>
    <compressionSound file="data/vehicles/steerable/deutz/brakeBig.wav" pitchOffset="1" volume="1.5"/>
	<honkSound file="dataS2/sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />

	<components count="1">
        <component1 centerOfMass="0 0.01 0.3" solverIterationCount="10" />
    </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" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
