﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kroeger Agroliner HKD 302</en>
        <de>Kröger Argoliner HKD 302</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>data/vehicles/trailers/kroeger/HKD302.i3d</filename>

    <size width="4" length="9" lengthOffset="0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0>0" radius="0.5" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="0>1" radius="0.5" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="1>0" radius="0.5" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="1>1" radius="0.5" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
    </wheels>
    <brakeForce>1</brakeForce>
	<downForce>5</downForce>
	<capacity>21000</capacity>
	<massPerFillLevel value="0.00005" />

	<lightCoronas>
		<lightCorona index="0>2|2" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>2|3" />
	</brakeLights>

	<fillPlanes>
        <fillPlane type="wheat">
            <node index="0>3|0|0|6|0">
				<key time="0"   y="1.3202" scale="1 0 1"/>
                <key time="0.205" y="1.3202" scale="1 0.205 1"/>
                <key time="1"   y="1.3202" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|11">
				<key time="0" y="0.14778" scale="0.7 0.1 1"/>
                <key time="1" y="0.14778" scale="0.7 1 1"/>
            </node>
			<node index="0>3|0|0|13">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|14">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="maize">
            <node index="0>3|0|0|6|3">
				<key time="0"   y="1.3202" scale="1 0 1"/>
                <key time="0.205" y="1.3202" scale="1 0.205 1"/>
                <key time="1"   y="1.3202" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|11">
				<key time="0" y="0.14778" scale="0.7 0.1 1"/>
                <key time="1" y="0.14778" scale="0.7 1 1"/>
            </node>
			<node index="0>3|0|0|13">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|14">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="rape">
            <node index="0>3|0|0|6|1">
				<key time="0"   y="1.3202" scale="1 0 1"/>
                <key time="0.205" y="1.3202" scale="1 0.205 1"/>
                <key time="1"   y="1.3202" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|11">
				<key time="0" y="0.14778" scale="0.7 0.1 1"/>
                <key time="1" y="0.14778" scale="0.7 1 1"/>
            </node>
			<node index="0>3|0|0|13">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|14">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="chaff">
            <node index="0>3|0|0|6|2">
				<key time="0"   y="1.3202" scale="1 0 1"/>
                <key time="0.205" y="1.3202" scale="1 0.205 1"/>
                <key time="1"   y="1.3202" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|11">
				<key time="0" y="0.14778" scale="0.7 0.1 1"/>
                <key time="1" y="0.14778" scale="0.7 1 1"/>
            </node>
			<node index="0>3|0|0|13">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|14">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="potato">
            <node index="0>3|0|0|6|4">
				<key time="0"   y="1.3202" scale="1 0 1"/>
                <key time="0.205" y="1.3202" scale="1 0.205 1"/>
                <key time="1"   y="1.3202" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|11">
				<key time="0" y="0.14778" scale="0.7 0.1 1"/>
                <key time="1" y="0.14778" scale="0.7 1 1"/>
            </node>
			<node index="0>3|0|0|13">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|14">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="sugarBeet">
            <node index="0>3|0|0|6|5">
				<key time="0"   y="1.3202" scale="1 0 1"/>
                <key time="0.205" y="1.3202" scale="1 0.205 1"/>
                <key time="1"   y="1.3202" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|11">
				<key time="0" y="0.14778" scale="0.7 0.1 1"/>
                <key time="1" y="0.14778" scale="0.7 1 1"/>
            </node>
			<node index="0>3|0|0|13">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
			<node index="0>3|0|0|14">
				<key time="0" y="0.14778" scale="1 0.1 1"/>
                <key time="1" y="0.14778" scale="1 1 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

    <hydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.9" volume="1.0" />
    <fillSound file="data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />
	<attacherJoint index="2>0" jointType="trailer" rootNode="2>"/>

	<trailerAttacherJoints>
        <trailerAttacherJoint index="0>4" low="false" maxRotLimit="10 80 80" />
    </trailerAttacherJoints>

    <tipReferencePoints>
		<tipReferencePoint index="0>2|5|2" width="2.5" />
		<tipReferencePoint index="0>2|5|1" width="3" />
		<tipReferencePoint index="0>2|5|0" width="3" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1" dischargeEndTime="10" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="maize" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="barley" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="rape" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>3|0|0|11" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
		<tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationLeft" dischargeStartTime="1" dischargeEndTime="13">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPS.i3d" />
                <dischargeParticleSystem type="maize" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPS.i3d" />
                <dischargeParticleSystem type="barley" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPS.i3d" />
                <dischargeParticleSystem type="rape" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>3|0|0|13" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
		<tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationRight" dischargeStartTime="1" dischargeEndTime="13">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPS.i3d" />
                <dischargeParticleSystem type="maize" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPS.i3d" />
                <dischargeParticleSystem type="barley" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPS.i3d" />
                <dischargeParticleSystem type="rape" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>3|0|0|14" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroegerHKDSideDPSSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>3|0|0|9" />
    <fillAutoAimTargetNode index="0>3|0|0|10" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet"/>

    <movingTools>
		<movingTool index="0>3">
			<dependentPart index="0>2|1" />
			<dependentPart index="0>2|1|0" />
		</movingTool>
		<movingTool index="0>3|0">
            <dependentPart index="0>2|1" />
			<dependentPart index="0>2|1|0" />
        </movingTool>
		<movingTool index="0>3|0|0">
            <dependentPart index="0>2|1|0" />
        </movingTool>
    </movingTools>

    <movingParts>
		<movingPart index="0>2|1" referencePoint="0>3|0|0|15" referenceFrame="0>2|6" lockAxis="1"/>
		<movingPart index="0>2|1|0" referencePoint="0>3|0|0|15" referenceFrame="0>2|6" lockAxis="3">
            <translatingPart index="0>2|1|0|0" />
            <translatingPart index="0>2|1|0|0|0" />
            <translatingPart index="0>2|1|0|0|0|0" />
            <translatingPart index="0>2|1|0|0|0|0|0" />
            <translatingPart index="0>2|1|0|0|0|0|0|0" />
        </movingPart>
    </movingParts>

    <animations>
		<!-- backtipping -->
		<animation name="tipAnimationBack">
			<part node="0>3|0|0|3" startTime="0" endTime="0.5" startRot="0 0 0" endRot="-40 0 0" /> <!-- lock -->
            <part node="0>3|0|0|0" startTime="0.3" endTime="8" startRot="0 0 0" endRot="60 0 0" /> <!-- door -->
			<part node="0>3|0|0" startTime="0.3" endTime="8" startRot="0 0 0" endRot="-60 0 0" /> <!-- body -->
        </animation>
		<!-- tipping left -->
		<animation name="tipAnimationLeft">
			<part node="0>3|0|0|4" startTime="0" endTime="0.5" startRot="0 0 0" endRot="0 0 -40" /> <!-- lock -->
            <part node="0>3|0|0|2" startTime="0.3" endTime="8" startRot="0 0 0" endRot="0 0 60" /> <!-- door -->
			<part node="0>3" startTime="0.3" endTime="8" startRot="0 0 0" endRot="0 0 -60" /> <!-- body -->
        </animation>
		<!-- tipping right -->
		<animation name="tipAnimationRight">
			<part node="0>3|0|0|5" startTime="0" endTime="0.5" startRot="0 0 0" endRot="0 0 40" /> <!-- lock -->
            <part node="0>3|0|0|1" startTime="0.3" endTime="8" startRot="0 0 0" endRot="0 0 -50" /> <!-- door -->
			<part node="0>3|0" startTime="0.3" endTime="8" startRot="0 0 0" endRot="0 0 50" /> <!-- body -->
        </animation>
    </animations>

    <components count="3">
        <component1 centerOfMass="0 0 0" solverIterationCount="35" />
        <component2 solverIterationCount="35" />
        <component3 solverIterationCount="35" />
        <joint component1="0" component2="1" index="1>3" rotLimit="0 120 0" transLimit="0 0 0" />
        <joint component1="1" component2="2" index="2>1" rotLimit="20 0 0" transLimit="0 0 0" />
    </components>

	<schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0">
        <attacherJoint position="0.5 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
