<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer" 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>Trémie</name>
        <specs>
            <weight ignore="true"/>
        </specs>
        <image>store_royer.dds</image>
        <price>950</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ROYER</brand>
        <category>misc</category>
        <vertexBufferMemoryUsage>302848</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>71168</indexBufferMemoryUsage>
        <textureMemoryUsage>1048576</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_pallet</typeDesc>
        <filename>tremie.i3d</filename>
        <size width="2.9" height="2.5" length="1.7" lengthOffset="0.1"/>
        <components maxMass="850">
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="300" />
        </components>
    </base>

    <configurationSets>
        <configurationSet  name="$l10n_configuration_capacityX" params="2000" isDefault="true">
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="1" />
        </configurationSet>
        <configurationSet  name="$l10n_configuration_capacityX" params="2500">
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="2" />
        </configurationSet>
    </configurationSets>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="2000" >
                        <exactFillRootNode node="0>3|0" />
                    </fillUnit>
                </fillUnits>
                <objectChange node="0>1|1" visibilityActive="false" visibilityInactive="true"/>

                <objectChange node="0>5|4" compoundChildActive="false" /> 
                <objectChange node="0>5|5" compoundChildActive="false" />
                <objectChange node="0>5|6" compoundChildActive="false" />
                <objectChange node="0>5|7" compoundChildActive="false" />
            </fillUnitConfiguration>
            <fillUnitConfiguration price="500">
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="2500" >
                        <exactFillRootNode node="0>3|6" />
                    </fillUnit>
                </fillUnits>
                <objectChange node="0>1|1" visibilityActive="true" visibilityInactive="false"/>

                <objectChange node="0>5|4" compoundChildActive="true" /> 
                <objectChange node="0>5|5" compoundChildActive="true" />
                <objectChange node="0>5|6" compoundChildActive="true" />
                <objectChange node="0>5|7" compoundChildActive="true" />
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|2" maxDelta="0.12" maxAllowedHeapAngle="15" fillUnitIndex="1" retessellateTop="true"/>
                </volumes>
            </fillVolumeConfiguration>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|5" maxDelta="0.12" maxAllowedHeapAngle="15" fillUnitIndex="1" retessellateTop="true"/>
                </volumes>
            </fillVolumeConfiguration>

        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="0>3|1" width="0.1" length="0.1" minHeight="0.5"/>
            </unloadInfo>
        </unloadInfos>

        <heightNodes>
            <heightNode fillVolumeIndex="1">
                <refNode node="0>3|3" />
                <refNode node="0>3|4" />
            </heightNode>
        </heightNodes>
    </fillVolume>

    <dischargeable>
        <dischargeNode node="0>6|0" emptySpeed="500" fillUnitIndex="1" maxDistance="6" canStartDischargeAutomatically="true">
            <raycast useWorldNegYDirection="true" />
            <info width="0.4" length="0.4" />
            <activationTrigger node="0>6|3" />
            <effects>
                <effectNode effectClass="PipeEffect" effectNode="0>6|1|0"  materialType="pipe"           delay="0"   maxBending="1"  positionUpdateNodes="0>6|1|1"/>
                <effectNode                          effectNode="0>6|1|1" materialType="unloadingSmoke" delay="0.1" alignToWorldY="true"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <animations>
        <animation name="tipAnimationGrainDoor">
            <part node="0>2|0|0" startTime="0" endTime="1" startTrans="-0.001 0.206 0.618" endTrans="-0.001 0.508 0.618" />

            <sound template="metalClose" startTime="0.0"  direction="-1" volumeScale="0.8" pitchScale="1.8"/>
            <sound template="metalClose" startTime="0.0"  direction="1" volumeScale="0.8" pitchScale="1.8"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="0>2|0|0">
                <dependentPart node="0>2|0|1"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>2|0|1" localReferencePoint="0>2|0|1|0" referencePoint="0>2|0|0|0" referenceFrame="0>2|0|2">
                <dependentPart node="0>2|0|1|0" />
            </movingPart>
            <movingPart node="0>2|0|1|0" referencePoint="0>2|0|0|0" referenceFrame="0>2|0|0|0"/>
        </movingParts>
        <sounds>
        </sounds>
    </cylindered>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBackGrainDoor" dischargeNodeIndex="1" >
                        <animation name="tipAnimationGrainDoor" speedScale="1.0" startTipTime="0.02"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <fillTriggerVehicle triggerNode="0>6|2" fillUnitIndex="1" litersPerSecond="200"/>

    <dynamicMount triggerNode="0>7|0" />

    <designConfigurations>
        <designConfiguration name="$l10n_extension" price="0">
            <objectChange node="0>1|0" visibilityActive="false" visibilityInactive="true" />
        </designConfiguration>
        <designConfiguration name="$l10n_extension1" price="50">
            <objectChange node="0>1|0" visibilityActive="true" visibilityInactive="false" />
        </designConfiguration>
    </designConfigurations> 



    <ai>
        <areaMarkers leftNode="0>4|0" rightNode="0>4|1" backNode="0>4|2" />
        <allowTurnBackward value="false" />
        <agentAttachment width="2.9" height="2.5" length="1.7" lengthOffset="0.1"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1" maxX="1" minZ="-0.8" maxZ="0.8" yOffset="0.45" />
    </foliageBending>
    
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

</vehicle>
