﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="manureSpreader">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Bergmann M 1080</en>
        <de>Bergmann M 1080</de>
    </name>
    <typeDesc>$l10n_TypeDesc_ManureSpreader</typeDesc>
    <filename>data/vehicles/trailers/bergmann/bergmannM1080.i3d</filename>

    <size width="3.5" length="8"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0>0" radius="0.46" deltaY="0.15" suspTravel="0.25" spring="10" damper="20" mass="0.4" lateralStiffness="2" />
        <wheel driveMode="0" repr="0>1" driveNode="0>1|0" radius="0.46" deltaY="0.15" suspTravel="0.25" spring="10" damper="20" mass="0.4" lateralStiffness="2" />
    </wheels>
    <brakeForce>2</brakeForce>
	<downForce>4</downForce>

	<lightCoronas>
		<lightCorona index="0>4|1|1" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>4|1|2" />
	</brakeLights>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="0>5" widthIndex="0>6" heightIndex="0>7" />
    </cuttingAreas>

	<massPerFillLevel value="0.00007" />
    <capacity>6800</capacity>

    <shovelFillTrigger index="0>9"/>

    <sprayParticleSystem file="data/vehicles/particleSystems/manureSprayParticleSystem.i3d" />
    <spraySound file="data/vehicles/trailers/manureSpreader.wav" pitchOffset="1" volume="1"/>

    <sprayValves>
        <sprayValve index="0>8" />
    </sprayValves>

    <rotatingParts>
        <rotatingPart node="0>4|3|0" speed="-0.018" />
        <rotatingPart node="0>4|3|1" speed="0.018" />
        <rotatingPart node="0>4|3|2" speed="-0.018" />
        <rotatingPart node="0>4|3|3" speed="0.018" />
    </rotatingParts>

    <fillSound file="data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />
	<powerTakeoffInput index="0>3" rotSpeed="0" />
    <attacherJoint index="0>2" jointType="trailer"/>

    <fillPlanes>
        <fillPlane type="manure">
            <node index="0>4|6">
                <key time="0" y="1.09927" scale="1 0.01 1"/>
                <key time="1" y="1.09927" scale="1 1 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

    <sprayUsages>
        <sprayUsage fillType="manure" litersPerSecond="50" />
    </sprayUsages>

    <fillTypes fillTypes="manure" />

    <doorAnimation name="openDoor" openSpeedScale="2" closeSpeedScale="-1" />

    <support animationName="moveSupport" />

    <animations>
        <animation name="openDoor">
            <part node="0>4|1" startTime="0" endTime="2" startRot="0 0 0" endRot="80 0 0"/>
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
			<part node="0>1|1" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>4|4" startTime="0" endTime="0.05" visibility="true" />
			<part node="0>1|1" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>4|4" startTime="0.05" endTime="0.1" visibility="false" />
            <part node="0>4|5" startTime="0" duration="0.5" startTrans="0.05856 0.81032 2.5701" endTrans="0.05856 0.70448 2.5701" />
        </animation>
    </animations>

    <movingTools>
        <!-- door -->
        <movingTool index="0>4|1">
            <!-- door cylinder -->
            <dependentPart index="0>4|2" />
        </movingTool>

        <!-- support -->
        <movingTool index="0>4|5" componentJointIndex="0" anchorActor="0"/>
    </movingTools>

    <movingParts>
        <!-- door cylinder -->
        <movingPart index="0>4|2" referencePoint="0>4|1|3" referenceFrame="0>4|1|3">
            <translatingPart index="0>4|2|0" />
        </movingPart>
    </movingParts>

    <components count="2">
        <component1 centerOfMass="0 0.1 0" solverIterationCount="4" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>4|5" 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>
