﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mixerWagon">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn Profile 1880</en>
        <de>Kuhn Profile 1880</de>
    </name>
    <typeDesc>$l10n_TypeDesc_MixerWagon</typeDesc>
    <filename>data/vehicles/trailers/kuhn/kuhnProfile1880.i3d</filename>

    <size width="4.5" length="9" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.474" deltaY="0.2" suspTravel="0.2" spring="50" damper="20" mass="0.4" lateralStiffness="1" />
        <wheel driveMode="0" repr="1" radius="0.474" deltaY="0.2" suspTravel="0.2" spring="50" damper="20" mass="0.4" lateralStiffness="1" />
	</wheels>
    <brakeForce>2</brakeForce>

	<lightCoronas>
		<lightCorona index="0>2|2" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>2|11" />
	</brakeLights>

    <attacherJoint index="0>2|1" jointType="trailer"/>
	<powerTakeoffInput index="0>2|4" rotSpeed="0" />

	<massPerFillLevel value="0.0003" />

    <fillTypes fillTypes="forage forage_mixing grass_windrow dryGrass_windrow silage" />
    <capacity>18000</capacity>
    <fillRootNode index="0>" />
    <fillMassNode index="0>" />

    <mixerWagonFillTypes>
        <mixerWagonFillType minPercentage="25" maxPercentage="75" name="dryGrass">
            <fillType fillType="grass_windrow" />
            <fillType fillType="dryGrass_windrow" />
        </mixerWagonFillType>
        <mixerWagonFillType minPercentage="25" maxPercentage="75" name="silage">
            <fillType fillType="silage" />
        </mixerWagonFillType>
        <mixerWagonFillType minPercentage="0" maxPercentage="40" name="straw">
            <fillType fillType="wheat_windrow" />
            <fillType fillType="barley_windrow" />
        </mixerWagonFillType>
    </mixerWagonFillTypes>

    <mixerWagonBaleTrigger index="0>5" />

    <mixerWagonMixRotatingParts>
        <mixerWagonMixRotatingPart index="0>2|7|0" speed="-200"/>
        <mixerWagonMixRotatingPart index="0>2|7|1" speed="-200"/>
    </mixerWagonMixRotatingParts>

    <fillPlanes>
        <fillPlane type="forage">
            <node index="0>2|3">
                <key time="0"    translation="0 -0.316 0.934"  scale="0.82 0.100 0.804"/>
                <key time="0.5" translation="0 0.878 0.934"  scale="0.951 0.8 0.927"/>
                <key time="1"    translation="0 1.762 0.934" scale="1 1 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

    <support animationName="moveSupport" />

    <animations>
		<animation name="tipLeft">
            <part node="0>2|5|0" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 0.65491 0"/>
        </animation>
        <animation name="tipRight">
            <part node="0>2|5|0" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 0.65491 0"/>
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>2|0" startTime="0" duration="1.2" startTrans="0.55783 -0.73123 4.14143" endTrans="0.55783 -1.14675 4.14143" />
        </animation>
    </animations>

    <tipReferencePoints>
        <tipReferencePoint index="0>3" width="1" />
        <tipReferencePoint index="0>4" width="1" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipLeft" dischargeStartTime="0.9" dischargeEndTime="20" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="forage" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="forage_mixing" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="grass_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="dryGrass_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="silage" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="wheat_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSStraw.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="barley_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 180 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSStraw.i3d" forceNoWorldSpace="true" />
            </dischargeParticleSystems>
        </tipAnimation>
        <tipAnimation speedScale="1" animationName="tipRight" dischargeStartTime="0.9" dischargeEndTime="20">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="forage" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="forage_mixing" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="grass_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="dryGrass_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="silage" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSForage.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="wheat_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSStraw.i3d" forceNoWorldSpace="true" />
                <dischargeParticleSystem type="barley_windrow" node="0>" position="0 -0.15933 1.05308" rotation="0 0 0" file="data/vehicles/particleSystems/mixerWagonDischargeRightPSStraw.i3d" forceNoWorldSpace="true" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <movingTools>
        <!-- door -->
        <movingTool index="0>2|5|0">
            <!-- door cylinder -->
            <dependentPart index="0>2|6" />
        </movingTool>

        <!-- support -->
        <movingTool index="0>2|0" componentJointIndex="0" anchorActor="0"/>
    </movingTools>

    <movingParts>
        <!-- door cylinder -->
        <movingPart index="0>2|6" referencePoint="0>2|5|0|0" referenceFrame="0>2|5|0|0">
            <translatingPart index="0>2|6|0" />
        </movingPart>
    </movingParts>

    <components count="2">
        <component1 centerOfMass="0 0.1 -0.5" solverIterationCount="8" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>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"/>

</vehicle>
