﻿<?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>Steel Drop Deck</name>
        <specs>
            <combination filterCategory="trucks" />
            <combination xmlFilename="$data/vehicles/krampe/dolly10L/dolly10L.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <image>$data/vehicles/demco/steelDropDeck/store_steelDropDeck.png</image>
        <price>28500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DEMCO</brand>
        <category>lowloaders</category>
        <shopTranslationOffset>0 0.14 0</shopTranslationOffset>
        <shopRotationOffset>-0.143 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1525760</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>248064</indexBufferMemoryUsage>
        <textureMemoryUsage>2031616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_lowLoader</typeDesc>
        <filename>$data/vehicles/demco/steelDropDeck/steelDropDeck.i3d</filename>
        <size width="3.8" length="17" lengthOffset="0.55" />
        <components>
            <component centerOfMass="0 0.7 -1" solverIterationCount="10" mass="6736" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="200"/>
            <joint component1="1" component2="2" node="componentJointRamp" rotLimit="0 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="LIZARD" saveId="LIZARD_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dual" isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.6" repr="wheelFrontLeft"  forcePointRatio="0.5" initialCompression="10" suspTravel="0.055" spring="250" damper="80" yOffset="-0.0162" />
                        <additionalWheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dualRim" isLeft="true" offset="0.1" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dual" isLeft="false" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.6" repr="wheelFrontRight" forcePointRatio="0.5" initialCompression="10" suspTravel="0.055" spring="250" damper="80" yOffset="-0.0162" />
                        <additionalWheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dualRim" isLeft="false" offset="0.1" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dual" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.6" repr="wheelBackLeft"   forcePointRatio="0.5" initialCompression="10" suspTravel="0.055" spring="250" damper="80" yOffset="-0.0106" />
                        <additionalWheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dualRim" isLeft="true" offset="0.1" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dual" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.6" repr="wheelBackRight"  forcePointRatio="0.5" initialCompression="10" suspTravel="0.055" spring="250" damper="80" yOffset="-0.0106" />
                        <additionalWheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/_13R22_5.xml" configId="dualRim" isLeft="false" offset="0.1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="semitrailer" attacherHeight="1.33" />
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.8"/>
    </attachable>

    <lights>
        <realLights>
            <high>
                <light node="backLightsHigh1"   lightTypes="0" />
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="defaultLight_static" lightTypes="0" />
            <defaultLight shaderNode="brakelight_static"   lightTypes="0" />
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="brakelight_static" />
        </brakeLights>

        <turnLights>
            <turnLightLeft  shaderNode="turnLightsLeft_static" />
            <turnLightRight shaderNode="turnLightsRight_static" />
        </turnLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.13 0.18 0.04 0.18"/>
    </licensePlates>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" >
                    <foldingPart animationName="folding" speedScale="1.0" />
                </foldingParts>
              </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="airDoubleRed"    node="airRed"    length="1.3" diameter="0.015" straighteningFactor="1" outgoingAdapter="DEFAULT" socket="air_red"/>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airYellow" length="1.3" diameter="0.015" straighteningFactor="1" outgoingAdapter="DEFAULT" socket="air_yellow"/>
        <hose inputAttacherJointIndices="1" type="electric"        node="electric"  length="1.3" diameter="0.008" straighteningFactor="1" outgoingAdapter="DEFAULT">
            <objectChange node="electricCover" rotationActive="-70 0 0" rotationInactive="0 0 0"/>
        </hose>
    </connectionHoses>

    <animations>
        <animation name="folding">
            <part node="rampPart" startTime="0.00" endTime="3.00" startRot="0 0 0" endRot="60 0 0" />
            <part node="componentJointRamp" startTime="0.00" endTime="3.00" startRot="16.497 180 0" endRot="-103.8 180 0" />
            <part componentJointIndex="1"   startTime="0.00" endTime="3.00" startRotLimit="20 0 0" endRotLimit="0 0 0" />

            <sound template="hydraulicLayerTone" startTime="0.01" endTime="2.99" volumeScale="0.9" pitchScale="1.1" fadeIn="0.1"/>
            <sound template="clackVar6"          startTime="0.01" direction="-1" volumeScale="1.5" pitchScale="0.6"/>
            <sound template="sheetImp02"         startTime="0.01" direction="-1" volumeScale="1.4" pitchScale="1.4"/>
            <sound template="clackVar5"          startTime="2.99" direction="1"  volumeScale="1.5" pitchScale="0.9"/>
            <sound template="sheetImp02"         startTime="2.99" direction="1"  volumeScale="3"   pitchScale="1.4"/>
        </animation>
        <animation name="moveSupport">
            <part node="supportCrankPart"  startTime="0.00" endTime="0.05" startRot="0 0 0" endRot="0 0 15" tangentType="spline" />
            <part node="supportCrank"      startTime="0.05" endTime="0.10" startRot="0 0 0" endRot="-15 0 0" tangentType="spline" />
            <part node="supportCrank"      startTime="0.10" endTime="0.30" startRot="-15 0 0" endRot="0 0 0" tangentType="spline" />
            <part node="supportCrankPart"  startTime="0.10" endTime="0.30" startRot="0 0 15" endRot="0 0 -90" tangentType="spline" />
            <part node="supportCrank"      startTime="0.30" endTime="1.00" startRot="0 0 0" endRot="1080 0 0" tangentType="spline" />
            <part node="supportArm"        startTime="0.30" endTime="0.90" startTrans="0.000 0.632 5.563" endTrans="0.000 0.23 5.563" tangentType="spline" />
            <part node="supportArmColPart" startTime="0.30" endTime="0.90" startTrans="0.000 0.900 5.561" endTrans="0.000 0.13 5.561" tangentType="spline" />
            <part node="supportCrankPart"  startTime="0.90" endTime="1.10" startRot="0 0 -90" endRot="0 0 -45" tangentType="spline" />

            <sound template="clackVar6" startTime="0.7" direction="1"  volumeScale="1.5" pitchScale="1.1" linkNode="attacherJoint"/>
            <sound template="clackVar6" startTime="0.4" direction="-1" volumeScale="1.5" pitchScale="0.9" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
          <movingTool node="componentJointRamp">
            <componentJoint index="1" />
            <dependentPart node="ramp" />
          </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="ramp" referencePoint="rampRef" referenceFrame="rampRef" isActiveDirty="true" maxUpdateDistance="300" />
         </movingParts>
    </cylindered>

    <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="steelDropDeck_main_component1" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="startPoint01" endNode="startPoint01End" >
                        <intersectionNode node="tensionBelt01Intersection01"/>
                        <intersectionNode node="tensionBelt01Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint02" endNode="startPoint02End" >
                        <intersectionNode node="tensionBelt02Intersection01"/>
                        <intersectionNode node="tensionBelt02Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint03" endNode="startPoint03End" >
                        <intersectionNode node="tensionBelt03Intersection01"/>
                        <intersectionNode node="tensionBelt03Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint04" endNode="startPoint04End" >
                        <intersectionNode node="tensionBelt04Intersection01"/>
                        <intersectionNode node="tensionBelt04Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint05" endNode="startPoint05End" >
                        <intersectionNode node="tensionBelt05Intersection01"/>
                        <intersectionNode node="tensionBelt05Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint06" endNode="startPoint06End" >
                        <intersectionNode node="tensionBelt06Intersection01"/>
                        <intersectionNode node="tensionBelt06Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint07" endNode="startPoint07End" >
                        <intersectionNode node="tensionBelt07Intersection01"/>
                        <intersectionNode node="tensionBelt07Intersection02"/>
                    </tensionBelt>
                    <tensionBelt startNode="startPoint08" endNode="startPoint08End" >
                        <intersectionNode node="tensionBelt08Intersection01"/>
                        <intersectionNode node="tensionBelt08Intersection02"/>
                    </tensionBelt>
                    <sounds>
                        <addBelt    template="beltOpen" />
                        <removeBelt template="beltClose" />
                    </sounds>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-7.75" maxZ="6.8" yOffset="0.6" />
        <bendingNode minX="-1.3" maxX="1.3" minZ="6.7" maxZ="8.8" yOffset="1.2" />
    </foliageBending>

    <baseMaterial>
        <material name="steelDropDeck_mat" baseNode="steelDropDeck_vis">
            <shaderParameter name="colorMat0" value="DEMCO_WHITE1"/>
            <shaderParameter name="colorMat1" value="DEMCO_ORANGE1"/>
        </material>
    </baseMaterial>

    <designConfigurations>
        <designConfiguration name="$l10n_configuration_valueDefault" price="0">
            <objectChange node="frontBulkhead" visibilityActive="false" />
            <objectChange node="frontBulkheadColPart" compoundChildActive="false" />
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_extension" price="2000">
            <objectChange node="frontBulkhead" visibilityActive="true" />
            <objectChange node="frontBulkheadColPart" compoundChildActive="true" />
        </designConfiguration>
    </designConfigurations>

    <rimColorConfigurations useDefaultColors="false" >
        <rimColorConfiguration name="$l10n_ui_colorWhite"  color="SHARED_WHITE2" material="1" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorSilver" color="SHARED_WHITE1" material="18" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorBlack"  color="SHARED_DA_METAL_BLACK" material="1" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorChrome" color="SHARED_WHITE2" material="3" price="2000"/>
    </rimColorConfigurations>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.6" height="4" length="16.5" lengthOffset="4.3"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="steelDropDeck_main_component1" node="0>" />
        <i3dMapping id="steelDropDeck_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportCrank" node="0>0|0|1|0" />
        <i3dMapping id="supportCrankPart" node="0>0|0|1|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|1" />
        <i3dMapping id="supportArmColPart" node="0>0|0|1|2" />
        <i3dMapping id="electricCover" node="0>0|0|2|0" />
        <i3dMapping id="electric" node="0>0|0|2|1" />
        <i3dMapping id="airYellow" node="0>0|0|2|2" />
        <i3dMapping id="airRed" node="0>0|0|2|3" />
        <i3dMapping id="wheelFrontLeft" node="0>0|1|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|1|2" />
        <i3dMapping id="wheelBackRight" node="0>0|1|3" />
        <i3dMapping id="defaultLight_static" node="0>0|2|0|1" />
        <i3dMapping id="brakelight_static" node="0>0|2|0|3" />
        <i3dMapping id="turnLightsLeft_static" node="0>0|2|0|5" />
        <i3dMapping id="turnLightsRight_static" node="0>0|2|0|7" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|2|1" />
        <i3dMapping id="rampPart" node="0>0|3|0" />
        <i3dMapping id="ramp" node="0>0|3|0|0" />
        <i3dMapping id="licensePlateBack" node="0>0|3|0|0|0" />
        <i3dMapping id="componentJointRamp" node="0>0|3|0|1" />
        <i3dMapping id="tensionBelts" node="0>0|4" />
        <i3dMapping id="startPoint01" node="0>0|4|0" />
        <i3dMapping id="tensionBelt01Intersection01" node="0>0|4|0|0" />
        <i3dMapping id="tensionBelt01Intersection02" node="0>0|4|0|1" />
        <i3dMapping id="startPoint01End" node="0>0|4|0|2" />
        <i3dMapping id="startPoint02" node="0>0|4|1" />
        <i3dMapping id="tensionBelt02Intersection01" node="0>0|4|1|0" />
        <i3dMapping id="tensionBelt02Intersection02" node="0>0|4|1|1" />
        <i3dMapping id="startPoint02End" node="0>0|4|1|2" />
        <i3dMapping id="startPoint03" node="0>0|4|2" />
        <i3dMapping id="tensionBelt03Intersection01" node="0>0|4|2|0" />
        <i3dMapping id="tensionBelt03Intersection02" node="0>0|4|2|1" />
        <i3dMapping id="startPoint03End" node="0>0|4|2|2" />
        <i3dMapping id="startPoint04" node="0>0|4|3" />
        <i3dMapping id="tensionBelt04Intersection01" node="0>0|4|3|0" />
        <i3dMapping id="tensionBelt04Intersection02" node="0>0|4|3|1" />
        <i3dMapping id="startPoint04End" node="0>0|4|3|2" />
        <i3dMapping id="startPoint05" node="0>0|4|4" />
        <i3dMapping id="tensionBelt05Intersection01" node="0>0|4|4|0" />
        <i3dMapping id="tensionBelt05Intersection02" node="0>0|4|4|1" />
        <i3dMapping id="startPoint05End" node="0>0|4|4|2" />
        <i3dMapping id="startPoint06" node="0>0|4|5" />
        <i3dMapping id="tensionBelt06Intersection01" node="0>0|4|5|0" />
        <i3dMapping id="tensionBelt06Intersection02" node="0>0|4|5|1" />
        <i3dMapping id="startPoint06End" node="0>0|4|5|2" />
        <i3dMapping id="startPoint07" node="0>0|4|6" />
        <i3dMapping id="tensionBelt07Intersection01" node="0>0|4|6|0" />
        <i3dMapping id="tensionBelt07Intersection02" node="0>0|4|6|1" />
        <i3dMapping id="startPoint07End" node="0>0|4|6|2" />
        <i3dMapping id="startPoint08" node="0>0|4|7" />
        <i3dMapping id="tensionBelt08Intersection01" node="0>0|4|7|0" />
        <i3dMapping id="tensionBelt08Intersection02" node="0>0|4|7|1" />
        <i3dMapping id="startPoint08End" node="0>0|4|7|2" />
        <i3dMapping id="beltActivationTrigger" node="0>0|4|8" />
        <i3dMapping id="frontBulkhead" node="0>0|5|0" />
        <i3dMapping id="frontBulkheadColPart" node="0>0|5|0|0" />
        <i3dMapping id="steelDropDeck_ramp_component2" node="1>" />
        <i3dMapping id="rampRef" node="1>0" />
    </i3dMappings>
</vehicle>
