<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="augerWagon">
    <annotation>Copyright (C) Rafael, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>J&amp;M 875 Auger Wagon</en></name>
        <functions>
            <function>$l10n_function_augerWagon</function>
        </functions>
        <image>store.dds</image>
        <price>31500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JM</brand>
        <category>augerWagons</category>
        <vertexBufferMemoryUsage>1394576</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>217656</indexBufferMemoryUsage>
        <textureMemoryUsage>14680448</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_augerWagon</typeDesc>
        <filename>JM875.i3d</filename>
        <size width="3.5" length="8.0"/>
        <components>
            <component centerOfMass="0 .5 0.3" solverIterationCount="10" mass="9300" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="DEFAULT_IMPLEMENT"/>
    </base>
	<baseMaterial>
        <material name="JMMAIN" baseNode="0>4|0|5">
            <shaderParameter name="colorMat0" value="0.03 0.24 0.04 0"/>
        </material>
        <material name="kolorDetali" baseNode="0>4|0|6">
            <shaderParameter name="colorMat0" value="0.03 0.24 0.04 0"/>
        </material>
        <material name="kolorTandem" baseNode="0>4|1|0">
            <shaderParameter name="colorMat0" value="0.03 0.24 0.04 0"/>
        </material>
        <material name="kolorSlimak" baseNode="0>4|0|0">
            <shaderParameter name="colorMat0" value="0.03 0.24 0.04 0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="7850" useDefaultColors="false" defaultColorIndex="0">
        <baseMaterialConfiguration name="J&amp;M Original Green" color="0.03 0.24 0.04 1" />
        <baseMaterialConfiguration name="J&amp;M Original Red" color="0.54 0.01 0.01 1" />
        <baseMaterialConfiguration name="J&amp;M Original Blue" color="0.02 0.15 0.48 1" />	
        <material name="JMMAIN" shaderParameter="colorMat0" />
        <material name="kolorDetali" shaderParameter="colorMat0" />
        <material name="kolorTandem" shaderParameter="colorMat0" />
        <material name="kolorSlimak" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>	
    <rimColorConfigurations>
        <rimColorConfiguration color="1 1 1 1"/>	
        <rimColorConfiguration price="100" color="0.25 0 0 1"/>
        <rimColorConfiguration price="100" color="0 0.113 0 1"/>
        <rimColorConfiguration price="100" color="0 0.1 0.9 1"/>
        <rimColorConfiguration price="100" color="0.2 0.15 0.1 1"/>
        <rimColorConfiguration price="100" color="1 0.465 0 1"/>		
        <colorNode node="0>12|0"/>
    </rimColorConfigurations>
    <designConfigurations>
        <designConfiguration name="no beacon" price="0"/>
        <designConfiguration name="yes beacon" price="300">
            <objectChange node="0>4|0|10" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>4|8|0|4" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>			
    </designConfigurations>		
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="Standard" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TM900/800_70R38.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics repr="0>0" forcePointRatio="0.2" radius="1.032" width="0.8" mass="0.364" suspTravel="0.08" spring="180" damper="50" frictionScale="2" tireTrackAtlasIndex="0"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TM900/800_70R38.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics repr="0>1" forcePointRatio="0.2" radius="1.032" width="0.8" mass="0.364" suspTravel="0.08" spring="180" damper="50" frictionScale="2" tireTrackAtlasIndex="0"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="TM1000" price="1000">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TM1000/750_75R46.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics repr="0>0" forcePointRatio="0.2" radius="1.148" width="0.75" mass="0.408" suspTravel="0.08" spring="180" damper="50" frictionScale="2" tireTrackAtlasIndex="0"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TM1000/750_75R46.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics repr="0>1" forcePointRatio="0.2" radius="1.148" width="0.75" mass="0.408" suspTravel="0.08" spring="180" damper="50" frictionScale="2" tireTrackAtlasIndex="0"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>			
            <wheelConfiguration name="TM900" price="2000">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TM900/900_60R42.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics repr="0>0" forcePointRatio="0.2" radius="1.07" width="0.9" mass="0.425" suspTravel="0.08" spring="180" damper="50" frictionScale="2" tireTrackAtlasIndex="0"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TM900/900_60R42.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics repr="0>1" forcePointRatio="0.2" radius="1.07" width="0.9" mass="0.425" suspTravel="0.08" spring="180" damper="50" frictionScale="2" tireTrackAtlasIndex="0"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <hubs>
            <color0>0 0 0 1</color0>
            <hub linkNode="0>0"  filename="$data/shared/wheels/hubs/hub_n10_13.xml" isLeft="true"  scale="0.280 0.610 0.610" />
            <hub linkNode="0>1" filename="$data/shared/wheels/hubs/hub_n10_13.xml" isLeft="false" scale="0.280 0.610 0.610" />				
        </hubs>		
    </wheels>
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>4|6" jointType="trailerLow" allowsLowering="false"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce>2</brakeForce>
    </attachable>
    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>4|0|9|0"  length="1" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>4|0|9|0|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>4|0|9|1" length="1" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>4|0|9|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>4|0|9|2"  length="1" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>4|0|9|2|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>4|0|9|3" length="1" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>4|0|9|3|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="0>4|0|9|4"  length="1" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>4|0|9|4|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>	
    <powerTakeOffs>
        <input inputNode="0>4|2" inputAttacherJointIndices="1" aboveAttacher="true"/>
    </powerTakeOffs>
    <powerConsumer ptoRpm="540" neededMaxPtoPower="25"/>
    <lights>
	        <realLights>
            <high>
                <light node="0>4|8|1|0" lightTypes="0"/>
                <turnLightLeft node="0>4|8|2|0"/>
                <turnLightRight node="0>4|8|2|1"/>
                <brakeLight node="0>4|8|1|0"/>
            </high>
        </realLights>
        <sharedLight linkNode="0>4|8|0|0" filename="lights/rearLightOvalRed_01.xml" />
        <sharedLight linkNode="0>4|8|0|1" filename="lights/rearLightOvalRed_01.xml" />
        <sharedLight linkNode="0>4|8|0|3" filename="lights/rearLightCircleOrange_01_left.xml" />
        <sharedLight linkNode="0>4|8|0|2" filename="lights/rearLightCircleOrange_01_right.xml" />		
        <beaconLights>
            <beaconLight node="0>4|8|0|4" filename="lights/beaconLight02.xml"/>
        </beaconLights>		
    </lights>
    <animations>
        <animation name="moveSupport">
            <part node="0>5|1" startTime="0" endTime="3" startTrans="0.004 -0.173 -0.01" endTrans="0.004 -0.46 -0.01"/>
            <part node="0>5|0" startTime="0" endTime="3" startRot="0 0 0" endRot="1800 0 0"/>
            <part node="0>5" startTime="0" endTime=".5" startRot="75 -14 0" endRot="0 -14 0"/>
        </animation>
        <animation name="pipeAnimation">
            <part node="0>4|1" startTime="0" duration="8" startRot="-69.917 -26.446 135.929" endRot="0 0 0"/>			
        </animation>		
    </animations>
    <cylindered>
        <movingTools>
            <movingTool node="0>4|1|0|0" playSound="true">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.7"/>
                <rotation rotSpeed="20" rotAcceleration="300" rotMax="22" rotMin="-10" rotationAxis="1" startRot="0"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>4|9" referencePoint="0>4|1|1" referenceFrame="0>4|1|1" isActiveDirty="true" playSound="true">
                <translatingPart node="0>4|9|0"/>
            </movingPart>
            <movingPart node="0>4|1|0|2" referencePoint="0>4|1|0|0|0|8" referenceFrame="0>4|1|0|0|0|8" isActiveDirty="true" playSound="true">
                <translatingPart node="0>4|1|0|2|0"/>
            </movingPart>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="augerWagon" capacity="52500">
                        <exactFillRootNode node="0>4|7|0"/>
                        <fillRootNode node="0>"/>
                        <fillMassNode node="0>"/>
                        <autoAimTargetNode node="0>4|7|1"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>4|3|0" maxDelta="0.5" maxAllowedHeapAngle="20" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo fillVolumeIndex="1" >
                <node node="0>4|0|5" width="1" length="1"/>
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
    <dischargeable>
			<dischargeNode node="0>4|1|0|0|0|1|0|0" emptySpeed="880" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="0.3" length="0.3" useRaycastHitPosition="true"/>            <raycast maxDistance="6"/>
            <effects>
                <effectNode effectClass="PipeEffect" effectNode="0>4|1|0|0|0|1|1|0" materialType="pipe" materialTypeId="1" delay="0" maxBending="0.8" extraDistance="0.7"/>
            </effects>
        </dischargeNode>
    </dischargeable>
    <pipe unloadInfoIndex="1">
        <dischargeNode index="1" />
        <states num="2" unloading="2" />
        <animation name="pipeAnimation" speedScale="2.5" />
        <unloadingTriggers>
            <unloadingTrigger node="0>4|7|2" />
        </unloadingTriggers>
    </pipe>

    <washable dirtDuration="80" washDuration="1" workMultiplier="2"/>
</vehicle>
