<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Bdt3">
	<annotation>Copyright (C) MArcin345, All Rights Reserved.</annotation>
    <name>
        <en>Bdt3V2</en>
        <de>Bdt3V2</de>
    </name>
	<typeDesc>Bdt3V2</typeDesc>
    <filename>BDT3.i3d</filename>
    <size width="3.5" length="5.5" />

    <size width="9" length="10" lengthOffset="0" />

    <maxSpeedLevel value="2"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="2>0" radius="0.51" deltaY="0" suspTravel="0" spring="0" damper="0" mass="0.4" lateralStiffness="5" />
        <wheel driveMode="0" repr="2>1" radius="0.51" deltaY="0" suspTravel="0" spring="0" damper="0" mass="0.4" lateralStiffness="5" />
        <wheel driveMode="0" repr="0>8" radius="0.51" deltaY="0" suspTravel="0" spring="0" damper="0" mass="0.4" lateralStiffness="5" />
    </wheels>

    <cuttingAreas count="3">
        <cuttingArea1 startIndex="6|0" widthIndex="6|1" heightIndex="6|2" />
             <cuttingArea2 startIndex="9|3" widthIndex="9|4" heightIndex="9|5"/>
	<cuttingArea3 startIndex="10|3" widthIndex="10|4" heightIndex="10|5"/>
    </cuttingAreas>

    <cultivatorSound file="$data/vehicles/tools/ploughSound.wav" pitchOffset="0.5" volume="0.6"/>
	<cylinderedHydraulicSound file="$data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <attacherJoint rootNode="1>" index="1>0" jointType="implement" rotLimitScale="1 1 1" transLimitScale="1 1 1" allowsJointTransLimitMovement="true" allowsJointRotLimitMovement="false" />

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />

	<foldingParts>
        <foldingPart componentJointIndex="0" anchorActor="0" animationClip="RozkladanieClipSource" rootNode="0>9" speedScale="1" startMoveDirection="1" />
    </foldingParts>

    <groundParticleSystems>
        <groundParticleSystem position=" 1 0 2.2" rotation="0 0 0" file="PS/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="0 0 2.2" rotation="0 0 0" file="PS/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="-1 0 2.2" rotation="0 0 0" file="PS/fieldWorkParticleSystem.i3d" />
    </groundParticleSystems>

    <speedRotatingParts>
        <speedRotatingPart index="5|0" radius="0.45"/>
        <speedRotatingPart index="5|1" radius="0.45"/>
        <speedRotatingPart index="5|2" radius="0.45"/>
        <speedRotatingPart index="5|3" radius="0.45"/>
        <speedRotatingPart index="9|1" radius="0.375" foldMinLimit="0" foldMaxLimit="0.15"/>
        <speedRotatingPart index="9|2" radius="0.375" foldMinLimit="0" foldMaxLimit="0.15"/>
        <speedRotatingPart index="10|1" radius="0.375" foldMinLimit="0" foldMaxLimit="0.15"/>
        <speedRotatingPart index="10|2" radius="0.375" foldMinLimit="0" foldMaxLimit="0.15"/>
    </speedRotatingParts>

    <aiLeftMarker index="0" />
    <aiRightMarker index="1" />
    <aiBackMarker index="2" />

    <aiForceTurnNoBackward value="true" />

    <movingTools>
		<!-- wheelMount-->
		<movingTool index="0>4" componentJointIndex="1" anchorActor="0">
			<!-- hydraulic -->
			<dependentPart index="7" />
        </movingTool>
    </movingTools>

    <movingParts>    
		<!-- wheelMount cylinder -->
        <movingPart index="0>7" referencePoint="0>4|1" referenceFrame="0>4|1" invertZ="false">
            <translatingPart index="0>7|0" />
        </movingPart>
    </movingParts>

    <animations>
		<animation name="lowerAnimation">
            <part node="0>4" startTime="0" endTime="2.0" startRot="-25 0 0" endRot="30 0 0"/>
        </animation>
    </animations>
	
	<lowerAnimation name="lowerAnimation" speed="1" />
	
    <aiTrafficCollisionTrigger index="3" />

    <!-- Czesci zdejmowane -->
    <lightsaddon lightsStayOn="true">
		<light type="work" index="0>9"  inputName="Ramiona" helptext="Ramiona" stayOn="true"/>
                                        <light type="work" index="0>10"  inputName="Ramiona" helptext="Ramiona" stayOn="true"/>
	</lightsaddon>

    <components count="3">
        <component1 centerOfMass="0 0 2" solverIterationCount="8" />
        <component2 solverIterationCount="8" />
        <component3 solverIterationCount="8" />
        <joint component1="0" component2="1" index="1>1" rotLimit="0 0 80" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>4|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>
</vehicle>