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

    <storeData>
        <name>Tam Leguan quattro 50</name>
        <functions>
            <function>$l10n_function_cutterTrailer</function>
        </functions>
        <image>store/store_thueringerAgrarLeguan50.dds</image>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>THUERINGERAGRAR</brand>
        <category>cutterTrailers</category>
        <vertexBufferMemoryUsage>263008</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>31644</indexBufferMemoryUsage>
        <textureMemoryUsage>2446872</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutterTrailer</typeDesc>
        <filename>thueringerAgrarLeguan50.i3d</filename>
        <size width="3" length="14"/>
        <components>
            <component centerOfMass="0 0.55 -1" solverIterationCount="30" mass="400"/>
            <component solverIterationCount="30" mass="400"/>
            <component solverIterationCount="30" mass="400"/>
            <component solverIterationCount="30" mass="200"/>
            <joint component1="1" component2="2" node="compJointFrontAxis" rotLimit="0 30 0" transLimit="0 0 0" />
            <joint component1="1" component2="3" node="compJointBackAxis" rotLimit="0 0 0" transLimit="0 0 0" />
            <joint component1="2" component2="4" node="componentJointBrawBar2to4" rotLimit="40 0 0" transLimit="0 0 0" />
            <collisionPair component1="1" component2="4" enabled="false"/>
            <collisionPair component1="2" component2="3" enabled="false"/>
            <collisionPair component1="3" component2="4" enabled="false"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

	<designConfigurations>
		 <designConfiguration name="25 km/h" price="0" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="0>6|0|3" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
		 <designConfiguration name="40km/h" price="500" icon="$dataS2/menu/hud/configurations/config_edition.png">
			<objectChange node="0>6|0|2" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="1>6" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="2>5" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>
	
     <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/300_80R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="frontWheelLeft"  forcePointRatio="0.4" initialCompression="15" suspTravel="0.1" spring="22" damper="40"/>
                        <wheelChock parkingNode="wheelChockParking1" filename="$data/shared/assets/wheelChocks/wheelChock02.i3d" />
                        <wheelChock parkingNode="wheelChockParking2" filename="$data/shared/assets/wheelChocks/wheelChock02.i3d" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/300_80R15_3.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="frontWheelRight" forcePointRatio="0.4" initialCompression="15" suspTravel="0.1" spring="22" damper="40"/>
                    </wheel>

                    <wheel filename="$data/shared/wheels/trelleborg/AW305/300_80R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="backWheelLeft"   forcePointRatio="0.4" initialCompression="15" suspTravel="0.1" spring="21" damper="40"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/300_80R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="backWheelRight"  forcePointRatio="0.4" initialCompression="15" suspTravel="0.1" spring="21" damper="40"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor>0.294 0.294 0.294 1</rimColor>

        <hubs>
            <hub linkNode="frontWheelLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.203 0.203 0.203" />
            <hub linkNode="frontWheelRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.203 0.203 0.203" />
            <hub linkNode="backWheelLeft"   filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.203 0.203 0.203" />
            <hub linkNode="backWheelRight"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.203 0.203 0.203" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" rootNode="leguan40_drawbar_component4" jointType="trailer" attacherHeight="0.49247"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce>0.2</brakeForce>
    </attachable>

	<connectionHoses>
		<hose inputAttacherJointIndices="1" type="electric" node="electric" length="0.75" diameter="0.008" >
            <objectChange node="detachedState" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>
	
	
	 <lights>
        <sharedLight linkNode="rear2ChamberLight_05_left" filename="$data/shared/assets/lights/lizard/rear2ChamberLight_05_left.xml"/>
        <sharedLight linkNode="rear2ChamberLight_05_right" filename="$data/shared/assets/lights/lizard/rear2ChamberLight_05_right.xml"/>
        <sharedLight linkNode="redTriangle_02_1" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml"/>
        <sharedLight linkNode="redTriangle_02_2" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml"/>
        <sharedLight linkNode="yellowRound_02_1" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_2" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_3" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_4" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_5" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_6" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_7" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_8" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_9" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>
        <sharedLight linkNode="yellowRound_02_10" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml"/>

        <realLights>
            <high>
                <light node="backLightHighLeft" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightHighLeft" />
            </high>
        </realLights>

        <beaconLights>
            <beaconLight node="beaconLight" speed="0.015" filename="$data/shared/assets/beaconLights/lizard/beaconLight03.xml"/>
        </beaconLights>
    </lights>
	
	
    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="leguan40_main_component1" jointNode="leguan40_main_component1" forceAcceleration="500" mountType="TYPE_AUTO_ATTACH_XZ"/>

    <cylindered>
		<movingTools>
            
            <movingTool node="Halter_quer" playSound="true">
                <controls axis="AXIS_CRANE_ARM4" invertAxis="true" mouseSpeedFactor="0.8" iconName="CRANE_ARM2_TRANSLATE" />
                <translation transSpeed="1.2" transAcceleration="15" transMax="-1.18" transMin="-3.053" translationAxis="3" />
            </movingTool>

        </movingTools>
        <movingParts>
            <movingPart node="compJointBackAxis" referencePoint="steeringBarLeftBackAxleRef" localReferencePoint="backAxleLocalReferencePoint" referenceFrame="compJointBackAxis" isActiveDirty="true" referenceDistanceThreshold="0.01">
                <componentJoint index="2" />
            </movingPart>

            <movingPart node="steeringBarRight" referencePoint="steeringBarLeftRef" referenceFrame="leguan40_main_component1" scaleZ="true" isActiveDirty="true" />
            <movingPart node="steeringBarLeft" referencePoint="steeringBarRightRef" referenceFrame="leguan40_main_component1" scaleZ="true" isActiveDirty="true" />
        </movingParts>

        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>

    <animations>
        <animation name="moveSupport">
            <part startTime="0" duration="0.01" componentJointIndex="3" startRotLimit="20 0 0" endRotLimit="0 0 0" />
        </animation>
    </animations>

    <foliageBending>
        <bendingNode minX="-0.4" maxX="0.4" minZ="0.5" maxZ="4.5" yOffset="-0.1" node="leguan40_frontAxle_component2" />
        <bendingNode minX="-1.25" maxX="1.25" minZ="-0.6" maxZ="0.5" yOffset="-0.1" node="leguan40_frontAxle_component2" />
        <bendingNode minX="-0.8" maxX="0.8" minZ="-4" maxZ="3.3" yOffset="0.4" />
        <bendingNode minX="-1.25" maxX="1.25" minZ="-5.3" maxZ="-3.8" yOffset="0.4" />
        <bendingNode minX="-0.8" maxX="0.8" minZ="-6.9" maxZ="-5.3" yOffset="0.4" />
    </foliageBending>

	<baseColorConfigurations useDefaultColors="true" price="500" icon="$dataS2/menu/hud/configurations/config_color.png">
        <baseColorConfiguration color="0.8913 0.6121 0.0003 1"/>
        <colorNode node="main_vis"/>
    </baseColorConfigurations>
