<?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>PN 2-300</name>
        <specs>
            <neededPower>12</neededPower>
            <workingWidth>0.5</workingWidth>
            <combination xmlFilename="$data/vehicles/landini/seriesREX4/seriesREX4.xml"/>
            <combination xmlFilename="$data/vehicles/newHolland/tk4/tk4.xml"/>
            <combination xmlFilename="$data/vehicles/fendt/vario200/vario200.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_plow</function>
        </functions>
        <image>$data/vehicles/salek/pn2300/store_pn2300.png</image>
        <price>1250</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SALEK</brand>
        <category>plows</category>
        <shopTranslationOffset>0 0.006 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>205312</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>34560</indexBufferMemoryUsage>
        <textureMemoryUsage>2162688</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_plow</typeDesc>
        <filename>$data/vehicles/salek/pn2300/pn2300.i3d</filename>
        <size width="2" height="3" length="1.8" lengthOffset="-0.2"/>
        <speedLimit value="12.4" />
        <components>
            <component centerOfMass="0 0.3 -0.5" solverIterationCount="10" mass="72" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <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_valueBig">
                <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0.6" rotLimitThreshold="0" transLimitThreshold="0" lowerTransLimitScale="0 1 0" upperRotationOffset="10" lowerRotationOffset="-2" >
                    <distanceToGround lower="0.25" upper="0.8" />
                </inputAttacherJoint>
                <objectChange node="wideConfiguration" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_valueSmall">
                <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0.6" rotLimitThreshold="0" transLimitThreshold="0" lowerTransLimitScale="0 1 0" upperRotationOffset="10" lowerRotationOffset="-2" >
                    <distanceToGround lower="0.25" upper="0.8" />
                </inputAttacherJoint>
                <objectChange node="narrowConfiguration" visibilityActive="true" visibilityInactive="false"/>
            </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="DEFAULT_PLOW_WORK" 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="SALEK_RED1"/>
        </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" />
    </i3dMappings>
</vehicle>
