﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="strawBlower">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn Primor 3570</en>
        <de>Kuhn Primor 3570</de>
    </name>
    <typeDesc>$l10n_TypeDesc_StrawBlower</typeDesc>
    <filename>data/vehicles/trailers/kuhn/kuhnPrimor3570.i3d</filename>

    <size width="3.5" length="5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.378" deltaY="0.12" suspTravel="0.2" spring="15" damper="40" mass="0.4" lateralStiffness="1" />
        <wheel driveMode="0" repr="1" radius="0.378" deltaY="0.12" suspTravel="0.2" spring="15" damper="40" mass="0.4" lateralStiffness="1" />
	</wheels>
    <brakeForce>2</brakeForce>

	<lightCoronas>
		<lightCorona index="0>4" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>5" />
	</brakeLights>

    <attacherJoint index="0>2" jointType="trailerLow"/>
	<powerTakeoffInput index="0>6" rotSpeed="0" />

	<massPerFillLevel value="0.0003" />
    <allowFillFromAir value="false" />
    <capacity>1</capacity>

    <strawBlowerBaleTrigger index="0>14" />

    <strawBlowerDoor animationName="openDoor" />

    <dynamicMountAttacherTrigger triggerNode="0>16" rootNode="0>" jointNode="0>" allowRotation="true" forceLimitScale="2" />

    <tipReferencePoints>
        <tipReferencePoint index="0>15" width="1" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tip" dischargeStartTime="2" dischargeEndTime="10" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat_windrow" node="0>9|0|0|0|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/strawBlowerPSStraw.i3d" />
                <dischargeParticleSystem type="barley_windrow" node="0>9|0|0|0|1" position="0 0 0" rotation="0 0 0" file="data/vehicles/particleSystems/strawBlowerPSStraw.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <tipRotationNodes>
        <tipRotationNode index="0>12" rotSpeed="-250" />
    </tipRotationNodes>

    <fillTypes fillTypes="wheat_windrow barley_windrow" />

    <support animationName="moveSupport" />

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>3" startTime="0" duration="0.6" startTrans="0.2659 0.408 1.088" endTrans="0.2659 0 1.088" />
        </animation>
        <!-- open the door -->
        <animation name="openDoor">
            <part node="0>7" startTime="0" duration="5" startRot="0 0 0" endRot="-90 0 0" />
        </animation>
        <!-- tip animation -->
        <animation name="tip">
            <part node="0>9|0|0" startTime="0" duration="2" startRot="0 0 0" endRot="0 0 -21" />
        </animation>
    </animations>

    <movingTools>
        <!-- backDoor -->
        <movingTool index="0>7" componentJointIndex="0" anchorActor="0">
            <dependentPart index="0>8" />
        </movingTool>

        <!-- support -->
        <movingTool index="0>3" componentJointIndex="1" anchorActor="0"/>
        <!-- pipe mid part -->
        <movingTool index="0>9|0|0">
            <dependentPart index="0>9|0|1" />
            <dependentPart index="0>9|0|0|0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- backDoor hydraulics -->
        <movingPart index="0>8" referencePoint="0>7|0" referenceFrame="0>">
            <translatingPart index="0>8|0" />
        </movingPart>
        <movingPart index="0>9|0|1" referencePoint="0>9|0|0|1" referenceFrame="0>9|0">
            <translatingPart index="0>9|0|1|0" />
        </movingPart>
        <movingPart index="0>9|0|0|0" referencePoint="0>9|0|2" localReferencePoint="0>9|0|0|0|0" referenceFrame="0>9|0|0">
            <dependentPart index="0>9|0|2" />
        </movingPart>
        <movingPart index="0>9|0|2" referencePoint="0>9|0|0|0|0" referenceFrame="0>9|0|0"/>
    </movingParts>

    <components count="3">
        <component1 centerOfMass="0 0.1 -0.6" solverIterationCount="15" />
        <component2 centerOfMass="0 -0.7 0.8" solverIterationCount="15" />
        <component3 solverIterationCount="15" />
        <joint component1="0" component2="1" index="0>7|1" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>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"/>

</vehicle>
