﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="implement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>W 900</name>
        <specs>
            <weight>
                <config name="design" index="1" value="900"/>
                <config name="design" index="2" value="1500"/>
            </weight>
        </specs>
        <functions>
            <function>$l10n_function_weight</function>
        </functions>
        <rotation>0</rotation>
        <image>$data/vehicles/claas/w900/store_w900.png</image>
        <price>950</price>
        <dailyUpkeep>0</dailyUpkeep>
        <lifetime>600</lifetime>
        <brand>CLAAS</brand>
        <category>weights</category>
        <shopTranslationOffset>0 -0.002 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>174848</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>42496</indexBufferMemoryUsage>
        <textureMemoryUsage>458752</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_weight</typeDesc>
        <filename>$data/vehicles/claas/w900/w900.i3d</filename>
        <size width="2" length="1.5" />
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="900"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <designConfigurations>
        <designConfiguration name="$l10n_configuration_frontWeightX" params="900" price="0">
            <objectChange node="w900_main_component1" massActive="900" />
            <objectChange node="w900_main_component1" centerOfMassActive="0 0.1 0" />
            <objectChange node="attachment" visibilityActive="false" />
            <objectChange node="collision" compoundChildActive="false" />
            <objectChange node="trailerAttacherJoint" translationActive="0 0.243 0.188" />
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_frontWeightX" params="1500" price="650" vehicleName="W 1500">
            <objectChange node="w900_main_component1" massActive="1500" />
            <objectChange node="w900_main_component1" centerOfMassActive="0 0.1 0" />
            <objectChange node="attachment" visibilityActive="true" />
            <objectChange node="collision" compoundChildActive="true" />
            <objectChange node="trailerAttacherJoint" translationActive="0 0.171 0.537" />
            <foliageBendingModifier index="1" minZ="-0.3" maxZ="0.6"/>
        </designConfiguration>
    </designConfigurations>

    <attacherJoints>
        <attacherJoint node="trailerAttacherJoint" jointType="trailer" lowerRotLimit="25 60 80" upperRotationOffset="0" allowsJointLimitMovement="false" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <attachable>
        <inputAttacherJoints>
          <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0" upperRotationOffset="3" lowerRotationOffset="0" needsLowering="false">
            <distanceToGround lower="0.3" upper="0.85" />
          </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <ai>
        <agentAttachment width="0.8" height="0.5" length="0.8" lengthOffset="0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.45" maxX="0.45" minZ="-0.3" maxZ="0.3" yOffset="0" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2" showOnHud="false"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <baseMaterial>
        <material name="claasWeights_mat" baseNode="w900_vis">
            <shaderParameter name="colorMat0" value="CLAAS_DARKGREY2"/>
        </material>
    </baseMaterial>

    <i3dMappings>
        <i3dMapping id="w900_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0" />
        <i3dMapping id="topReferenceNode" node="0>1" />
        <i3dMapping id="trailerAttacherJoint" node="0>2" />
        <i3dMapping id="w900_vis" node="0>3" />
        <i3dMapping id="attachment" node="0>3|0" />
        <i3dMapping id="collision" node="0>3|0|0" />
    </i3dMappings>
</vehicle>
