﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="wheelLoader">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Lizard G 920 wheel loader</en>
        <de>Lizard G 920 Radlader</de>
    </name>
    <filename>data/vehicles/steerable/lizard/wheelLoader.i3d</filename>

    <size width="4.5" length="9.5"/>

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="0" driveMode="2" repr="0>0" radius="0.781" deltaY="0.06" suspTravel="0.17" spring="60" damper="20" mass="0.6" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="2" repr="0>1" radius="0.781" deltaY="0.06" suspTravel="0.17" spring="60" damper="20" mass="0.6" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1>0" radius="0.781" deltaY="0.06" suspTravel="0.17" spring="60" damper="20" mass="0.4475" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1>1" radius="0.781" deltaY="0.06" suspTravel="0.17" spring="60" damper="20" mass="0.4475" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>

    <motor minRpm="100" maxRpm="840 1270 2200 660" maxTorques="-1 -1 -1 -1" brakeForce="18" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="21.7" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="2200" torque="1"/>
		<backwardTorque rpm="700" torque="1.2"/>
		<backwardTorque rpm="800" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.5" deceleration="0.25" backwardDeceleration="0.7" />
    <fuelCapacity>350</fuelCapacity>
    <fuelUsage>0.0035</fuelUsage>
    <downForce>7</downForce>

	<attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/lizard/wheelLoaderStart.wav" pitchOffset="0.75" volume="1" />
    <motorSound file="data/vehicles/steerable/lizard/wheelLoaderIdle.wav" pitchOffset="0.72" pitchScale="0.024" pitchMax="1" volume="1" volume3D="1.25" radius="50" innerRadius="20" />
    <motorStopSound file="data/vehicles/steerable/lizard/wheelLoaderStop.wav" pitchOffset="0.9" volume="3" />
    <cylinderedHydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.75" volume="0.75" />
	<reverseDriveSound file="data/vehicles/steerable/deutz/reverseDrivingBeep.wav" volume="0.5" />
	<compressedAirSound file="data/vehicles/steerable/deutz/brakeOld.wav" pitchOffset="1" volume="1.0"/>
	<motorSoundRun file="data/vehicles/steerable/lizard/wheelLoader_run.wav" pitchOffset="0.4" pitchScale="0.04" pitchMax="1.0" volume="1" />
    <honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <lights>
        <light realLight="0>6" fakeLight="0>13" decoration="0>12" lightType="0"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>16" />
	</brakeLights>

	<beaconLights>
		<beaconLight index="14|0" speed="0.016" />
	</beaconLights>

    <cameras count="3">
        <camera1 index="2|0" rotatable="true" rotateNode="2" limit="true" rotYSteeringRotSpeed="25" useWorldXZRotation="true" rotMinX="-1.55" rotMaxX="0.05" transMin="5" transMax="18">
            <raycastNode index="0>10"/>
            <raycastNode index="0>11"/>
            <raycastNode index="1>5"/>
        </camera1>
        <camera2 index="3" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
        <camera3 index="1>4|0" rotatable="true" rotateNode="1>4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0.1" transMin="8.7" transMax="18">
            <raycastNode index="0>10"/>
            <raycastNode index="0>11"/>
            <raycastNode index="1>5"/>
        </camera3>
    </cameras>

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 position="-0.3 2.6 -3.25" rotation="-70 0 0" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

    <steering index="5|0" rotationSpeed="6"/>
    <enterReferenceNode index="0>" />
    <exitPoint  index="4" />
    <characterNode index="8" cameraMinDistance="1.5" />

    <articulatedAxis componentJointIndex="0" anchorActor="0" rotSpeed="50" rotMax="33" rotMin="-33" />

    <bunkerSiloCompacter compactingScale="6"/>

    <shovel tipReferenceNode="1>2|2|0|5">
        <node index="2>" />
    </shovel>

    <shovelTipTrigger index="1>2|2|0|6" />

    <fillPlanes>
        <fillPlane type="manure">
            <node index="1>2|2|0|3">
				<key time="0"   translation="0 -0.251 0.385" scale="0.997 0.9 0.576"/>
				<key time="0.25"   translation="0 -0.251 0.5625" scale="0.998 0.945 0.6"/>
				<key time="0.5" translation="0 -0.251 0.74" scale="0.998 0.978 0.8"/>
                <key time="1"   translation="0 -0.251 1.095" scale="1 1 1"/>
			</node>
        </fillPlane>
        <fillPlane type="silage">
            <node index="1>2|2|0|4">
				<key time="0"   translation="0 -0.251 0.385" scale="0.997 0.9 0.576"/>
				<key time="0.25"   translation="0 -0.251 0.5625" scale="0.998 0.945 0.6"/>
				<key time="0.5" translation="0 -0.251 0.74" scale="0.998 0.978 0.8"/>
                <key time="1"   translation="0 -0.251 1.095" scale="1 1 1"/>
			</node>
        </fillPlane>
		<fillPlane type="potato">
            <node index="1>2|2|0|7">
				<key time="0"   translation="0 -0.251 0.385" scale="0.997 0.9 0.576"/>
				<key time="0.25"   translation="0 -0.251 0.5625" scale="0.998 0.945 0.6"/>
				<key time="0.5" translation="0 -0.251 0.74" scale="0.998 0.978 0.8"/>
                <key time="1"   translation="0 -0.251 1.095" scale="1 1 1"/>
			</node>
        </fillPlane>
		<fillPlane type="sugarBeet">
            <node index="1>2|2|0|8">
				<key time="0"   translation="0 -0.251 0.385" scale="0.997 0.9 0.576"/>
				<key time="0.25"   translation="0 -0.251 0.5625" scale="0.998 0.945 0.6"/>
				<key time="0.5" translation="0 -0.251 0.74" scale="0.998 0.978 0.8"/>
                <key time="1"   translation="0 -0.251 1.095" scale="1 1 1"/>
			</node>
        </fillPlane>
    </fillPlanes>

    <fillTypes fruitTypes="manure silage potato sugarBeet"/>

    <massScale value="1" />
    <capacity>10000</capacity>

    <fillRootNode index="2>" />
    <fillMassNode index="0>" />

    <trailerAttacherJoints>
        <trailerAttacherJoint index="15" maxRotLimit="10 80 80" />
    </trailerAttacherJoints>

    <emptyParticleSystems>
        <emptyParticleSystem type="manure" node="1>2|2|0|5" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/shovelEmptyParticleSystem.i3d" />
        <emptyParticleSystem type="silage" node="1>2|2|0|5" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/shovelEmptyParticleSystem.i3d" />
		<emptyParticleSystem type="potato" node="1>2|2|0|5" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/shovelEmptyPSPotato.i3d" />
        <emptyParticleSystem type="sugarBeet" node="1>2|2|0|5" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/shovelEmptyPSSugarbeet.i3d" />
    </emptyParticleSystems>

    <mouseControls>
        <mouseControl iconFilename="dataS2/menu/mouseControlsHelp/tool_wl_shovel.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />
        <mouseControl iconFilename="dataS2/menu/mouseControlsHelp/tool_wl_arm1.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
        <movingTool index="1>2|2|0" componentJointIndex="1" anchorActor="0" rotSpeed="25" speedFactor="0.8" rotAcceleration="400" rotMax="125" rotMin="-15" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL">
            <dependentPart index="1>2|2|1" />
        </movingTool>
        
        <movingTool index="1>2|2" componentJointIndex="2" rotSpeed="17.5" speedFactor="0.8" rotAcceleration="200" rotMax="0" rotMin="-95" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true">
            <!-- shovel -->
            <dependentPart index="1>2|2|0" />
            <!-- hydraulic low -->
            <dependentPart index="1>2|0" />
            <dependentMovingTool index="1>2|2|0" rotSpeedScale="-1"/>
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- big hinge -->
        <movingPart index="1>2|2|1" referencePoint="1>2|2|0|0" localReferencePoint="1>2|2|1|0" referenceFrame="1>3">
            <dependentPart index="1>2|2|1|0" />
            <dependentPart index="1>2|1" />
        </movingPart>
        <movingPart index="1>2|2|1|0" referencePoint="1>2|2|0|0" referenceFrame="1>2|2">
        </movingPart>
        <!-- hydraulic high -->
        <movingPart index="1>2|1" referencePoint="1>2|2|1|1" referenceFrame="1>2|2">
            <translatingPart index="1>2|1|0" />
        </movingPart>
        <!-- hydraulic low -->
        <movingPart index="1>2|0" referencePoint="1>2|2|2" referenceFrame="1>2|2">
            <translatingPart index="1>2|0|0" />
        </movingPart>
    </movingParts>

    <components count="4">
        <component1 centerOfMass="0 0 -1.5" solverIterationCount="20" />
        <component2 solverIterationCount="20" />
        <component3 centerOfMass="0 -0.78 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>9" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="2" index="1>2|2|0|1" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="3" index="1>2|2|3" rotLimit="0 0 0" transLimit="0 0 0" breakable="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" />
    </schemaOverlay>

</vehicle>