<!--	
    <baseMaterial>
        <material name="thueringerAgrarLeguan_mat" baseNode="main_vis">
            <shaderParameter name="colorMat0" value="THUERINGERAGRAR_YELLOW1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations useDefaultColors="true">
        <baseMaterialConfiguration color="0.8913 0.6121 0.0003 1"/>
        <material name="thueringerAgrarLeguan_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
-->
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>


    <i3dMappings>
        <i3dMapping id="leguan40_main_component1" node="0>" />

        <i3dMapping id="yellowRound_02_10" node="0>6|1|0|0" />
        <i3dMapping id="yellowRound_02_9" node="0>6|1|0|1" />
        <i3dMapping id="yellowRound_02_8" node="0>6|1|0|2" />
        <i3dMapping id="yellowRound_02_7" node="0>6|1|0|3" />
        <i3dMapping id="yellowRound_02_6" node="0>6|1|0|4" />
        <i3dMapping id="yellowRound_02_5" node="0>6|1|0|5" />
        <i3dMapping id="yellowRound_02_4" node="0>6|1|0|6" />
        <i3dMapping id="yellowRound_02_3" node="0>6|1|0|7" />
        <i3dMapping id="yellowRound_02_2" node="0>6|1|0|8" />
        <i3dMapping id="yellowRound_02_1" node="0>6|1|0|9" />
        <i3dMapping id="redTriangle_02_2" node="0>6|0|4|0|10" />
        <i3dMapping id="redTriangle_02_1" node="0>6|0|4|0|11" />
        <i3dMapping id="rear2ChamberLight_05_right" node="0>6|0|4|0|12" />
        <i3dMapping id="rear2ChamberLight_05_left" node="0>6|0|4|0|13" />
        <i3dMapping id="backLightHighLeft" node="0>6|0|4|1" />
        <i3dMapping id="turnLightLeftBack" node="0>6|0|4|2" />
        <i3dMapping id="turnLightRightBack" node="0>6|0|4|3" />
        <i3dMapping id="beaconLight" node="0>6|0|4|4" /> 
		
		
        <i3dMapping id="dynamicMountTrigger" node="0>1" />
        <i3dMapping id="wheelChockParking1" node="0>2|0" />
        <i3dMapping id="wheelChockParking2" node="0>2|1" />
        <i3dMapping id="compJointFrontAxis" node="0>3" />
        <i3dMapping id="compJointBackAxis" node="0>4" />
        <i3dMapping id="backAxleLocalReferencePoint" node="0>4|0" />
        <i3dMapping id="compJointBackAxisRefFrame" node="0>4|1" />
        <i3dMapping id="main_vis" node="0>6" />
        <i3dMapping id="decals" node="0>7" />
		
		<i3dMapping id="Decals_back" node="0>6|0|2" />
		<i3dMapping id="Decals_back2" node="0>6|0|3" />
		<i3dMapping id="frontAxle_fender" node="1>6" />
		<i3dMapping id="backAxle_fender" node="2>5" />
		
        <i3dMapping id="leguan40_frontAxle_component2" node="1>" />
        <i3dMapping id="frontWheelLeft" node="1>0" />
        <i3dMapping id="frontWheelRight" node="1>1" />
        <i3dMapping id="steeringBarLeftRef" node="1>2" />
        <i3dMapping id="steeringBarLeftBackAxleRef" node="1>2|0" />
        <i3dMapping id="steeringBarRightRef" node="1>3" />
        <i3dMapping id="componentJointBrawBar2to4" node="1>4" />
		
        <i3dMapping id="leguan40_backAxle_component3" node="2>" />
        <i3dMapping id="backWheelLeft" node="2>0" />
        <i3dMapping id="backWheelRight" node="2>1" />
        <i3dMapping id="steeringBarRight" node="2>2" />
        <i3dMapping id="steeringBarLeft" node="2>3" />

        <i3dMapping id="leguan40_drawbar_component4" node="3>" />
        <i3dMapping id="attacherJoint" node="3>0" />
		<i3dMapping id="electric" node="3>3|1|0|1" />
        <i3dMapping id="detachedState" node="3>3|0" />
		<i3dMapping id="drawbar_vis" node="3>2" />
		<i3dMapping id="Halter_quer" node="0>6|0" />
		
    </i3dMappings>

</vehicle>
