<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="kroneZX550_FW">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>kroneZX550_FW</en>
        <de>kroneZX550_FW</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>kroneZX550_FW.i3d</filename>

    <size width="4" length="12"/>

    <wheels autoRotateBackSpeed="2.0">
		<wheel driveMode="0" repr="3>1" radius="0.7" deltaY="0.07" suspTravel="0.15" spring="20" damper="70" mass="0.1" lateralStiffness="0.2"   />
        <wheel driveMode="0" repr="3>2" driveNode="3>2|0" radius="0.7" deltaY="0.07" suspTravel="0.15" spring="20" damper="70" mass="0.1" lateralStiffness="0.2"   />

		<wheel driveMode="0" repr="3>3" radius="0.7" deltaY="0.07" suspTravel="0.15" spring="20" damper="70" mass="0.1" lateralStiffness="0.2"  />
        <wheel driveMode="0" repr="3>4" radius="0.7" deltaY="0.07" suspTravel="0.15" spring="20" damper="70" mass="0.1" lateralStiffness="0.2"   />
		
        <wheel driveMode="0" repr="1>0" radius="0.7" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.1" lateralStiffness="2" />
        <wheel driveMode="0" repr="1>1" radius="0.7" deltaY="0.07" suspTravel="0.15" spring="20" damper="50" mass="0.1" lateralStiffness="2" />		

    </wheels>
    <brakeForce>0.8</brakeForce>
    <steeringAxleAngleScale startSpeed="5" endSpeed="70" />
	<downForce>8</downForce>
    <capacity>53000</capacity>
	<massPerFillLevel value="0.00005" />

	<lightCoronas>
		<lightCorona index="0>10|0" />
		<lightCorona index="0>14|1" />
]		<lightCorona index="0>14|5|1" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>10|2" />
	</brakeLights>

	<lightsaddon lightsStayOn="true">
		<light type="dirLeft" index="0>10|3|1" />
		<light type="dirRight" index="0>10|3|0" />
		<light type="reverse" index="0>10|1" />
	</lightsaddon>

     <drivingParticles threshold="0.005">
        <drivingParticle position="-1.0 0 1.9" rotation="0 0 0" file="particleSystems/dustParticleSystem.i3d" wheel="1" minSpeed="10" maxSpeed="60"/>
        <drivingParticle position="1.2 0 1.9" rotation="0 0 0" file="particleSystems/dustParticleSystem.i3d" wheel="2" minSpeed="10" maxSpeed="60"/>
        <drivingParticle position="-1.0 0 -1.5" rotation="0 0 0" file="particleSystems/dustParticleSystem.i3d" wheel="3" minSpeed="10" maxSpeed="60"/>
        <drivingParticle position="1.2 0 -1.5" rotation="0 0 0" file="particleSystems/dustParticleSystem.i3d" wheel="4" minSpeed="10" maxSpeed="60"/>
    </drivingParticles>

 <fillPlanes>
        <fillPlane type="chaff">
            <node index="0>14|2|0">
                <key time="0" y="0.964" scale="0.9 0.01 1"/>
                <key time="0.125" y="0.964" scale="0.98 0.1 1"/>
                <key time="0.2" y="0.964" scale="1.035 0.2 1"/>
                <key time="0.5" y="0.964" scale="1.035 0.5 1"/>
                <key time="1" y="0.964" scale="1.035 1 1"/>
            </node>
			<node index="0>14|7">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
		<fillPlane type="grass_windrow">
            <node index="0>14|2|1">
                <key time="0" y="0.964" scale="0.9 0.01 1"/>
                <key time="0.125" y="0.964" scale="0.98 0.1 1"/>
                <key time="0.2" y="0.964" scale="1.035 0.2 1"/>
                <key time="0.5" y="0.964" scale="1.035 0.5 1"/>
                <key time="1" y="0.964" scale="1.035 1 1"/>
            </node>
			<node index="0>14|7">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node> 
		</fillPlane>
		<fillPlane type="wheat_windrow">
            <node index="0>14|2|2">
                <key time="0" y="0.964" scale="0.9 0.01 1"/>
                <key time="0.125" y="0.964" scale="0.98 0.1 1"/>
                <key time="0.2" y="0.964" scale="1.035 0.2 1"/>
                <key time="0.5" y="0.964" scale="1.035 0.5 1"/>
                <key time="1" y="0.964" scale="1.035 1 1"/>
            </node>
			<node index="0>14|7">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
		<fillPlane type="barley_windrow">
            <node index="0>14|2|2">
                <key time="0" y="0.964" scale="0.9 0.01 1"/>
                <key time="0.125" y="0.964" scale="0.98 0.1 1"/>
                <key time="0.2" y="0.964" scale="1.035 0.2 1"/>
                <key time="0.5" y="0.964" scale="1.035 0.5 1"/>
                <key time="1" y="0.964" scale="1.035 1 1"/>
            </node>
			<node index="0>14|7">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
		<fillPlane type="silage">
            <node index="0>14|2|3">
                <key time="0" y="0.964" scale="0.9 0.01 1"/>
                <key time="0.125" y="0.964" scale="0.98 0.1 1"/>
                <key time="0.2" y="0.964" scale="1.035 0.2 1"/>
                <key time="0.5" y="0.964" scale="1.035 0.5 1"/>
                <key time="1" y="0.964" scale="1.035 1 1"/>
            </node>
			<node index="0>14|7">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 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>7" low="false" maxRotLimit="10 80 80" />
    </trailerAttacherJoints>

    <tipReferencePoints>
        <tipReferencePoint index="0>14|0" width="2.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1.5" dischargeEndTime="13" >
            <dischargeParticleSystems>
				<dischargeParticleSystem type="chaff" node="0>14|7" rotation="0 0 0" position="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="silage" node="0>14|7" rotation="0 0 0" position="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="grass_windrow" node="0>14|7" rotation="0 0 0" position="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigGrass.i3d" />
				<dischargeParticleSystem type="wheat_windrow" node="0>14|7" rotation="0 0 0" position="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigStraw.i3d" />
				<dischargeParticleSystem type="barley_windrow" node="0>14|7" rotation="0 0 0" position="0 0 0" file="$data/vehicles/particleSystems/trailerDPSBigStraw.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>

    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>14|3" />
    <fillAutoAimTargetNode index="0>14|4" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="chaff grass_windrow wheat_windrow barley_windrow silage"/>

    <movingTools>
        <!-- support -->
        <movingTool index="0>10|4" componentJointIndex="0" anchorActor="0"/>


    </movingTools>

  

    <animations>
		<!-- backtipping -->
		<animation name="tipAnimationBack">
			<part node="0>14|5" startTime="0" endTime="4" startRot="0 0 0" endRot="90 0 0" />

        </animation>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
			<part node="3>2|1" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>11" startTime="0" endTime="0.05" visibility="true" />
			<part node="3>2|1" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>11" startTime="0.05" endTime="0.1" visibility="false" />
            <part node="0>10|4" startTime="0" endTime="0.2" startTrans="0.61148 -0.27268 0.6139" endTrans="0.61148 -0.72423 0.6139" />
        </animation>
    </animations>

    <pickupAnimation name="rotatePickup" lowerSpeed="2" liftSpeed="-1" />
    <tipRotationNodes>
        <tipRotationNode index="0>14|6|0" rotSpeed="880"/>
        <tipRotationNode index="0>14|6|1" rotSpeed="880"/>
        <tipRotationNode index="0>14|6|2" rotSpeed="880"/>
    </tipRotationNodes>

    <support animationName="moveSupport" />

    <components count="4">
        <component1 centerOfMass="0 0.1 -1" solverIterationCount="15" />
        <component2 solverIterationCount="135" />
        <component3 solverIterationCount="135" />
        <component4 solverIterationCount="135" />
        <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" />
        <joint component1="0" component2="3" index="3>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>
