﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="ridingMower">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	<name>
        <en>Amazone Profihopper 4WDi</en>
        <de>Amazone Profihopper 4WDi</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Mower</typeDesc>
    <filename>data/vehicles/steerable/amazone/amazoneProfihopper.i3d</filename>

    <size width="3" length="4" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel rotSpeed="-75" rotMax="50" rotMin="-50" driveMode="2" driveNode="2|0" repr="2" radius="0.2" positionX="1.229" positionY="0.728" positionZ="-1.922" deltaY="0.2" suspTravel="0.2" spring="60" damper="40" mass="0.11" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="-75" rotMax="50" rotMin="-50" driveMode="2" driveNode="3|0" repr="3" radius="0.2" positionX="-1.221" positionY="0.728" positionZ="-1.922" deltaY="0.2" suspTravel="0.2" spring="60" damper="40" mass="0.11" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0" radius="0.245" positionX="1.126" positionY="1.006" positionZ="1.905" deltaY="0.2" suspTravel="0.2" spring="60" damper="40" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1" radius="0.245" positionX="-1.127" positionY="1.006" positionZ="1.905" deltaY="0.2" suspTravel="0.2" spring="60" damper="40" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
    <motor minRpm="100" maxRpm="1050 1400 2200" maxTorques="-1 -1 -1" brakeForce="9" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1" forwardGearRatio="68" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="2200" torque="0.2"/>

		<backwardTorque rpm="400" torque="0.8"/>
		<backwardTorque rpm="450" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.5" deceleration="0.3" backwardDeceleration="0.75" />
    <fuelCapacity>20</fuelCapacity>
    <fuelUsage>0.0002</fuelUsage>
    <downForce>7</downForce>
    <cameras count="2">
        <camera1 index="0>4|0" rotatable="true" rotateNode="0>4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3" transMax="18" >
			<raycastNode index="0>18|0"/>
			<raycastNode index="0>18|1"/>
		</camera1>
        <camera2 index="0>5" rotatable="true" rotateNode="0>5" limit="true" rotMinX="-1.25" rotMaxX="1.25" transMin="0" transMax="0" />
    </cameras>

	<lights>
        <light realLight="0>10" fakeLight="0>12" decoration="0>11" lightType="0"/>
    </lights>

	<beaconLights>
		<beaconLight index="0>13|0" speed="0.016" />
	</beaconLights>

	<brakeLights>
		<brakeLight index="0>23" />
	</brakeLights>

	<massPerFillLevel value="0.00005" />
    <capacity>2500</capacity>
    <fillRootNode index="0>" />
    <fillMassNode index="0>" />

    <fillTypes fillTypes="grass_windrow"/>

    <mowerCutAreas pickupFillScale="0.6">
        <mowerCutArea startIndex="0>20|5" widthIndex="0>20|6" heightIndex="0>20|7" dropWindrow="false" />
    </mowerCutAreas>

    <mowerToggleWindrowDrop enableText="disable_grass_pickup" disableText="enable_grass_pickup" />

	<mowerTurnOnAnimation name="rotatePickup" turnOnSpeed="2" turnOffSpeed="-1" />

    <steering index="14|0" rotationSpeed="6"/>

    <enterReferenceNode index="0>" />
    <exitPoint index="0>9" />

    <fillPlanes>
		<fillPlane type="grass_windrow">
            <node index="0>19|1|0|0|4">
                <key time="0" translation="0 -0.194 0.065" scale="0.912 0.01 0.647"/>
				<key time="0.6" translation="0 0.068 0.01" scale="1 1 0.9"/>
                <key time="1" translation="0 0.318 -0.079" scale="1 1 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

	<groundReferenceNode index="0>20|1" threshold="0.15" />

	<mowerStartSound file="data/vehicles/steerable/amazone/amazoneProfihopper_mowerstart.wav" pitchOffset="1" />
    <mowerSound file="data/vehicles/steerable/amazone/amazoneProfihopper_mowerwork.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.2" radius="50" innerRadius="25" />
    <mowerStopSound file="data/vehicles/steerable/amazone/amazoneProfihopper_mowerstop.wav" pitchOffset="1" />
	<hydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="1.0" volume="1.0" />
    <motorStartSound file="data/vehicles/steerable/amazone/amazoneProfihopper_start.wav" pitchOffset="0.9" />
    <motorSound file="data/vehicles/steerable/amazone/amazoneProfihopper_idle.wav" pitchOffset="0.9" pitchScale="0.02" pitchMax="1.3" radius="35" innerRadius="25" />
	<motorSoundRun file="data/vehicles/steerable/amazone/amazoneProfihopper_run.wav" pitchOffset="0.25" pitchScale="0.045" pitchMax="1.05" volume="1" />
	<motorStopSound file="data/vehicles/steerable/amazone/amazoneProfihopper_stop.wav" pitchOffset="0.95" />
	<honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

	<movingTools>
        <!-- main arms -->
        <movingTool index="0>19|1">
			<!-- support arm -->
            <dependentPart index="0>19|0" />
            <!-- lift cylinder -->
			<dependentPart index="0>19|5" />
        </movingTool>
		<!-- container -->
		<movingTool index="0>19|1|0|0">
            <!-- container cylinder -->
            <dependentPart index="0>19|1|0|1" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- container support bar -->
        <movingPart index="0>19|0" referencePoint="0>19|1|0|3" referenceFrame="0>19|6" scaleZ="true"></movingPart>
		<!-- lift cylinder -->
		<movingPart index="0>19|5" referencePoint="0>19|0|0" referenceFrame="0>19|7">
			<translatingPart index="0>19|5|0" />
		</movingPart>
		<!-- lift cylinder -->
		<movingPart index="0>19|1|0|1" referencePoint="0>19|1|0|0|2" referenceFrame="0>19|1|0|2">
			<translatingPart index="0>19|1|0|1|0" />
		</movingPart>

		<!-- wheels -->
		<movingPart index="0>19|3" referencePoint="0>3|1" referenceFrame="0>" isActiveDirty="true" playSound="false">
			<translatingPart index="0>19|3|0" />
		</movingPart>
		<movingPart index="0>19|4" referencePoint="0>2|1" referenceFrame="0>" isActiveDirty="true" playSound="false">
			<translatingPart index="0>19|4|0" />
		</movingPart>
    </movingParts>

    <animations>
        <animation name="unloading">
            <part node="0>19|1" startTime="0" endTime="10.0" startRot="0 0 0" endRot="80 0 0"/>
			<part node="0>19|1|0" startTime="0" endTime="10.0" startRot="0 0 0" endRot="-76.45 0 0"/>
			<part node="0>19|1|0|0" startTime="10" endTime="18.0" startRot="0 0 0" endRot="-125 0 0"/>
			<part node="0>19|1|0|0|1" startTime="10" endTime="18.0" startRot="0 0 0" endRot="70 0 0"/>
        </animation>
		<animation name="rotatePickup">
            <part node="0>20" startTime="0" endTime="1" startTrans="0 0.436 0.709" startRot="0 0 0" endTrans="0 0.30795 0.69857" endRot="8.5849 0 0"/>
        </animation>
    </animations>

	<allowFillFromAir value="false" />

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>17" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>
    <characterNode index="0>15" cameraMinDistance="1.5" />

	<tipReferencePoints>
        <tipReferencePoint index="0>22" width="2.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="unloading" dischargeStartTime="15" dischargeEndTime="23" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="grass_windrow" node="0>19|1|0|0|3" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/profihopperParticleSystem.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <aiTrafficCollisionTrigger index="0>16" />

    <components count="1">
        <component1 centerOfMass="0 0 0" 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"/>

</vehicle>
