<?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">
    

    <storeData>
        <name>$l10n_configuration_valueWheelWeights</name>
        <specs>
            <weight>
                <config name="design" index="1" value="310"/>
                <config name="design" index="2" value="620"/>
            </weight>
        </specs>
        <functions>
            <function>$l10n_function_weight</function>
        </functions>
        <rotation>0</rotation>
        <image>Extras/textures/store_AVMWheelWeights.dds</image>
        <price>1200</price>
        <lifetime>600</lifetime>
        <brand>JOHNDEERE</brand>
        <category>weights</category>
        <shopLoadingDelay initial="0.15"/>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0.2 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_weight</typeDesc>
        <filename>Extras/WheelWeight.i3d</filename>
        <size width="1.2" length="0.72" height="0.5" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="310" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" needsLowering="false" allowsLowering="false" attacherJointcollision="false" hardAttach="true" >
                <distanceToGround lower="0.4" upper="0.4" />
                <subType name="extra_stuff" showWarning="false"/>
            </inputAttacherJoint>			
        </inputAttacherJoints>
		<support animationName="pallet_visibility" delayedOnLoad="true"/>
    </attachable>
	
	<tensionBeltObject>
		<meshNodes>
			<meshNode node="WheelWeightBig"/>
		</meshNodes>
	</tensionBeltObject>
	
    <ai>
        <agentAttachment width="1" height="1.2" length="0.8" lengthOffset="-0.075"/>
    </ai>
	
	<foliageBending>
        <bendingNode minX="-0.5" maxX="0.5" minZ="-0.4" maxZ="0.35" yOffset="0.15"/>
    </foliageBending>
	
	<animations>
		<animation name="pallet_visibility">
			<part node="collision" startTime="0" endTime="0.001" startTrans="0 0.2 0" endTrans="0 0 0" startScale="0 0 0" endScale="1 1 1"/>		
            <part node="pallet" startTime="0" endTime="0.001" visibility="false"/>
			<part node="pallet" startTime="0.001" endTime="0.002" visibility="true"/>
			<part node="attacherJoint" startTime="0" endTime="0.001" startRot="0 0 0" endRot="0 90 90"/>	         		
            <part node="trans" startTime="0" endTime="0.001" startTrans="0 0 -0.178" endTrans="-0.4 0 -0.178"/>
        </animation>
	</animations>
				
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2" showOnHud="false"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>
		
	<designConfigurations title="$l10n_configuration_valueWheelWeights" isYesNoOption="true">
		<designConfiguration name="310 KG" price="0">
			<objectChange node="WheelWeightMainComponent" visibilityActive="true" massActive="310"/>
            <objectChange node="WheelWeightSmall" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="WheelWeightColli" scaleActive="1 0.9 1" scaleInactive="1 1 1"/>
        </designConfiguration>
        <designConfiguration name="620 KG" price="1200">
			<objectChange node="WheelWeightMainComponent" visibilityActive="true" massActive="620"/>
            <objectChange node="WheelWeightBig" visibilityActive="true" visibilityInactive="false"/>             
            <objectChange node="WheelWeightColli" scaleActive="1 1 1" scaleInactive="1 0.5 1"/>
        </designConfiguration>
        
    </designConfigurations>	
		
	<baseColorConfigurations>
		<baseColorConfiguration	materialTemplateName="JOHNDEERE_YELLOW1" name="%s %s (%s)" params="John Deere|$l10n_ui_colorYellow|$l10n_configuration_valueDefault"	price="0"/>
		<baseColorConfiguration materialTemplateName="JOHNDEERE_GREEN2" name="%s %s (%s)" params="John Deere|$l10n_ui_colorGreenOlive|$l10n_ui_colorSpecial" 			price="1000"/>
		<baseColorConfiguration materialTemplateName="JOHNDEERE_BLACK1" name="%s %s (%s)" params="John Deere|$l10n_ui_colorBlack|$l10n_ui_colorSpecial"					price="1000"/>
		<baseColorConfiguration materialTemplateName="SHARED_WHITE1" 	name="%s (%s)" params="$l10n_ui_colorWhite|$l10n_ui_colorSpecial"								price="1000"/>
		<baseColorConfiguration	materialTemplateName="SCHAEFFER_SILVER"	name="%s (%s)" params="$l10n_ui_colorSilver|$l10n_ui_colorSpecial"								price="1000"/>
		<material materialSlotName="MainColor" >
			<clearCoat intensity="0.5" smoothness="0.85"/>
		</material>
    </baseColorConfigurations>

	<i3dMappings>
		<i3dMapping id="WheelWeightMainComponent" node="0>"/>
		<i3dMapping id="WheelWeightBig" node="0>0|0|0"/>
		<i3dMapping id="WheelWeightSmall" node="0>0|0|1"/>       
		<i3dMapping id="WheelWeightColli" node="0>0|0|3"/>
		<i3dMapping id="pallet" node="0>0|0|2"/>
		<i3dMapping id="collision" node="0>0|0|2|1"/>
		<i3dMapping id="euroPallet" node="0>0|0|2|0"/>
		<i3dMapping id="attacherJoint" node="0>0"/>
		<i3dMapping id="trans" node="0>0|0"/>
	</i3dMappings>
</vehicle>
