<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="viper7">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Viper 7</name>
        <specs>
            <neededPower>150</neededPower>
            <workingWidth>3.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_subsoiler</function>
        </functions>
        <image>store/store_viper7.png</image>
        <price>3800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ZMAJ</brand>
        <category>subsoilers</category>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>viper7.i3d</filename>
        <size width="3.5" length="4"/>
        <speedLimit value="12"/>
        <components>
            <component centerOfMass="0 0.98 0.012" solverIterationCount="10"  mass="2522"  />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>
	
    <speedRotatingParts>
        <speedRotatingPart node="0>0|1|1|0|0|0" radius="0.2" groundReferenceNodeIndex="1"/>
        <speedRotatingPart node="0>0|1|1|0|0|1" radius="0.2" groundReferenceNodeIndex="1"/>
    </speedRotatingParts>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>3|0" jointType="implement" topReferenceNode="0>3|1" lowerRotLimitScale="0 0 0" upperRotationOffset="15" lowerRotationOffset="0" allowsLowering="true">
                <distanceToGround lower="0.45" upper="1.3"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>
	
    <powerConsumer forceNode="0>2" forceFactor="10" maxForce="35" neededMaxPtoPower="0"/>
	
    <groundReferenceNodes>
        <groundReferenceNode node="0>6|3" threshold="0.5" depthNode="0>6|4"/>
    </groundReferenceNodes>
	
	<workAreas>
        <workArea type="plow" functionName="processPlowArea" >
            <area startNode="0>6|0" widthNode="0>6|1" heightNode="0>6|2" />
            <groundReferenceNode index="1" />
        </workArea>
		<workArea type="cultivator" functionName="processCultivatorArea" >
            <area startNode="0>0|1|1|0|1|0" widthNode="0>0|1|1|0|1|1" heightNode="0>0|1|1|0|1|2" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>
	
    <workParticles>
        <particleAnimation>
            <node node="0>4|0" refNodeIndex="1" materialType="SOIL"/>
        </particleAnimation>
        <particle>
            <node node="0>4|1" refNodeIndex="1" particleType="SOIL_SMOKE"/>
            <node node="0>4|2" refNodeIndex="1" particleType="SOIL"/>
            <node node="0>4|3" refNodeIndex="1" particleType="SOIL_CHUNKS" worldSpace="false"/>
            <node node="0>4|4" refNodeIndex="1" particleType="SOIL_BIG_CHUNKS" worldSpace="false"/>
        </particle>
    </workParticles>
	
    <animations>
        <animation name="moveSupport">
            <part node="0>1" startTime="0.0" endTime="0.2" startTrans="0 0.5 0" endTrans="0 0 0"/>
        </animation>
        <animation name="hedgehog">
            <part node="0>0|1|1" startTime="0" endTime="1" startRot="0 0 0" endRot="65 0 0"/>
            <part node="0>0|1|2" startTime="0" endTime="1" startRot="0 0 0" endRot="65 0 0"/>
            <part node="0>0|1|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="-65 0 0"/>
            <part node="0>0|1|1|0|1|1" startTime="0" endTime="1" startTrans="-1.49 -0.931 -0.025" endTrans="1.49 -0.931 -0.025"/>
            <part node="0>0|1|1|0|0|0" startTime="0" endTime="0.5" visibility="true"/>
            <part node="0>0|1|1|0|0|1" startTime="0" endTime="0.5" visibility="true"/>
            <part node="0>0|1|1|0|0|2" startTime="0" endTime="0.5" visibility="false"/>
            <part node="0>0|1|1|0|0|3" startTime="0" endTime="0.5" visibility="false"/>
            <part node="0>0|1|1|0|0|0" startTime="0.5" endTime="1" visibility="false"/>
            <part node="0>0|1|1|0|0|1" startTime="0.5" endTime="1" visibility="false"/>
            <part node="0>0|1|1|0|0|2" startTime="0.5" endTime="1" visibility="true"/>
            <part node="0>0|1|1|0|0|3" startTime="0.5" endTime="1" visibility="true"/>
        </animation>
    </animations>
	
    <cylindered>
        <movingTools>
            <movingTool node="0>" playSound="true">
                <controls axis="AXIS_WHEEL_BASE" invertAxis="false" mouseSpeedFactor="0.5"/>
                <animation animName="hedgehog" animSpeed="0.6"/>
                <dependentPart node="0>0|1|0"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>0|1|0" referencePoint="0>0|1|1|1" referenceFrame="0>0|1|1|1">
                <translatingPart node="0>0|1|0|0"/>
            </movingPart>
			<movingPart node="0>7|1|2|0" referencePoint="0>0|1|0|1|0" referenceFrame="0>" scaleZ="true" isActiveDirty="true" maxUpdateDistance="100"/>
			<movingPart node="0>7|1|2|1" referencePoint="0>0|1|0|1|1" referenceFrame="0>" scaleZ="true" isActiveDirty="true" maxUpdateDistance="100"/>
        </movingParts>
    </cylindered>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="0>5|0|0" rightNode="0>5|0|1" backNode="0>5|0|2"/>
        <sizeMarkers leftNode="0>5|1|0" rightNode="0>5|1|1" backNode="0>5|1|2"/>
        <collisionTrigger node="0>5|2"/>
        <allowTurnBackward value="false"/>
		<agentAttachment width="3" height="1.7" length="1" lengthOffset="0"/>
    </ai>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>7|1|2|0|0"  length="1.3" diameter="0.02" straighteningFactor="2">

            <objectChange node="0>7|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>7|1|2|1|0" length="1.3" diameter="0.02" straighteningFactor="2">

            <objectChange node="0>7|1|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
</vehicle>
