﻿<?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 MUK 303</en>
        <de>Kröger Agroliner MUK 303</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>data/vehicles/trailers/kroeger/MUK303.i3d</filename>

    <size width="3.5" length="11.0" lengthOffset="0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0>0" driveNode="0>0|0" radius="0.63" deltaY="0" suspTravel="0.05" spring="10" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="0>1" driveNode="0>1|0" radius="0.63" deltaY="0" suspTravel="0.05" spring="10" damper="50" mass="0.15" lateralStiffness="2" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25"/>
        <wheel driveMode="0" repr="0>2" radius="0.63" deltaY="0" suspTravel="0.05" spring="10" damper="50" mass="0.15" lateralStiffness="2"  />
        <wheel driveMode="0" repr="0>3" driveNode="0>3|0" radius="0.63" deltaY="0" suspTravel="0.05" spring="10" damper="50" mass="0.15" lateralStiffness="2" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" />
    </wheels>
    <brakeForce>1</brakeForce>
	<steeringAxleAngleScale startSpeed="5" endSpeed="70" />
	<downForce>5</downForce>
	<capacity>29000</capacity>
	<massPerFillLevel value="0.00005" />

	<lightCoronas>
		<lightCorona index="0>10" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>11" />
	</brakeLights>

	<fillPlanes>
        <fillPlane type="wheat">
            <node index="0>7|8|0">
				<key time="0"   y="0" scale="1 0 1.025"/>
				<key time="0.093" y="0" scale="1.048 0.093 1.025"/>
				<key time="0.325" y="0" scale="1.03 0.325 1.009"/>
				<key time="0.389" y="0" scale="1 0.389 1.009"/>
				<key time="0.489" y="0" scale="1 0.489 1.009"/>
				<key time="0.549" y="0" scale="1.048 0.549 1.009"/>
				<key time="0.757" y="0" scale="1.03 0.757 1"/>
                <key time="0.826" y="0" scale="1 0.826 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>7|11|0">
				<key time="0" scale="0.8 0.1 1"/>
                <key time="1" scale="0.8 1.15 1"/>
            </node>
        </fillPlane>
		<fillPlane type="maize">
			<node index="0>7|8|1">
				<key time="0"   y="0" scale="1 0 1.025"/>
				<key time="0.093" y="0" scale="1.048 0.093 1.025"/>
				<key time="0.325" y="0" scale="1.03 0.325 1.009"/>
				<key time="0.389" y="0" scale="1 0.389 1.009"/>
				<key time="0.489" y="0" scale="1 0.489 1.009"/>
				<key time="0.549" y="0" scale="1.048 0.549 1.009"/>
				<key time="0.757" y="0" scale="1.03 0.757 1"/>
                <key time="0.826" y="0" scale="1 0.826 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>7|11|0">
				<key time="0" scale="0.8 0.1 1"/>
                <key time="1" scale="0.8 1.15 1"/>
            </node>
        </fillPlane>
		<fillPlane type="rape">
			<node index="0>7|8|2">
				<key time="0"   y="0" scale="1 0 1.025"/>
				<key time="0.093" y="0" scale="1.048 0.093 1.025"/>
				<key time="0.325" y="0" scale="1.03 0.325 1.009"/>
				<key time="0.389" y="0" scale="1 0.389 1.009"/>
				<key time="0.489" y="0" scale="1 0.489 1.009"/>
				<key time="0.549" y="0" scale="1.048 0.549 1.009"/>
				<key time="0.757" y="0" scale="1.03 0.757 1"/>
                <key time="0.826" y="0" scale="1 0.826 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="chaff">
            <node index="0>7|8|3">
				<key time="0"   y="0" scale="1 0 1.025"/>
				<key time="0.093" y="0" scale="1.048 0.093 1.025"/>
				<key time="0.325" y="0" scale="1.03 0.325 1.009"/>
				<key time="0.389" y="0" scale="1 0.389 1.009"/>
				<key time="0.489" y="0" scale="1 0.489 1.009"/>
				<key time="0.549" y="0" scale="1.048 0.549 1.009"/>
				<key time="0.757" y="0" scale="1.03 0.757 1"/>
                <key time="0.826" y="0" scale="1 0.826 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>7|11|0">
				<key time="0" scale="0.8 0.1 1"/>
                <key time="1" scale="0.8 1.15 1"/>
            </node>
        </fillPlane>
		<fillPlane type="potato">
           <node index="0>7|8|4">
				<key time="0"   y="0" scale="1 0 1.025"/>
				<key time="0.093" y="0" scale="1.048 0.093 1.025"/>
				<key time="0.325" y="0" scale="1.03 0.325 1.009"/>
				<key time="0.389" y="0" scale="1 0.389 1.009"/>
				<key time="0.489" y="0" scale="1 0.489 1.009"/>
				<key time="0.549" y="0" scale="1.048 0.549 1.009"/>
				<key time="0.757" y="0" scale="1.03 0.757 1"/>
                <key time="0.826" y="0" scale="1 0.826 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>7|11|0">
				<key time="0" scale="0.8 0.1 1"/>
                <key time="1" scale="0.8 1.15 1"/>
            </node>
        </fillPlane>
		<fillPlane type="sugarBeet">
            <node index="0>7|8|5">
				<key time="0"   y="0" scale="1 0 1.025"/>
				<key time="0.093" y="0" scale="1.048 0.093 1.025"/>
				<key time="0.325" y="0" scale="1.03 0.325 1.009"/>
				<key time="0.389" y="0" scale="1 0.389 1.009"/>
				<key time="0.489" y="0" scale="1 0.489 1.009"/>
				<key time="0.549" y="0" scale="1.048 0.549 1.009"/>
				<key time="0.757" y="0" scale="1.03 0.757 1"/>
                <key time="0.826" y="0" scale="1 0.826 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>7|11|0">
				<key time="0" scale="0.8 0.1 1"/>
                <key time="1" scale="0.8 1.15 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

    <cylinderedHydraulicSound 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="0>4" jointType="trailerLow" rootNode="0>" />

	<trailerAttacherJoints>
        <trailerAttacherJoint index="0>5" low="false" maxRotLimit="10 80 80" />
    </trailerAttacherJoints>
	
    <tipReferencePoints>
		<tipReferencePoint index="0>8|0" width="2.5" />
        <tipReferencePoint index="0>8|1" width="0.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="0.3" dischargeEndTime="10" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="maize" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="barley" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="rape" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>7|11|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
        <tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationGrainDoor" dischargeStartTime="0.3" dischargeEndTime="25">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmall.i3d" />
                <dischargeParticleSystem type="maize" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmall.i3d" />
                <dischargeParticleSystem type="barley" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmall.i3d" />
                <dischargeParticleSystem type="rape" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmallRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmallChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmallPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>7|11|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/trailerDPSSmallSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>7|9" />
    <fillAutoAimTargetNode index="0>7|10" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet"/>

    <movingTools>
		<!-- support -->
        <movingTool index="0>6|1" componentJointIndex="0" anchorActor="0"/>

		<movingTool index="0>7">
			<dependentPart index="0>6|2|0" />
		</movingTool>
    </movingTools>

    <movingParts>
		<movingPart index="0>6|2|0" referencePoint="0>7|7" referenceFrame="0>6|4">
            <translatingPart index="0>6|2|0|0" />
            <translatingPart index="0>6|2|0|0|0" />
            <translatingPart index="0>6|2|0|0|0|0" />
            <translatingPart index="0>6|2|0|0|0|0|0" />
            <translatingPart index="0>6|2|0|0|0|0|0|0" />
        </movingPart>
    </movingParts>

    <animations>
		<!-- backtipping -->
		<animation name="tipAnimationBack">
            <part node="0>7|1" startTime="0.3" endTime="3"  startRot="0 0 0" endRot="65 0 0" /> <!-- door -->
			<part node="0>7"   startTime="1"   endTime="14" startRot="0 0 0" endRot="-32 0 0" /> <!-- body -->
        </animation>
		<!-- backtipping with opened graindoor -->
		<animation name="tipAnimationGrainDoor">
			<part node="0>7"     startTime="5" endTime="27" startRot="0 0 0" endRot="-32 0 0" /> <!-- body -->
			<part node="0>7|1|1" startTime="0" endTime="1"  startRot="0 0 0" endRot="80 0 0" />
        </animation>
		<!-- move support wheel down/up -->
        <animation name="moveSupport">
			<part node="0>0|1" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>6|0" startTime="0" endTime="0.05" visibility="true" />
			<part node="0>0|1" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>6|0" startTime="0.05" endTime="0.1" visibility="false" />
            <part node="0>6|1" startTime="0" endTime="0.1" startTrans="0 0.86814 3.03131" endTrans="0 0.38691 3.03131" />
        </animation>
    </animations>

	<support animationName="moveSupport" />

    <components count="2">
        <component1 centerOfMass="0 0.05 -1.5" solverIterationCount="15" />
        <component2 solverIterationCount="15" />
        <joint component1="0" component2="1" index="0>6|1" rotLimit="0 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>
