﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Krone Emsland</en>
        <de>Krone Emsland</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>data/vehicles/trailers/krone/kroneEmsland.i3d</filename>

    <size width="3.5" length="7" lengthOffset="0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0>0" radius="0.47" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="0>1" radius="0.47" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="1>0" radius="0.47" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="1>1" radius="0.47" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.15" lateralStiffness="2" />
    </wheels>
    <brakeForce>1</brakeForce>
	<downForce>3</downForce>
	<capacity>5700</capacity>
	<massPerFillLevel value="0.00005" />

	<lightCoronas>
		<lightCorona index="0>2|1" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>2|2" />
	</brakeLights>

	<fillPlanes>
        <fillPlane type="wheat">
            <node index="0>3|0|3|0">
				<key time="0"   y="0" scale="1 0.01 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|0">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|1">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="maize">
            <node index="0>3|0|3|1">
				<key time="0"   y="0" scale="1 0.01 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|0">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|1">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="rape">
            <node index="0>3|0|3|2">
				<key time="0"   y="0" scale="1 0.01 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|0">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|1">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="chaff">
            <node index="0>3|0|3|3">
				<key time="0"   y="0" scale="1 0.01 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|0">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|1">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="potato">
            <node index="0>3|0|3|4">
				<key time="0"   y="0" scale="1 0.01 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|0">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|1">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="sugarBeet">
            <node index="0>3|0|3|5">
				<key time="0"   y="0" scale="1 0.01 1"/>
                <key time="1"   y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|0">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>3|0|2|1">
				<key time="0" y="0" scale="1 0.01 1"/>
                <key time="1" y="0" 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|3|0" width="2.5" />
        <tipReferencePoint index="0>2|3|1" width="2.5" />
    </tipReferencePoints>

    <tipAnimations>
		<tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationLeft" dischargeStartTime="1" dischargeEndTime="10">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPS.i3d" />
                <dischargeParticleSystem type="maize" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPS.i3d" />
                <dischargeParticleSystem type="barley" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPS.i3d" />
                <dischargeParticleSystem type="rape" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>3|0|2|0" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
		<tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationRight" dischargeStartTime="1" dischargeEndTime="10">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPS.i3d" />
                <dischargeParticleSystem type="maize" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPS.i3d" />
                <dischargeParticleSystem type="barley" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPS.i3d" />
                <dischargeParticleSystem type="rape" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSPotato.i3d" />
				<dischargeParticleSystem type="sugarBeet" node="0>3|0|2|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/kroneEmslandSideDPSSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>3|0|4" />
    <fillAutoAimTargetNode index="0>3|0|5" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet"/>

    <movingTools>
		<movingTool index="0>3|0">
            <dependentPart index="0>2|0" />
        </movingTool>
		<movingTool index="0>3">
            <dependentPart index="0>2|0" />
        </movingTool>
    </movingTools>

    <movingParts>
		<movingPart index="0>2|0" referencePoint="0>3|0|6" referenceFrame="0>3|0|6">
            <translatingPart index="0>2|0|0" />
            <translatingPart index="0>2|0|0|0" />
            <translatingPart index="0>2|0|0|0|0" />
        </movingPart>
    </movingParts>

    <animations>
		<!-- tipping left -->
		<animation name="tipAnimationLeft">
			<part node="0>3|0|0" startTime="0" endTime="1.5" startRot="0 0 0" endRot="0 0 -180" /> <!-- door -->
            <part node="0>3|0|0" startTime="2.5" endTime="8" startRot="0 0 -180" endRot="0 0 -145" /> <!-- door -->
			<part node="0>3" startTime="2.5" endTime="8" startRot="0 0 0" endRot="0 0 -35" /> <!-- body -->
        </animation>
		<!-- tipping right -->
		<animation name="tipAnimationRight">
			<part node="0>3|0|1" startTime="0" endTime="1.5" startRot="0 0 0" endRot="0 0 180" /> <!-- door -->
            <part node="0>3|0|1" startTime="2.5" endTime="8" startRot="0 0 180" endRot="0 0 145" /> <!-- door -->
			<part node="0>3|0" startTime="2.5" endTime="8" startRot="0 0 0" endRot="0 0 35" /> <!-- body -->
        </animation>
    </animations>

    <components count="3">
        <component1 centerOfMass="0 0.1 -1.5" solverIterationCount="35" />
        <component2 centerOfMass="0 -0.65 0" solverIterationCount="35" />
        <component3 centerOfMass="0 -0.6 0" solverIterationCount="35" />
        <joint component1="0" component2="1" index="1>2" 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>
