<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Conow">
	<annotation>Copyright (C) Nordline Agricole Services, All Rights Reserved.</annotation>
    <name>
        <en>Conow TMK22 7000</en>
        <de>Conow TMK22 7000</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>Conow_TMK22_7000_LS13.i3d</filename>

    <size width="3.5" length="10" lengthOffset="-0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.6" deltaY="0.27" suspTravel="0.35" spring="15" damper="20" mass="0.05" lateralStiffness="0.5" />
        <wheel driveMode="0" repr="1" radius="0.6" deltaY="0.27" suspTravel="0.35" spring="15" damper="20" mass="0.05" lateralStiffness="0.5" />
        <wheel driveMode="0" repr="2" radius="0.6" deltaY="0.27" suspTravel="0.35" spring="15" damper="20" mass="0.05" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" lateralStiffness="0.5" />
        <wheel driveMode="0" repr="3" radius="0.6" deltaY="0.27" suspTravel="0.35" spring="15" damper="20" mass="0.05" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" lateralStiffness="0.5" />
    </wheels>
    <brakeForce>0.7</brakeForce>
    <steeringAxleAngleScale startSpeed="5" endSpeed="70" />
	<downForce>10</downForce>
    <capacity>28000</capacity>
	<massPerFillLevel value="0.00005" />

	<lightCoronas>
		<lightCorona index="0>11" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>13" />
	</brakeLights>
	
	<lightsaddon lightsStayOn="true" strobesAreBeacons="true">
	<light type="dirLeft" index="0>16|1" />
	<light type="dirRight" index="0>16|0" />
	<light type="reverse" index="0>12" />
	<flashers soundfile="sounds/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.6" autoreturn="true" tolerance="0.9"/>
	</lightsaddon>
	
    <fillPlanes>
        <fillPlane type="wheat">
            <node index="0>4|1|4|0">
				<key time="0" y="0" scale="0.85 0 1"/>
                <key time="0.148" y="0" scale="1 0.148 1"/>
				<key time="0.9" y="0" scale="1 0.9 1"/>
                <key time="1" y="0" scale="1.021 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="rape">
            <node index="0>4|1|4|1">
				<key time="0" y="0" scale="0.85 0 1"/>
                <key time="0.148" y="0" scale="1 0.148 1"/>
                <key time="0.9" y="0" scale="1 0.9 1"/>
                <key time="1" y="0" scale="1.021 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="chaff">
            <node index="0>4|1|4|2">
				<key time="0" y="0" scale="0.85 0 1"/>
                <key time="0.148" y="0" scale="1 0.148 1"/>
                <key time="0.9" y="0" scale="1 0.9 1"/>
                <key time="1" y="0" scale="1.021 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="maize">
            <node index="0>4|1|4|3">
				<key time="0" y="0" scale="0.85 0 1"/>
                <key time="0.148" y="0" scale="1 0.148 1"/>
                <key time="0.9" y="0" scale="1 0.9 1"/>
                <key time="1" y="0" scale="1.021 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="potato">
            <node index="0>4|1|4|4">
				<key time="0" y="0" scale="0.85 0 1"/>
                <key time="0.148" y="0" scale="1 0.148 1"/>
                <key time="0.9" y="0" scale="1 0.9 1"/>
                <key time="1" y="0" scale="1.021 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="sugarBeet">
            <node index="0>4|1|4|5">
				<key time="0" y="0" scale="0.85 0 1"/>
                <key time="0.148" y="0" scale="1 0.148 1"/>
                <key time="0.9" y="0" scale="1 0.9 1"/>
                <key time="1" y="0" scale="1.021 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="0>10" jointType="trailerLow"/>

    <tipReferencePoints>
		<tipReferencePoint index="0>15" width="5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="0.5" animationName="tipAnimationBack" dischargeStartTime="1.5" dischargeEndTime="13" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="maize" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="barley" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBig.i3d" />
                <dischargeParticleSystem type="rape" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigRape.i3d" />
                <dischargeParticleSystem type="chaff" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="potato" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigPotato.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>4|1|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigSugarBeet.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>8" />
    <fillAutoAimTargetNode index="0>9" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet"/>

    <movingTools>
        <!-- support -->
        <movingTool index="0>4|2" componentJointIndex="0" anchorActor="0"/>
		<!-- backTipping -->
		<movingTool index="0>4|1|2">
            <dependentPart index="0>4|1|2|0" />
        </movingTool>

		<movingTool index="0>4|1">
            <dependentPart index="0>4|3" />
        </movingTool>

		<movingTool index="0>4|1|1">
            <dependentPart index="0>4|1|2|0" />
        </movingTool>
    </movingTools>

    <movingParts>  
        <movingPart index="0>4|1|2|0" referencePoint="0>4|1|1|0" referenceFrame="0>">
            <translatingPart index="0>4|1|2|0|0" />
        </movingPart>
		<movingPart index="0>4|3" referencePoint="0>4|1|3" referenceFrame="0>4|4" lockAxis="3">
            <translatingPart index="0>4|3|0" />
			<translatingPart index="0>4|3|0|0" />
			<translatingPart index="0>4|3|0|0|0" />
			<translatingPart index="0>4|3|0|0|0|0" />
			<translatingPart index="0>4|3|0|0|0|0|0" />
        </movingPart>
    </movingParts>

    <animations>
		<!-- backtipping -->
		<animation name="tipAnimationBack">
			<part node="0>4|1|2" startTime="0" endTime="0.9" startRot="0 0 0" endRot="-12 0 0" />
            <part node="0>4|1|1" startTime="1" endTime="4" startRot="0 0 0" endRot="90 0 0" />
			<part node="0>4|1" startTime="3" endTime="13" startRot="0 0 0" endRot="-45 0 0" />
        </animation>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
			<part node="0>4|5" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>4|0" startTime="0" endTime="0.05" visibility="true" />
			<part node="0>4|5" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>4|0" startTime="0.05" endTime="0.1" visibility="false" />
            <part node="0>4|2" startTime="0" endTime="0.1" startRot="90 0 0" endRot="0 0 0" />
			<part node="0>4|2|0" startTime="0.1" endTime="0.15" startTrans="0 0 0" endTrans="0 -0.10441 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <components count="2">
        <component1 centerOfMass="0 -0.2 0" solverIterationCount="15" />
        <component2 solverIterationCount="150" />
        <joint component1="0" component2="1" index="0>4|2|0|0" 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>