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

    <filename>kaefer73.i3d</filename>

    <size width="2.5" length="7.5"/>

    <wheels autoRotateBackSpeed="1.5">
        <wheel rotSpeed="1" restLoad="0.7" tireType="street" repr="0>0" driveNode="0>0|0" radius="0.3" initialCompression="40" suspTravel="0.15" spring="10" damper="3" mass="0.03" hasTyreTracks="true" tyreTrackAtlasIndex="4" maxLatStiffness="50" />
        <wheel rotSpeed="1" restLoad="0.7" tireType="street" repr="0>1" driveNode="0>1|0" radius="0.3" initialCompression="40" suspTravel="0.15" spring="10" damper="3" mass="0.03" hasTyreTracks="true" tyreTrackAtlasIndex="4" maxLatStiffness="50" />
        <wheel rotSpeed="0" restLoad="0.7" tireType="street" repr="0>2" driveNode="0>2|0" radius="0.3" initialCompression="40" suspTravel="0.15" spring="10" damper="3" mass="0.03" hasTyreTracks="true" tyreTrackAtlasIndex="4" maxLatStiffness="50" />
        <wheel rotSpeed="0" restLoad="0.7" tireType="street" repr="0>3" driveNode="0>3|0" radius="0.3" initialCompression="40" suspTravel="0.15" spring="10" damper="3" mass="0.03" hasTyreTracks="true" tyreTrackAtlasIndex="4" maxLatStiffness="50" />
    </wheels>
	
    <ackermannSteering rotSpeed="80" rotMax="43" rotCenterWheel1="2" rotCenterWheel2="2" />

    <speedRotScale scale="40" />
    <maxRotatedTimeSpeed value="2"/>

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
    </differentials>

    <motor torqueScale="0.2" minRpm="800" maxRpm="3000" brakeForce="0.5" lowBrakeForceScale="0.2" lowBrakeForceSpeedLimit="5" minForwardGearRatio="15" maxForwardGearRatio="50" minBackwardGearRatio="27.5" maxBackwardGearRatio="70">
        <torque normRpm="0.1" torque="0.35"/>
        <torque normRpm="0.2" torque="0.65"/>
        <torque normRpm="0.3" torque="0.85"/>
        <torque normRpm="0.4" torque="1"/>
        <torque normRpm="0.75" torque="1"/>
        <torque normRpm="1" torque="0.85"/>
    </motor>

    <fuelCapacity>45</fuelCapacity>
    <fuelUsage>21</fuelUsage>

    <cameras count="2">
        <camera1 index="6|0" rotatable="true" rotateNode="6" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="100" useMirror="true" isInside="false" />
        <camera2 index="7" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

    <lights count="2">
        <light realLight="0>5|0|0" decoration="0>5|0|2" lightType="0"/>
        <light realLight="0>5|0|1" lightType="0"/>
    </lights>
    <brakeLights>
        <brakeLight index="0>5|3" />
    </brakeLights>

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

    <reverseLights>
    </reverseLights>

    <mirrors>
    </mirrors>

    <indoorHud>
        <speed animName="speedDisplay" />
        <rpm animName="rpmDisplay" />
        <fuel animName="fuelDisplay" />
    </indoorHud>

    <enterReferenceNode index="0>" />
    <exitPoint index="0>10|2" />

    <attacherJoints>
        <attacherJoint index="0>10|1" jointType="trailerLow" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="10 80 80" maxTransLimit="0 0 0" canTurnOnImplement="false" />
    </attacherJoints>

    <steering index="0>4|0" indoorRotation="210" outdoorRotation="70" />

    <characterNode index="0>9|0" cameraMinDistance="2.0" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" rightArmIKChainId="rightArm" spineRotation="180 0 90" >
        <ikChains>
            <ikChain id="rightFoot" target="0>9|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>9|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>4|0|0" targetOffset="0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true" positionThreshold="0.01">
                <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 -40" />
                <rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -40" />
                <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>4|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 -40" />
                <rotationNode index="0|0|0|2|0|0|0|0|0" rotation="0 0 -40" />
                <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>

    <aiTrafficCollisionTrigger index="0>11" />


    <motorStartSound file="sound/Start.wav"	volume="2"	pitchOffset="0.9" />
    <motorSound      file="sound/Idle.wav"	volume="1.5"	pitchOffset="1" pitchScale="0.04" pitchMax="3" />
    <motorSoundRun   file="sound/Run.wav"	volume="1.5"	pitchOffset="0.5"  pitchScale="0.02"  pitchMax="3" />
    <motorStopSound  file="sound/stop.wav"	volume="1"	pitchOffset="0.6" />
    <honkSound       file="sound/Honk.wav"	volume="2"	radius="80" innerRadius="35" />
    <attachSound     file="$data/vehicles/shared/attach.wav"    pitchOffset="1" />

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

    <mouseControls>
    </mouseControls>

    <movingTools>
    </movingTools>

	<animParts>
		<animPart index="0>8|0"		id="kaefer73tuerli"		showHelp="true"		rotMin="0 0 0"			rotMax="0 -70 0"		moveTime="2" />
		<animPart index="0>8|0|1|0"	id="kaefer73tuerlife1"		showHelp="true"		transMin="0 0 0"		transMax="0.06 -0.36 0"		moveTime="2" />
		<animPart index="0>8|0|2"	id="kaefer73tuerlife2"		showHelp="false"	rotMin="0 0 0"			rotMax="0 -45 0"		moveTime="2" />
		<animPart index="0>8|1|1|0"	id="kaefer73tuerrefe1"		showHelp="false"	transMin="0 0 0"		transMax="-0.06 -0.36 0"	moveTime="2" />
		<animPart index="0>8|1|2"	id="kaefer73tuerrefe2"		showHelp="false"	rotMin="0 0 0"			rotMax="0 45 0"			moveTime="2" />
		<animPart index="0>8|1"		id="kaefer73tuerre"		showHelp="true"		rotMin="0 0 0"			rotMax="0 70 0"			moveTime="2" />
		<animPart index="0>8|2	"	id="kaefer73koffer"		showHelp="true"		rotMin="0 0 0"			rotMax="-50 0 0"		moveTime="1" />
		<animPart index="0>8|3"		id="kaefer73motor"		showHelp="true"		rotMin="0 0 0"			rotMax="70 0 0"			moveTime="1" />
	</animParts>

    <animations>
        <animation name="speedDisplay">
            <part node="0>5|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -142 0" />
        </animation>
        <animation name="fuelDisplay">
            <part node="0>5|5|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 80 0" />
        </animation>
    </animations>

    <exhaustEffects>
        <exhaustEffect index="0>10|0|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.3" forwardXRotations="0 0 50" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="120 0 -120" />
        <exhaustEffect index="0>10|0|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.3" forwardXRotations="0 0 50" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="120 0 -120" />
    </exhaustEffects>

    <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="1">
        <component1 centerOfMass="0 0.5 0" 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>
