﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mower_animated">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn PZ 960</en>
        <de>Kuhn PZ 960</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Mower</typeDesc>
    <filename>data/vehicles/tools/kuhn/kuhnPZ960.i3d</filename>

    <size width="4.5" length="3" />

	<groundReferenceNode index="3>" threshold="1" />

    <cuttingAreas count="2">
        <cuttingArea1 startIndex="3>0|4" widthIndex="3>0|5" heightIndex="3>0|6" foldMinLimit="0" foldMaxLimit="0.1"/>
		<cuttingArea2 startIndex="4>0|4" widthIndex="4>0|5" heightIndex="4>0|6" foldMinLimit="0" foldMaxLimit="0.1"/>
    </cuttingAreas>

    <attacherJoint index="0>0" jointType="implement" topReferenceNode="0>1" allowsJointRotLimitMovement="false" rotLimitScale="0.4 0.4 0.4" transLimitScale="0 0 0" upperDistanceToGround="1.0" />

    <isDefaultLowered value="false"/>
    <needsLowering value="false" />
    <allowsLowering value="false" />
	<onlyActiveWhenLowered value="false" />

	<powerTakeoffInput index="0>2|9" rotSpeed="0" />

    <mowerSound file="data/vehicles/tools/mower.wav" pitchOffset="1" volume="0.5" />

    <foldingParts startMoveDirection="1" foldMiddleAnimTime="0.167">
        <foldingPart animationName="rightFold" speedScale="0.55" />
		<foldingPart animationName="leftFold" speedScale="0.5" />
    </foldingParts>

    <movingTools>
		<movingTool index="0>2|5" componentJointIndex="0" anchorActor="0"/>
		<movingTool index="0>2|6" componentJointIndex="1" anchorActor="0"/>
		<!-- support -->
		<movingTool index="0>2|3" componentJointIndex="4" anchorActor="0"/>
    </movingTools>

    <movingParts>
        <!-- left pto -->
        <movingPart index="0>2|7" referencePoint="3>0|1" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|7|0" />
        </movingPart>
		<!-- right pto -->
		<movingPart index="0>2|8" referencePoint="4>0|1" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|8|0" />
        </movingPart>

		<!-- left damper -->
        <movingPart index="1>0|3" referencePoint="4>0|0" localReferencePoint="1>0|3|0" referenceFrame="0>" isActiveDirty="true">
            <dependentPart index="1>0|3|0" />
        </movingPart>
        <!-- left damper part -->
        <movingPart index="1>0|3|0" referencePoint="4>0|0" referenceFrame="1>0|3|1" isActiveDirty="true"/>

		<!-- right damper -->
        <movingPart index="2>0|3" referencePoint="3>0|0" localReferencePoint="2>0|3|0" referenceFrame="0>" isActiveDirty="true">
            <dependentPart index="2>0|3|0" />
        </movingPart>
        <!-- right damper part -->
        <movingPart index="2>0|3|0" referencePoint="3>0|0" referenceFrame="2>0|3|1" isActiveDirty="true"/>

		<!-- left spring -->
        <movingPart index="3>0|3" referencePoint="1>0|2" referenceFrame="0>" isActiveDirty="true" scaleZ="true"/>
		<!-- right spring -->
		<movingPart index="4>0|3" referencePoint="2>0|2" referenceFrame="0>" isActiveDirty="true" scaleZ="true"/>

		<!-- right lift cylinder -->
        <movingPart index="0>2|0" referencePoint="1>0|1" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|0|0" />
        </movingPart>
		<!-- right back part cylinder -->
		<movingPart index="0>2|1" referencePoint="2>0|1" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|1|0" />
        </movingPart>
    </movingParts>

	<animations>
		<animation name="leftFold">
			<part componentJointIndex="0" startTime="0" endTime="1" startRotLimit="0 0 15" endRotLimit="0 0 0"/>
			<part componentJointIndex="2" startTime="3.0" endTime="5.0" startRotLimit="0 0 5" endRotLimit="0 0 0"/>
            <part node="0>2|5" startTime="2" endTime="6.0" startRot="0 0 0" endRot="0 0 100"/>
        </animation>
        <animation name="rightFold">
			<part componentJointIndex="1" startTime="0" endTime="1" startRotLimit="0 0 15" endRotLimit="0 0 0"/>
			<part componentJointIndex="3" startTime="2.0" endTime="3.0" startRotLimit="0 0 5" endRotLimit="0 0 0"/>
			<part node="0>2|6" startTime="2" endTime="6.0" startRot="0 0 0" endRot="0 0 -100"/>
        </animation>

		<!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>2|2" startTime="0" duration="0.5" startRot="0 0 0" endRot="180 0 0" />
			<part node="0>2|4" startTime="0" duration="0.5" startRot="0 0 0" endRot="-90 0 0" />
			<part node="0>2|3" startTime="0" duration="0.5" startTrans="-0.0053 0.57581 0.3714" endTrans="-0.0053 0.0935 0.3714" />
        </animation>
    </animations>

	<support animationName="moveSupport" />

	<components count="6">
        <component1 centerOfMass="0 0 0" solverIterationCount="30" />
		<component2 centerOfMass="0 0 0" solverIterationCount="30" />
		<component3 centerOfMass="0 0 0" solverIterationCount="30" />
		<component4 centerOfMass="-0.19 0 0" solverIterationCount="15" />
		<component5 centerOfMass="0.19 0 0" solverIterationCount="15" />
		<component5 centerOfMass="0 0 0" solverIterationCount="20" />
		<joint component1="0" component2="1" index="0>2|5" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>2|6" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="1" component2="3" index="1>0|0" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="2" component2="4" index="2>0|0" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="5" index="0>2|3" 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>