<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="pickupConveyorBelt" 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>S-710</name>
        <functions>
            <function>$l10n_function_beltSystem</function>
        </functions>
        <image>$data/vehicles/lizard/s710/store_s710.png</image>
        <price>5000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>belts</category>
        <shopTranslationOffset>0 0.135 0</shopTranslationOffset>
        <shopRotationOffset>2.154 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>103168</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>32000</indexBufferMemoryUsage>
        <textureMemoryUsage>327680</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_belt</typeDesc>
        <filename>$data/vehicles/lizard/s710/s710.i3d</filename>
        <size width="1.7" length="7.6" height="2.25" lengthOffset="0.33"/>
        <components>
            <component centerOfMass="0 0.35 -0.7" solverIterationCount="10" mass="500"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="OTHER"/>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels autoRotateBackSpeed="2">
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/215_75R17_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.2" repr="wheelRight" forcePointRatio="0.3" initialCompression="12" suspTravel="0.15" spring="10" damper="10" yOffset="0.02"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/215_75R17_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.2" repr="wheelLeft"  forcePointRatio="0.3" initialCompression="12" suspTravel="0.15" spring="10" damper="10" yOffset="0.02"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T510/4_00R6.xml" isLeft="true">
                        <physics rotSpeed="1" restLoad="0.2" repr="wheelFrontRot" driveNode="wheelFront" forcePointRatio="0.3" initialCompression="12" suspTravel="0.15" spring="10" damper="10" yOffset="0.005"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="50" rotMax="50" rotCenterWheel1="1" rotCenterWheel2="2"/>
        </ackermannSteeringConfigurations>

        <hubs>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true" scale="0.17 0.17 0.17" offset="-0.004"/>
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.17 0.17 0.17" offset="-0.004"/>
        </hubs>
    </wheels>

    <attachable allowFoldingWhileAttached="false">
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.55"/>
            <inputAttacherJoint node="attacherJoint" jointType="trailerCar"/>
            <inputAttacherJoint node="attacherJointX" jointType="conveyor" forceSelectionOnAttach="false" allowsJointTransLimitMovement="true"/>
        </inputAttacherJoints>
        <brakeForce force="0.1"/>
    </attachable>

    <enterable isTabbable="false">
        <exitPoint node="exitPoint"/>
        <enterReferenceNode node="exitPoint"/>

        <cameras>
            <camera node="camera1" rotatable="true" rotateNode="cameraRotationNode" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="25" translation="0 0 4.6" rotation="-23 180 0">
                <raycastNode node="raycastNode"/>
            </camera>
        </cameras>
    </enterable>

    <drivable>
        <sounds>
            <waterSplash template="waterSplash01" />
        </sounds>
        <cruiseControl minSpeed="0.01"/>
    </drivable>

    <motorized forceSpeedHudDisplay="true">
        <motorConfigurations>
            <motorConfiguration name="S-710" price="0" hp="5">
                <motor torqueScale="0.1" minRpm="1000" maxRpm="2200" maxForwardSpeed="5" maxBackwardSpeed="5" brakeForce="0.05" lowBrakeForceScale="0.05" lowBrakeForceSpeedLimit="0.1" dampingRateScale="0.12">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="160" maxForwardGearRatio="330" minBackwardGearRatio="160" maxBackwardGearRatio="330" />
            </motorConfiguration>
        </motorConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="2.3" wheelIndex1="1" wheelIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
    </motorized>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="0">
                    <foldingPart animationName="folding" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="drawbar_vis" startTime="0" endTime="1.5" startRot="0 0 0" endRot="-90 0 0"/>

            <sound template="hingeMedium" startTime="0.01" endTime="1.49"  volumeScale="1.2" pitchScale="0.6" fadeOut="0.2"/>
            <sound template="clackVar6"   startTime="1.49"  direction="1"  volumeScale="1.2" pitchScale="1.2" fadeOut="0.2"/>
            <sound template="sheetImp02"  startTime="1.49"  direction="1"  volumeScale="0.5" pitchScale="0.8" fadeOut="0.2"/>
            <sound template="clackVar6"   startTime="0.01"  direction="-1" volumeScale="1"   pitchScale="1.4" fadeOut="0.2"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="attacherBar">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseSpeedFactor="0.5" iconName="DRAWBAR_ROTATE_X"/>
                <rotation rotSpeed="20" rotAcceleration="100" rotMax="20" rotMin="-25" rotationAxis="1"/>
                <inputAttacherJoint value="true"/>
            </movingTool>
            <movingTool node="drawbar_vis" playSound="true">
                <rotation rotSpeed="15" rotAcceleration="20" rotMax="0" rotMin="-90" rotationAxis="1"/>
                <inputAttacherJoint value="true"/>
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="hingeMedium" pitchScale="0.7" volumeScale="0.5" linkNode="attacherBar" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="attacherBar"/>
            <actionSound template="clackVar6"   pitchScale="1"   volumeScale="0.6" linkNode="attacherBar" actionNames="TOOL_MOVE_END_POS_LIMIT "    nodes="attacherBar"/>
            <actionSound template="sheetImp02"  pitchScale="0.5" volumeScale="0.5" linkNode="attacherBar" actionNames="TOOL_MOVE_END_POS_LIMIT "    nodes="attacherBar"/>
            <actionSound template="clackVar6"   pitchScale="0.8" volumeScale="0.5" linkNode="attacherBar" actionNames="TOOL_MOVE_END_NEG_LIMIT "    nodes="attacherBar"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits fillTypeChangeThreshold="1">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="5000" showOnHud="false" showInShop="false" updateMass="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable stopDischargeOnDeactivate="false">
        <dischargeNode node="pipeRaycastNode" emptySpeed="1000" fillUnitIndex="1" canStartDischargeAutomatically="true" >
            <info width="0.4" length="0.4" />

            <effects>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect" materialType="pipe" materialTypeId="1" maxBending="1" delay="0" shapeScaleSpread="1 1 0 0"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <conveyorBelt dischargeNodeIndex="1" >
        <animationNodes>
            <animationNode node="belt_vis" rotSpeed="20"  rotAxis="1" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
        </animationNodes>

        <effects>
            <effectNode effectClass="ConveyorBeltEffect" effectNode="mesh" materialType="belt" delay="0" fadeTime="2" speed="0.9" scrollLength="1" scrollSpeed="0.82" />
        </effects>

        <sounds>
            <belt template="rollbeltLoop"/>
        </sounds>
    </conveyorBelt>

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" width="8" length="14" yOffset="-0.5" zOffset="0" needsMovement="false" needsActivation="true" fillLitersPerSecond="5000" needsAttacherVehicle="false">
            <movingToolActivation node="drawbar_vis" isInverted="true" openFactor="0.4" />
        </shovelNode>

        <shovelNode node="pickUpNode" fillUnitIndex="1" width="8" length="14" yOffset="-0.5" zOffset="8" needsMovement="false" needsActivation="true" fillLitersPerSecond="5000" needsAttacherVehicle="false">
            <movingToolActivation node="drawbar_vis" isInverted="true" openFactor="0.4" />
        </shovelNode>

        <shovelNode node="pickUpNode" fillUnitIndex="1" width="8" length="14" yOffset="-0.5" zOffset="16" needsMovement="false" needsActivation="true" fillLitersPerSecond="5000" needsAttacherVehicle="false">
            <movingToolActivation node="drawbar_vis" isInverted="true" openFactor="0.4" />
        </shovelNode>

        <shovelNode node="pickUpNode" fillUnitIndex="1" width="8" length="14" yOffset="-0.5" zOffset="24" needsMovement="false" needsActivation="true" fillLitersPerSecond="5000" needsAttacherVehicle="false">
            <movingToolActivation node="drawbar_vis" isInverted="true" openFactor="0.4" />
        </shovelNode>
    </shovel>

    <turnOnVehicle turnOffOnDeactivate="false"/>

    <tipOccluder>
        <occlusionArea start="start" width="width" height="height"/>
    </tipOccluder>

    <ai supportsAIJobs="false">
        <agentAttachment useSize="true"/>
    </ai>

    <foliageBending>
        <bendingNode wheelIndices="1 2" minZ="-2" maxZ="2.35" yOffset="0.05"/>
        <bendingNode minX="-0.5" maxX="0.5" minZ="2.35" maxZ="3" yOffset="0.05"/>
        <bendingNode minX="-0.3" maxX="0.3" minZ="3" maxZ="3.75" yOffset="0.05"/>
    </foliageBending>

    <baseColorConfigurations useDefaultColors="true" defaultColorIndex="14">
        <material materialSlotName="s710Main_mat"/>
    </baseColorConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="s710_main_component1" node="0>" />
        <i3dMapping id="wheelRight" node="0>0|0" />
        <i3dMapping id="wheelLeft" node="0>0|1" />
        <i3dMapping id="wheelFrontRot" node="0>0|2" />
        <i3dMapping id="wheelFront" node="0>0|2|0" />
        <i3dMapping id="drawbar_vis" node="0>1|0" />
        <i3dMapping id="attacherJoint" node="0>1|0|0" />
        <i3dMapping id="cameraRotationNode" node="0>2|0" />
        <i3dMapping id="camera1" node="0>2|0|0" />
        <i3dMapping id="raycastNode" node="0>2|1" />
        <i3dMapping id="exitPoint" node="0>3" />
        <i3dMapping id="pipeRaycastNode" node="0>4|0" />
        <i3dMapping id="pickUpNode" node="0>4|1" />
        <i3dMapping id="mesh" node="0>4|2|0" />
        <i3dMapping id="pipeEffect" node="0>4|2|2" />
        <i3dMapping id="belt_vis" node="0>4|3" />
        <i3dMapping id="start" node="0>4|4|0" />
        <i3dMapping id="width" node="0>4|4|1" />
        <i3dMapping id="height" node="0>4|4|2" />
        <i3dMapping id="trailerTrigger" node="0>4|5" />
        <i3dMapping id="s710_vis" node="0>5" />
        <i3dMapping id="attacherBar" node="0>6|0" />
        <i3dMapping id="attacherJointX" node="0>6|0|0" />
    </i3dMappings>
</vehicle>
