﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="defoliator_animated">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Grimme BM 300</en>
		<de>Grimme BM 300</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Defoliator</typeDesc>
    <filename>data/vehicles/tools/grimme/grimmeBM300.i3d</filename>

    <size width="5" length="8.5" />

    <wheels autoRotateBackSpeed="1.5">
		<wheel driveMode="0" repr="0>0" radius="0.33" deltaY="0.02" suspTravel="0.05" spring="25" damper="20" mass="0.15" lateralStiffness="0.5" />
        <wheel driveMode="0" repr="0>1" radius="0.33" deltaY="0.02" suspTravel="0.05" spring="25" damper="20" mass="0.15" lateralStiffness="0.5" />
		<wheel driveMode="0" repr="0>4" radius="0.30" deltaY="0.02" suspTravel="0.05" spring="25" damper="20" mass="0.15" longitudalStiffness="0.05" lateralStiffness="0.2" />
        <wheel driveMode="0" repr="0>5" radius="0.30" deltaY="0.02" suspTravel="0.05" spring="25" damper="20" mass="0.15" longitudalStiffness="0.05" lateralStiffness="0.2" />
    </wheels>
	<brakeForce>0.5</brakeForce>
    <downForce>4</downForce>

	<attacherJoint index="2>0|2" jointType="trailerLow" rootNode="2>"/>

    <fruitPreparer fruitType="sugarBeet" />

	<powerTakeoffInput index="0>3|7" rotSpeed="0" />

    <fruitPreparerAreas>
        <fruitPreparerArea startIndex="0>3|4" widthIndex="0>3|5" heightIndex="0>3|6" />
    </fruitPreparerAreas>

    <fruitPreparerSound file="data/vehicles/tools/grimmeBM300.wav" pitchOffset="1" volume="0.65" />

	<fruitPreparerGroundReferenceNode index="0>3|0" threshold="0.85" />

    <isDefaultLowered value="true"/>
    <needsLowering value="true" />
    <allowsLowering value="false" />

    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>3|1|0|0" rotSpeed="1000"/>
		<turnedOnRotationNode index="0>3|1|1|0" rotSpeed="-1000"/>
		<turnedOnRotationNode index="0>3|1|2|0" rotSpeed="1000"/>
    </turnedOnRotationNodes>

    <foldingParts foldMiddleAnimTime="1">
        <foldingPart animationName="folding" speedScale="1" />
    </foldingParts>

    <animations>
		<animation name="folding">
			<part node="0>3|0" startTime="0" endTime="1.5" startRot="2 0 0" endRot="12 0 0" />
			<part node="0>3|2" startTime="0" endTime="1.5" startRot="0 0 0" endRot="30 0 0" />
		</animation>
    </animations>

    <movingTools>
        <!-- pipe base -->
        <movingTool index="0>3|2" componentJointIndex="0" anchorActor="0">
            <!-- pipe -->
            <dependentPart index="0>3|3" />
        </movingTool>

		<movingTool index="0>3|0" componentJointIndex="1" anchorActor="0">
            <!-- pipe -->
            <dependentPart index="0>3|9" />
        </movingTool>
    </movingTools>	

    <movingParts>
		<!-- cylinder -->
        <movingPart index="0>3|3" referencePoint="0>3|2|0" referenceFrame="0>3|3" invertZ="true">
            <translatingPart index="0>3|3|0" />
        </movingPart>

		<movingPart index="0>3|9" referencePoint="2>0|1" referenceFrame="0>">
            <translatingPart index="0>3|9|0" />
        </movingPart>
    </movingParts>

    <components count="3">
        <component1 centerOfMass="0 0.1 0" solverIterationCount="30" />
        <component2 centerOfMass="0 -1.1 2.75" solverIterationCount="5" />
		<component3 centerOfMass="0 0 0" solverIterationCount="30" />
		<joint component1="0" component2="1" index="0>3|2|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>
