<?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 SRB 35</en>
        <de>Kröger Agroliner SRB 35</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Trailer</typeDesc>
    <filename>SRB35.i3d</filename>

    <size width="5" length="16"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0>0" radius="0.63" deltaY="0.05" suspTravel="0.1" spring="20" damper="70" mass="0.1" lateralStiffness="0.2" steeringAxleScale="0.4" steeringAxleRotMax="18" steeringAxleRotMin="-18" />
        <wheel driveMode="0" repr="0>1" radius="0.63" deltaY="0.05" suspTravel="0.1" spring="20" damper="70" mass="0.1" lateralStiffness="0.2" steeringAxleScale="0.4" steeringAxleRotMax="18" steeringAxleRotMin="-18" />
        <wheel driveMode="0" repr="0>2" radius="0.63" deltaY="0.05" suspTravel="0.1" spring="20" damper="70" mass="0.1" lateralStiffness="0.2" />
        <wheel driveMode="0" repr="0>3" radius="0.63" deltaY="0.05" suspTravel="0.1" spring="20" damper="70" mass="0.1" lateralStiffness="0.2" />
		<wheel driveMode="0" repr="0>4" radius="0.63" deltaY="0.05" suspTravel="0.1" spring="20" damper="70" mass="0.1" lateralStiffness="0.2" steeringAxleScale="-0.5" steeringAxleRotMax="19" steeringAxleRotMin="-19" />
        <wheel driveMode="0" repr="0>5" radius="0.63" deltaY="0.05" suspTravel="0.1" spring="20" damper="70" mass="0.1" lateralStiffness="0.2" steeringAxleScale="-0.5" steeringAxleRotMax="19" steeringAxleRotMin="-19" />
    </wheels>
    <steeringAxleAngleScale startSpeed="20" endSpeed="60" />
    <brakeForce>2</brakeForce>
	<downForce>4</downForce>
    <capacity>61000</capacity>
	<massPerFillLevel value="0.00005" />

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

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

	<fillPlanes>
        <fillPlane type="wheat">
            <node index="0>12|0">
				<key time="0" y="0" scale="1 0 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<key time="0" scale="0.9 0.1 1"/>
                <key time="1" scale="0.9 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="rape">
            <node index="0>12|1">
				<key time="0" y="0" scale="1 0 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<key time="0" scale="0.9 0.1 1"/>
                <key time="1" scale="0.9 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="chaff">
            <node index="0>12|2">
				<key time="0" y="0" scale="1 0 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<key time="0" scale="0.9 0.1 1"/>
                <key time="1" scale="0.9 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="maize">
            <node index="0>12|3">
				<key time="0" y="0" scale="1 0 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<key time="0" scale="0.9 0.1 1"/>
                <key time="1" scale="0.9 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="potato">
            <node index="0>12|4">
				<key time="0" y="0" scale="1 0 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<key time="0" scale="0.9 0.1 1"/>
                <key time="1" scale="0.9 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="sugarBeet">
            <node index="0>12|5">
				<key time="0" y="0" scale="1 0 1"/>
                <key time="1" y="0" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<key time="0" scale="0.9 0.1 1"/>
                <key time="1" scale="0.9 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>7" jointType="semitrailer"/>

	<tipReferencePoints>
        <tipReferencePoint index="0>8" width="2.5" />
    </tipReferencePoints>

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

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>17" />
    <fillAutoAimTargetNode index="0>18" />
    <fillMassNode index="0>" />

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

	<movingTools>
        <!-- support -->
        <movingTool index="0>6" componentJointIndex="0" anchorActor="0"/>
		<!-- back door -->
		<movingTool index="0>14">
			<dependentPart index="0>19|0" />
		</movingTool>
    </movingTools>

	<movingParts>  
        <movingPart index="0>19|0" referencePoint="0>14|1" referenceFrame="0>14|1">
            <translatingPart index="0>19|0|0" />
        </movingPart>
    </movingParts>

    <animations>
        <!-- move support -->
        <animation name="moveSupport">
            <part node="0>6" startTime="0" duration="0.3" startTrans="0 0.5 0" endTrans="0 0 0" />
        </animation>
		<animation name="tipAnimationBack">
            <part node="0>14" startTime="0" endTime="10" startRot="0 0 0" endRot="70 0 0" />
        </animation>
    </animations>

	<tipScrollerNodes shaderParameter="uvScrollSpeed">
        <tipScrollerNode index="0>15" speed="-0.05 0"/>
    </tipScrollerNodes>

    <support animationName="moveSupport"/>

    <components count="2">
        <component1 centerOfMass="0 0.4 -2.5" solverIterationCount="12" />
        <component2 centerOfMass="0 0 -4.5" solverIterationCount="12" />
        <joint component1="0" component2="1" index="0>6|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"/>

</vehicle>
