<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="plow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_horsePlow</name>
        <specs>
            <neededPower>12</neededPower>
            <workingWidth>0.5</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_plow</function>
        </functions>
        <image>store/store_pn2300.png</image>
        <price>450</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LSFMHA</brand>
        <category>hofBergmannHorseAddonPack</category>
		<shopTranslationOffset>0 -0.005 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>124672</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>31744</indexBufferMemoryUsage>
        <textureMemoryUsage>589824</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_plow</typeDesc>
        <filename>tools/pn2300/pn2300.i3d</filename>
        <size width="1.22" length="0.85" height="0.85" lengthOffset="0.03"/>
        <speedLimit value="12.4" />
        <components>
            <component centerOfMass="0 0.3 -0.5" solverIterationCount="10" mass="72" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
		<showInVehicleMenu>false</showInVehicleMenu>
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel>
                        <physics restLoad="0.14" repr="wheel" radius="0.165" width="0.2" forcePointRatio="0.2" initialCompression="10" suspTravel="0.02" spring="20" damper="28" rotationDamping="0.005" supportsWheelSink="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
   </wheels>

    <powerConsumer forceNode="pn2300_main_component1" maxForce="1.2" />

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.175" forceFactor="1" depthNode="depthNode"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="plow" functionName="processPlowArea" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <workParticles>
        <particle>
            <node node="smokeEmitterBottom" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="2" speedThreshold="2"/>
        </particle>
        <effect groundReferenceNodeIndex="1" speedThreshold="0">
            <effectNode effectClass="PlowMotionPathEffect" effectType="PLOW" linkNode="plowEffectBottom01">
                <motionPathEffect textureFilename="$data/vehicles/kverneland/ecomat/ecomatBottomShareArray.dds" numRows="6" rowLength="23" minFade="0.18" speedScale="0.5" densityScale="0.5" endFade="0.3" fadeOutScale="0.4" maxShapeScale="0.2" />
            </effectNode>
            <effectNode effectClass="PlowMotionPathEffect" effectType="PLOW" linkNode="plowEffectBottom02">
                <motionPathEffect textureFilename="$data/vehicles/kverneland/ecomat/ecomatBottomShareArray.dds" numRows="6" rowLength="23" minFade="0.18" speedScale="0.5" densityScale="0.5" endFade="0.3" fadeOutScale="0.4" maxShapeScale="0.2" />
            </effectNode>
        </effect>
    </workParticles>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="$l10n_configuration_valueSmall">
                <inputAttacherJoint node="attacherJoint" jointType="implement" lowerTransLimitScale="0 0 0" lowerRotationOffset="0" upperRotationOffset="0" upperTransLimitScale="0 0 0">
                    <distanceToGround lower="0.25" upper="0.8" />
					<subType name="horseAttacherImplement" showWarning="false"/>
                </inputAttacherJoint>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>

        <support animationName="moveSupport" />
    </attachable>

    <animations>
        <animation name="moveSupport">
            <part node="supportCol01" startTime="0.0" endTime="0.2" startTrans="0.024 0.4 -0.204" endTrans="0.024 0.190 -0.204" />

            <sound template="clackVar6" startTime="0.19" volumeScale="1.1" pitchScale="1" direction="-1" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <plow>
        <sounds>
            <work template="defaultPlowWork" linkNode="pn2300_main_component1" volumeScale="1.2"/>
        </sounds>
    </plow>

    <ai>
        <needsLowering value="true" />
        <collisionTrigger node="aiCollisionNode" width="1" height="0.8"/>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <hasNoFullCoverageArea value="true" />
        <agentAttachment width="0.9" height="0.8" length="1.55" lengthOffset="-0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.4" maxX="0.35" minZ="-1" maxZ="0.55" yOffset="0.25" />
    </foliageBending>

    <!-- <baseMaterial>
        <material name="pn2300_mat" baseNode="pn2300_vis">
            <shaderParameter name="colorMat0" value="SHARED_BLACK1"/>
        </material>
		<material name="hitchMesh_mat" baseNode="hitchMeshKat01">
            <shaderParameter name="colorMat0" value="SHARED_BLACK1"/>
        </material>
    </baseMaterial> -->

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="45" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="pn2300_main_component1" node="0>" />
        <i3dMapping id="pn2300_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="supportCol01" node="0>0|0|2|0" />
        <i3dMapping id="wheel" node="0>0|1|0" />
        <i3dMapping id="plowEffectBottom01" node="0>0|2|0" />
        <i3dMapping id="plowEffectBottom02" node="0>0|2|1" />
        <i3dMapping id="smokeEmitterBottom" node="0>0|2|2" />
        <i3dMapping id="workAreaStart" node="0>0|3|0" />
        <i3dMapping id="workAreaWidth" node="0>0|3|1" />
        <i3dMapping id="workAreaHeight" node="0>0|3|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|3|3" />
        <i3dMapping id="depthNode" node="0>0|3|4" />
        <i3dMapping id="aiMarkerLeft" node="0>0|4|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|4|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|4|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|4|3" />
        <i3dMapping id="narrowConfiguration" node="0>0|5|0" />
        <i3dMapping id="wideConfiguration" node="0>0|5|1" />
		<i3dMapping id="hitchMeshKat01" node="0>0|5|2" />
    </i3dMappings>
</vehicle>
