<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="forageWagon">
    <annotation>Dion, Appalaches Modding, NEFG Modding,Bsl modding</annotation>
	
    <storeData>
        <name>dion</name>
        <specs>
        </specs>
        <functions>
            <function>$l10n_function_forageWagon</function>
        </functions>
        <image>store.png</image>
        <price>15000</price>
        <lifetime>1200</lifetime>
        <rotation>180</rotation>
        <brand>GEHL</brand>
        <category>loaderWagons</category>
        <shopTranslationOffset>0 -0.22 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3142784</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>902448</indexBufferMemoryUsage>
        <textureMemoryUsage>27263224</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_forageWagon</typeDesc>
        <filename>Miller_Pro.i3d</filename>
        <size width="3.4" length="9.0" lengthOffset="-1.0"/>
        <components>
            <component centerOfMass="0 0 -0.7" solverIterationCount="35" mass="2500" />
            <component solverIterationCount="35" mass="1500" />
            <component solverIterationCount="35" mass="500" />
            <joint component1="1" component2="2" node="0>0|4" rotLimit="0 40 0" transLimit="0 0 0" />
            <joint component1="2" component2="3" node="1>5" rotLimit="45 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="Wheels/Roues.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|2" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|3" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|1|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|0|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                </wheels>
			</wheelConfiguration>
			<wheelConfiguration name="$l10n_configuration_valueDefault" price="500" brand="NOKIAN">
                <wheels>
                    <wheel filename="Wheels/Roues.xml" configId="nokian" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|2" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="nokian" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|3" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="nokian" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|1|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="nokian" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|0|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                </wheels>
			</wheelConfiguration>
			<wheelConfiguration name="$l10n_configuration_valueDefault" price="500" brand="MITAS">
                <wheels>
                    <wheel filename="Wheels/Roues.xml" configId="mitas" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|2" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="mitas" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|3" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="mitas" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|1|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="mitas" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|0|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                </wheels>
			</wheelConfiguration>
			<wheelConfiguration name="$l10n_configuration_valueDefault" price="500" brand="MICHELIN">
                <wheels>
                    <wheel filename="Wheels/Roues.xml" configId="michelin" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|2" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="michelin" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|3" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="michelin" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|1|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                    <wheel filename="Wheels/Roues.xml" configId="michelin" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="0>0|0|0" useReprDirection="true" forcePointRatio="0.5" initialCompression="26" suspTravel="0.1" spring="20" damper="50" />
                    </wheel>
                </wheels>
			</wheelConfiguration>
		</wheelConfigurations>
    </wheels>

    <cylindered>
        <movingTools>
        </movingTools>

        <movingParts>
            <movingPart node="0>0|4" referencePoint="2>2" referenceFrame="1>" isActiveDirty="true" limitedAxis="2">
                <dependentPart node="0>0|1"/>
                <dependentPart node="0>0|0"/>
            </movingPart>
            <!--movingPart node="drawbar_xRotAlign" referencePoint="drawbar_xRotAlignRef" referenceFrame="0>3" isActiveDirty="true" limitedAxis="1"/-->

            <movingPart node="0>0|1" wheelIndices="3" referencePoint="1>1" localReferencePoint="0>0|1|1" referenceFrame="1>1" directionThreshold="0.03">
                <dependentPart node="0>0|1|1"/>
            </movingPart>
            <movingPart node="0>0|1|1" referencePoint="1>1" referenceFrame="1>2"/>

            <movingPart node="0>0|0" wheelIndices="4" referencePoint="1>2" localReferencePoint="0>0|0|1" referenceFrame="1>3" directionThreshold="0.03">
                <dependentPart node="0>0|0|1"/>
            </movingPart>
            <movingPart node="0>0|0|1" referencePoint="1>3" referenceFrame="1>4"/>
        </movingParts>
    </cylindered>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="2>0" jointType="trailerLow" rootNode="2>"/>
        </inputAttacherJoints>
        <brakeForce>0.5</brakeForce>
    </attachable>

    <powerTakeOffs>
        <input inputNode="0>1|2" inputAttacherJointIndices="1" ptoAboveAttacher="true" detachNode="0>1|23" />
    </powerTakeOffs>
	
	<designConfigurations>
		<designConfiguration name="No Roof" price="0" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="0>9|2" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
		<designConfiguration name="Roof" price="250" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="0>9|2" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="22785" >
                        <exactFillRootNode node="0>3|1" />
                        <autoAimTargetNode node="0>3|2" startZ="1" endZ="-1" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|0" scrollSpeedDischarge="0 0 0.4" scrollSpeedLoad="0 0 0.1" fillUnitIndex="1" >
                        <deformNode node="0>2|0" />
                        <deformNode node="0>2|1" />
                        <deformNode node="0>2|2" />
                        <deformNode node="0>2|3" />
                    </volume>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="0>3|3" width="0.5" length="1.5" priority="2" minHeight="2.2" />
            </unloadInfo>
        </unloadInfos>

        <heightNodes>
            <heightNode>
                <refNode node="0>4|0" />
                <refNode node="0>4|1" />
                <refNode node="0>4|2" />
                <refNode node="0>4|3" />
                <node node="0>5|2" baseScale="1 0.2 1" scaleAxis="0 0.4 0" />
                <node node="0>5|4" baseScale="0.3 2 4" transAxis="0 1 0" scaleAxis="0 0 0" />
            </heightNode>
        </heightNodes>
    </fillVolume>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" startTipTime="0" />
                        <animationNodes>
                            <animationNode node="0>1|1|0" rotSpeed="200"  rotAxis="1" turnOnFadeTime=".1" turnOffFadeTime="1"/>
                            <animationNode node="0>1|1|1" rotSpeed="200" rotAxis="1" turnOnFadeTime=".1" turnOffFadeTime="1"/>
							<animationNode node="0>1|1|2" rotSpeed="200" rotAxis="1" turnOnFadeTime=".1" turnOffFadeTime="1"/>
							<animationNode node="0>1|1|3" rotSpeed="200" rotAxis="1" turnOnFadeTime=".1" turnOffFadeTime="1"/>
                            <animationNode node="0>9|8" rotSpeed="200" rotAxis="1" turnOnFadeTime=".1" turnOffFadeTime="1"/>
                            <animationNode node="0>1|0|0" rotSpeed="10"  rotAxis="1" shaderComponentScale="0 1 0 0" turnOnFadeTime="1" turnOffFadeTime="1" shaderParameterName="offsetUV" />
                            <animationNode node="0>1|0|1" rotSpeed="10"  rotAxis="1" shaderComponentScale="0 1 0 0" turnOnFadeTime="1" turnOffFadeTime="1" shaderParameterName="offsetUV" />
							<animationNode node="0>1|0|2" rotSpeed="10"  rotAxis="1" shaderComponentScale="0 1 0 0" turnOnFadeTime="1" turnOffFadeTime="1" shaderParameterName="offsetUV" />
                            <animationNode node="0>1|5" rotSpeed="50"  rotAxis="1" shaderComponentScale="0 1 0 0" turnOnFadeTime="1" turnOffFadeTime="1" shaderParameterName="offsetUV" />
                        </animationNodes>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
    <animations>
        <animation name="tipAnimationBack">
            <part node="0>8" startTime="0.0" endTime="3" startRot="0 0 0" endRot="85 0 0"/>
        </animation>
    </animations>

    <dischargeable>
        <dischargeNode node="0>3|4" emptySpeed="1000" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="0.5" length="0.7" />
            <effects>
				<!--effectNode effectNode="0>5|4" effectClass="ParticleEffect" extraDistanceNode="0>3|4"/-->
				<effectNode effectNode="0>5|2" materialType="unloading" materialTypeId="1" fadeTime="2.5" />
				<effectNode effectNode="0>5|3" materialType="smoke"     materialTypeId="1" fadeTime="3.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<lights>
        
        <states>
            <state lightTypes="0"/>
        </states>
        <realLights>
            <low>
			    <light node="0>1|25" lightTypes="0" />
            </low>
			
			
            <high>
			    <light node="0>1|25" lightTypes="0" />
                <brakeLight node="0>1|26"/>
				<turnLightLeft node="0>1|27"/>
				<turnLightRight node="0>1|28"/>
				
            </high>
        </realLights>
       
    </lights>
	
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>  

</vehicle>
