<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="implement">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Stalk Stompers®</name>
        <functions>
            <function>$l10n_function_roller</function>
        </functions>
        <image>store.dds</image>
        <price>4515</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LANKOTA</brand>
        <category>misc</category>
        <fieldJob sizeCategory="2" typeCategory="weight"/>
        <vertexBufferMemoryUsage>450812</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>73992</indexBufferMemoryUsage>
        <textureMemoryUsage>12757816</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>Stalk Stompers®</typeDesc>
        <filename>roller.i3d</filename>
        <size width="3" length="1.5"/>
        <components>
            <component centerOfMass="0 0 2.9" solverIterationCount="200" mass="300" /><!-- total 1300lbs -->
			<component centerOfMass="0 0 -0.5" solverIterationCount="200" mass="144" />
			<component centerOfMass="0 0 -0.5" solverIterationCount="200" mass="144" />
			<joint component1="1" component2="2" node="0>0|0|0" rotLimit="0 0 0" transLimit="0 0 0"/>
            <joint component1="1" component2="3" node="0>0|1|0" rotLimit="0 0 0" transLimit="0 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

	<wheels>
        <wheelConfigurations>
             <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics restLoad="0" repr="1>0|0"   radius="0.28" width="1.4" mass="0.215" maxLongStiffness="8" maxLatStiffness="100" maxLatStiffnessLoad="2" forcePointRatio="0.5" initialCompression="1" suspTravel="0.01" spring="1" damper="1" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="4" isCareWheel="false"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics restLoad="0" repr="2>0|0"  radius="0.28" width="1.4" mass="0.215" maxLongStiffness="8" maxLatStiffness="100" maxLatStiffnessLoad="2" forcePointRatio="0.5" initialCompression="1" suspTravel="0.01" spring="1" damper="1" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="4" isCareWheel="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

	<attachable>
	    <inputAttacherJointConfigurations>
		    <inputAttacherJointConfiguration name="John Deere 8R/X" >
			    <inputAttacherJoint node="0>3" jointType="implement" lowerRotLimitScale="0 0 0" upperRotationOffset="0" lowerRotationOffset="0" lowerTransLimitScale="0 0 0" needsLowering="false" allowsLowering="false">
				    <distanceToGround lower="0.7" upper="0.7"/>
	            </inputAttacherJoint>
			</inputAttacherJointConfiguration>
			<inputAttacherJointConfiguration name="Case Magnum 2018" >
				<inputAttacherJoint node="0>4" jointType="implement" lowerRotLimitScale="0 0 0" upperRotationOffset="0" lowerRotationOffset="0" lowerTransLimitScale="0 0 0" needsLowering="false" allowsLowering="false">
					<distanceToGround lower="0.7" upper="0.7"/>
				</inputAttacherJoint>
			</inputAttacherJointConfiguration>
		</inputAttacherJointConfigurations>
    </attachable>
	
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" >
                    <foldingPart animationName="folding" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="0>0|0" startTime="0" endTime="3" startRot="0 0 0" endRot="0 0 90"/>
			<part node="0>0|1" startTime="0" endTime="3" startRot="0 0 0" endRot="0 0 -90"/>
			<part node="1>0"   startTime="0" endTime="2" startRot="0 0 0" endRot="-32 0 0"/>
			<part node="2>0"   startTime="0" endTime="2" startRot="0 0 0" endRot="-32 0 0"/>
            <part startTime="0" endTime="1" componentJointIndex="1" startRotLimit="10 0 0" endRotLimit="0 0 0"/>
            <part startTime="0" endTime="1" componentJointIndex="2" startRotLimit="10 0 0" endRotLimit="0 0 0"/>
        </animation>
    </animations>
	
	<cylindered>
        <movingTools>
            <movingTool node="0>0|0" playSound="true" wheelIndices="1">
                <dependentPart node="0>0|2"/>
				<componentJoint index="1" anchorActor="0"/>
            </movingTool>
            <movingTool node="0>0|1" playSound="true" wheelIndices="2">
                <dependentPart node="0>0|3"/>
				<componentJoint index="2" anchorActor="0"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>0|2" referencePoint="0>0|0|1" referenceFrame="0>0|0|1" isActiveDirty="true" maxUpdateDistance="5.0">
                <translatingPart node="0>0|2|0"/>
            </movingPart>
            <movingPart node="0>0|3" referencePoint="0>0|1|1" referenceFrame="0>0|1|1" isActiveDirty="true" maxUpdateDistance="5.0">
                <translatingPart node="0>0|3|0"/>
            </movingPart>
        </movingParts>
<!--         <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds> -->
    </cylindered>
	
	<baseMaterial>
        <material name="MainVis" baseNode="0>0">
            <shaderParameter name="colorMat0" value="0.04 0.201 0.024"  material="0"/>
        </material>
    </baseMaterial>
	
	<baseMaterialConfigurations price="500" useDefaultColors="false">
		<baseMaterialConfiguration name="Green" color="0.04 0.201 0.024" material="0" />
		<baseMaterialConfiguration name="Black" color="0 0 0" material="0" />
		<material name="MainVis" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.7" maxZ="0.7" yOffset="0.2" />
    </foliageBending>
	
	<ai>
        <agentAttachment width="3.0" height="3" length="5.6" lengthOffset="-1.2"/>
    </ai>
	
    <wearable wearDuration="240" workMultiplier="10" fieldMultiplier="8"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>
	<realDirtColor ignoreRDCWheelLimit = "true" />
    <realDirtColor useSimpleMode = "true" />
</vehicle>


