﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="dynamicMountAttacherTrailer" 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>KK 3018/27 H</name>
        <specs>
            <combination xmlFilename="$data/vehicles/lizard/pickup1986/pickup1986.xml" />
            <combination xmlFilename="$data/vehicles/lizard/pickup2017/pickup2017.xml" />
        </specs>
        <functions>
            <function>$l10n_function_palletTransportTrailer</function>
        </functions>
        <image>$data/vehicles/boeckmann/kk301827H/store_kk301827H.png</image>
        <price>12000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BOECKMANN</brand>
        <category>misc</category>
        <shopTranslationOffset>0 -0.015 0</shopTranslationOffset>
        <shopRotationOffset>-0.581 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>973824</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>159232</indexBufferMemoryUsage>
        <textureMemoryUsage>1572864</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>$data/vehicles/boeckmann/kk301827H/kk301827H.i3d</filename>
        <size width="3.2" length="4.7" />
        <components maxMass="2700">
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="616" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="2.5"/>
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="true" hasTireTracks="true" >
                        <physics restLoad="0.3" repr="wheelFrontLeft"  radius="0.3" width="0.22" forcePointRatio="0.5" initialCompression="8" suspTravel="0.10" spring="15" damper="15" frictionScale="2.5" />
                        <tire isCareWheel="false"/>
                        <wheelChock parkingNode="wheelChock04" isInverted="true" filename="$data/shared/assets/wheelChocks/wheelChock04.i3d"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="false" hasTireTracks="true" >
                        <physics restLoad="0.3" repr="wheelFrontRight" radius="0.3" width="0.22" forcePointRatio="0.5" initialCompression="8" suspTravel="0.10" spring="15" damper="15" frictionScale="2.5" />
                        <tire isCareWheel="false"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.3" repr="wheelBackLeft"   radius="0.3" width="0.22" forcePointRatio="0.5" initialCompression="8" suspTravel="0.10" spring="15" damper="15" frictionScale="2.5" yOffset="0.01" />
                        <tire isCareWheel="false"/>
                        <wheelChock filename="$data/shared/assets/wheelChocks/wheelChock04.i3d"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.3" repr="wheelBackRight"  radius="0.3" width="0.22" forcePointRatio="0.5" initialCompression="8" suspTravel="0.10" spring="15" damper="15" frictionScale="2.5" yOffset="0.01" />
                        <tire isCareWheel="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT2">
                <wheels baseConfig="CONTINENTAL_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann">
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann"/>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann">
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann"/>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" needsToolbar="true" needsLowering="false" lowerRotLimitScale="3 3 3" upperRotLimitScale="3 3 3">
                <distanceToGround lower="0.485" upper="0.485" />
                <objectChange node="attacherJoint" translationActive="0 0.41 2.171" translationInactive="0 0.474 2.171"/>
            </inputAttacherJoint>
            <inputAttacherJoint node="attacherJoint" jointType="trailerLow" attacherHeight="0.47" />
        </inputAttacherJoints>
        <brakeForce force="0.06"/>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1 2" type="electric"  node="electric"  length="1" diameter="0.008" straighteningFactor="0.5">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electric_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="rearLight33_left" filename="$data/shared/assets/lights/lizard/rearLight33_left.xml" />
        <sharedLight linkNode="rearLight33_right" filename="$data/shared/assets/lights/lizard/rearLight33_right.xml" />
        <sharedLight linkNode="frontLightRectangle_01_01" filename="$data/shared/assets/lights/lizard/frontLight06White.xml" />
        <sharedLight linkNode="frontLightRectangle_01_02" filename="$data/shared/assets/lights/lizard/frontLight06White.xml" />
        <sharedLight linkNode="plateNumberLight02_01" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />
        <sharedLight linkNode="plateNumberLight02_02" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

        <sharedLight linkNode="yellowRound_02_01" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_02_02" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_02_03" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_02_04" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />

        <realLights>
            <high>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <light node="backLightsHigh1"       lightTypes="0"/>
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLightHigh1" />
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="ELONGATED" placementArea="0.06 0.28 0.07 0.28"/>
    </licensePlates>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="-1" posDirectionText="$l10n_action_closeDoor" negDirectionText="$l10n_action_openDoor" dynamicMountMinLimit="0" dynamicMountMaxLimit="0.01">
                    <foldingPart animationName="folding" speedScale="0.75" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <cylindered>
        <movingTools>
            <movingTool node="handbrake01">
                <dependentPart node="handbrake02"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="handbrake02" referencePoint="handbrake02Ref" referenceFrame="handbrake02Ref" isActiveDirty="true" maxUpdateDistance="20" scaleZ="true"/>
        </movingParts>
    </cylindered>

    <animations>
        <animation name="moveSupport">
            <part node="supportCol"       startTime="0.0" endTime="0.5" startTrans="0 0.2 0" endTrans="0 -0.155 0" />
            <part node="supportArm"       startTime="0.0" endTime="0.5" startTrans="0 0 0" endTrans="0 -0.155 0" />
            <part node="supportArmPart"   startTime="0.0" endTime="0.5" startRot="70 0 0" endRot="0 0 0" />
            <part node="supportArmHandle" startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="0 623 0" />
            <part node="supportBack"      startTime="0.0" endTime="0.3" startRot="0 0 0" endRot="90 0 0" />
            <part node="supportBackPart"  startTime="0.0" endTime="0.3" startTrans="0 0 0" endTrans="0 0 0.18" />
            <part node="supportFront"     startTime="0.0" endTime="0.3" startRot="0 0 0" endRot="-90 0 0" />
            <part node="supportFrontPart" startTime="0.0" endTime="0.3" startTrans="0 0 0" endTrans="0 0 -0.18" />
            <part node="handbrake01"      startTime="0.0" endTime="0.3" startRot="0 0 0" endRot="-50 0 0" />

            <sound template="clackVar4"   startTime="0.1"  direction="-1" volumeScale="0.6" pitchScale="3"   linkNode="attacherJoint"/>
            <sound template="clackVar4"   startTime="0.3"  direction="1"  volumeScale="0.6" pitchScale="1.5" linkNode="attacherJoint"/>
            <sound template="clackVar6"   startTime="0.3"  direction="1"  volumeScale="0.4" pitchScale="1.5" linkNode="attacherJoint"/>
        </animation>
        <animation name="folding">
            <part node="doorLeft"  startTime="0.0" endTime="2.0" startRot="0 0 0" endRot="0 -245 0" />
            <part node="doorRight" startTime="0.0" endTime="2.0" startRot="0 0 0" endRot="0 245 0" />

            <sound template="hingeMedium"     startTime="0.1"  direction="1"  volumeScale="0.6" pitchScale="0.8" />
            <sound template="hingeMedium"     startTime="1.8"  direction="-1" volumeScale="0.6" pitchScale="0.7" />
            <sound template="metalDoorsOpen"  startTime="1.99" direction="1"  volumeScale="0.5" pitchScale="1"/>
            <sound template="metalDoorsClose" startTime="0.1"  direction="-1" volumeScale="0.9" pitchScale="1"/>
            <sound template="clackVar6"       startTime="0.1"  direction="-1" volumeScale="0.5" pitchScale="1.1"/>
            <sound template="thudVar2"        startTime="0.1"  direction="-1" volumeScale="0.6" pitchScale="2"/>
            <sound template="clackVar4"       startTime="0.1"  direction="-1" volumeScale="0.6" pitchScale="3"/>
            <sound template="metalOpen"       startTime="0.01" direction="1"  volumeScale="0.5" pitchScale="3"/>
        </animation>
    </animations>

    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="kk301827H_main_component1" jointNode="kk301827H_main_component1" forceAcceleration="500" mountType="FIX_ATTACH" timeToMount="-1"/>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.4" height="2.5" length="3.5" lengthOffset="0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.22" maxX="1.22" minZ="-2.25" maxZ="1" yOffset="0.4" />
        <bendingNode minX="-0.35" maxX="0.35" minZ="1" maxZ="2.2" yOffset="0.4" />
    </foliageBending>

    <baseMaterial>
        <material name="kk301827H_mat" baseNode="kk301827H_vis">
            <shaderParameter name="colorMat0" value="0.8550 0.8550 0.8550 0"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="kk301827H_main_component1" node="0>" />
        <i3dMapping id="kk301827H_vis" node="0>0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|0|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|2" />
        <i3dMapping id="wheelBackRight" node="0>0|0|3" />
        <i3dMapping id="wheelChock04" node="0>0|0|4" />
        <i3dMapping id="yellowRound_02_01" node="0>0|1|0|0" />
        <i3dMapping id="yellowRound_02_02" node="0>0|1|0|1" />
        <i3dMapping id="yellowRound_02_03" node="0>0|1|0|2" />
        <i3dMapping id="yellowRound_02_04" node="0>0|1|0|3" />
        <i3dMapping id="rearLight33_left" node="0>0|1|0|4" />
        <i3dMapping id="rearLight33_right" node="0>0|1|0|5" />
        <i3dMapping id="frontLightRectangle_01_01" node="0>0|1|0|6" />
        <i3dMapping id="frontLightRectangle_01_02" node="0>0|1|0|7" />
        <i3dMapping id="plateNumberLight02_01" node="0>0|1|0|8" />
        <i3dMapping id="plateNumberLight02_02" node="0>0|1|0|9" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|2|0" />
        <i3dMapping id="backLightsHigh1" node="0>0|1|3|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|4|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|4|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|1|5|0" />
        <i3dMapping id="attacherJoint" node="0>0|2|0" />
        <i3dMapping id="supportArm" node="0>0|2|1" />
        <i3dMapping id="supportArmPart" node="0>0|2|1|0" />
        <i3dMapping id="supportArmHandle" node="0>0|2|2" />
        <i3dMapping id="electric" node="0>0|2|3|0" />
        <i3dMapping id="electric_detached" node="0>0|2|3|0|0" />
        <i3dMapping id="electric_connector" node="0>0|2|3|0|0|0" />
        <i3dMapping id="supportCol" node="0>0|2|4" />
        <i3dMapping id="doorLeft" node="0>0|3|0" />
        <i3dMapping id="doorRight" node="0>0|3|1" />
        <i3dMapping id="supportFront" node="0>0|3|2" />
        <i3dMapping id="supportFrontPart" node="0>0|3|2|0" />
        <i3dMapping id="supportBack" node="0>0|3|3" />
        <i3dMapping id="supportBackPart" node="0>0|3|3|0" />
        <i3dMapping id="handbrake01" node="0>0|3|4" />
        <i3dMapping id="handbrake02" node="0>0|3|4|0" />
        <i3dMapping id="handbrake02Ref" node="0>0|3|5" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|4" />
        <i3dMapping id="licensePlateBack" node="0>0|5" />
    </i3dMappings>
</vehicle>
