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

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

    <wheels autoRotateBackSpeed="1.8">
        <wheel rotSpeed="1" restLoad="2.8" repr="0>0" forcePointRatio="0.2" driveNode="0>0" radius="0.545" width="0.42" initialCompression="50" suspTravel="0.2" spring="30" damper="20"                       maxLatStiffness="20" mass="0.1" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street" />
        <wheel rotSpeed="1" restLoad="2.8" repr="0>1" forcePointRatio="0.2" driveNode="0>1" radius="0.545" width="0.42" initialCompression="50" suspTravel="0.2" spring="30" damper="20"                       maxLatStiffness="20" mass="0.1" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street" />		
	    <wheel rotSpeed="0" restLoad="2.0" repr="0>2" forcePointRatio="0.3" radius="0.545" width="0.52" initialCompression="50" suspTravel="0.2" spring="45" damper="35" maxLongStiffness="10" maxLatStiffness="40" mass="0.2" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street" />
        <wheel rotSpeed="0" restLoad="2.0" repr="0>3" forcePointRatio="0.3" radius="0.545" width="0.52" initialCompression="50" suspTravel="0.2" spring="45" damper="35" maxLongStiffness="10" maxLatStiffness="40" mass="0.2" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street" />
		<wheel rotSpeed="0" restLoad="2.0" repr="0>4" forcePointRatio="0.3" radius="0.545" width="0.52" initialCompression="50" suspTravel="0.2" spring="85" damper="65" maxLongStiffness="10" maxLatStiffness="40" mass="0.2" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street" />
        <wheel rotSpeed="0" restLoad="2.0" repr="0>5" forcePointRatio="0.3" radius="0.545" width="0.52" initialCompression="50" suspTravel="0.2" spring="85" damper="65" maxLongStiffness="10" maxLatStiffness="40" mass="0.2" hasTyreTracks="true" tyreTrackAtlasIndex="4" tireType="street" />
    </wheels>

    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="4" wheelIndex2="5" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <motor torqueScale="2.349" minRpm="1000" maxRpm="3200" maxBackwardSpeed="15" brakeForce="10" lowBrakeForceScale="0.07" lowBrakeForceSpeedLimit="0.07" minForwardGearRatio="13.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.45" torque="0.5"/>
        <torque normRpm="0.5" torque="0.6"/>
        <torque normRpm="0.59" torque="0.7"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="0.9"/>
        <torque normRpm="1" torque="0.9"/>
    </motor>

    <fuelCapacity>650</fuelCapacity>
    <fuelUsage>100</fuelUsage>

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

    <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>
	
    <mirrors>
        <mirror index="0>27" />
        <mirror index="0>28" />
    </mirrors>
	
	<reverseLights>
        <reverseLight index="0>17" />
    </reverseLights>
	  
	
	<indoorHud>
        <speed animName="speedDisplay" />
        <rpm animName="rpmDisplay" />
    </indoorHud>

    <enterReferenceNode index="0>"/>
    <exitPoint index="0>9"/>
	
	
	<dynamicMountAttacherTrigger triggerNode="0>23" rootNode="0>" jointNode="0>" />

    <attacherJoints>
        <attacherJoint index="0>12" jointType="trailer" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="12 175 12" enableCollision="true" />
        <attacherJoint index="0>31" jointType="trailer" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="12 0 12" enableCollision="true" />
    </attacherJoints>

    <steering index="0>8" indoorRotation="360" outdoorRotation="40" />
	
    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm2_rot.png" axis="AXIS_FRONTLOADER_TOOL" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm2_rot.png"  axis="AXIS_FRONTLOADER_ARM2" />	
    </mouseControls>	
    <movingTools>
        <movingTool index="0>29|0" componentJointIndex="1" anchorActor="0" rotSpeed="20" rotAcceleration="170" rotMax="0" rotMin="-86.591" rotationAxis="1" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="fasle" speedFactor="0.7" />
        <movingTool index="0>30|0" componentJointIndex="1" anchorActor="0" rotSpeed="20" rotAcceleration="170" rotMax="0" rotMin="-89.382" rotationAxis="1" axis="AXIS_FRONTLOADER_ARM2" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM2" invertMouseAxis="fasle" speedFactor="0.7" />
    </movingTools>	
	
	<animations>
        <animation name="speedDisplay">
            <part node="0>18|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -82" />
        </animation>
        <animation name="rpmDisplay">
            <part node="0>18|0" startTime="0" endTime="1" startRot="0 0 -57" endRot="0 0 -170" />
        </animation>
    </animations>

    <characterNode index="0>10|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 100" >
        <ikChains>
            <ikChain id="rightFoot" target="0>10|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>10|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>

	<washable dirtDuration="90" washDuration="1" workMultiplier="2" />
	
    <aiTrafficCollisionTrigger index="0>11" />
	
	
	<exhaustEffects>
        <exhaustEffect index="0>22|0" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.4" forwardXRotations="30 0 80" forwardZRotations="-50 0 -50" steerXRotations="250 0 -150" steerZRotations="0 0 0" />
        <exhaustEffect index="0>22|1" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.4" forwardXRotations="30 0 80" forwardZRotations="-50 0 -50" steerXRotations="250 0 -150" steerZRotations="0 0 0" />
	</exhaustEffects>

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/shared/truck_attach.wav" pitchOffset="1" />
    <motorStartSound file="sound/engine_on.wav" pitchOffset="0.6" volume="1.0" />
    <motorSound file="sound/engine_idle.wav" pitchOffset="0.6" pitchScale="0.01" pitchMax="1.00" volume="0.4" />
    <motorSoundRun file="sound/engine_mid.wav" pitchOffset="0.3" pitchScale="0.015" pitchMax="1.00" volume="1" />
    <motorStopSound file="sound/engine_off.wav" pitchOffset="0.6" volume="1" />
    <compressedAirSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="sound/hornBig.wav" volume="1" radius="80" innerRadius="35" />
    <reverseDriveSound file="sound/reverse.wav" volume="1" />

    <driveGroundParticleSystems>
        <driveGroundParticleSystem node="0>" position="-0.906 0 -2.192" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3"/>
        <driveGroundParticleSystem node="0>" position="0.906 0 -2.192"  rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4"/>
        <driveGroundParticleSystem node="0>" position="-1.07 0 1.437" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem node="0>" position="1.074 0 1.437"  rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
    </driveGroundParticleSystems>

    <components count="1">
        <component1 centerOfMass="0 0 -0.5" solverIterationCount="10" />
    </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" />
    </schemaOverlay>

</vehicle>
