﻿<?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>Transportwagen TP 500 S</name>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <storePacks>
            <storePack>STARTER_TRANSPORT</storePack>
        </storePacks>
        <rotation>0</rotation>
        <image>$data/vehicles/bremerMaschinenbau/transportwagen/store_transportwagen.png</image>
        <price>15000</price>
        <lifetime>600</lifetime>
        <brand>BREMER</brand>
        <category>lowloaders</category>
        <shopTranslationOffset>0 -0.308 0</shopTranslationOffset>
        <shopRotationOffset>-0.3 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>534784</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>96256</indexBufferMemoryUsage>
        <textureMemoryUsage>1638400</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>

        <typeDesc>$l10n_typeDesc_lowLoader</typeDesc>
        <filename>$data/vehicles/bremerMaschinenbau/transportwagen/transportwagen.i3d</filename>
        <size width="3.5" length="8.5" />
        <sounds volumeFactor="1.8"/>
        <components>
            <component centerOfMass="0 0.45 -3" solverIterationCount="10" mass="1357" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="400" />
            <joint node="componentJoint" component1="1" component2="2" rotLimit="0 90 15"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/500_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="axisLeft" driveNode="wheelLeft"   forcePointRatio="0.35" initialCompression="10" suspTravel="0.13" spring="45" damper="50" />
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20" />
                        <steering node="steeringBar" nodeMinTransX="0.05" nodeMaxTransX="-0.05"/>
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/500_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="axisRight" driveNode="wheelRight" forcePointRatio="0.35" initialCompression="10" suspTravel="0.13" spring="45" damper="50" />
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="BKT" saveId="BKT_DEFAULT">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/bkt/ridemaxFL693M/500_45R22_5.xml">
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/bkt/ridemaxFL693M/500_45R22_5.xml"/>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color0>BREMER_BLUE1</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.3 0.3 0.3" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.3 0.3 0.3" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" rootNode="transportwagen_attacher_component2" lowerRotLimitScale="0 0 0" upperRotationOffset="3" lowerRotationOffset="0" needsLowering="false">
                <distanceToGround lower="0.3" upper="0.8" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <lowerAnimation name="lowerAnimation" speed="1" directionOnDetach="1" defaultLowered="true"/>
        <support animationName="support" delayedOnAttach="false" detachAfterAnimation="false"/>
        <steeringAxleAngleScale backwards="true"/>
        <brakeForce force="0.4"/>
    </attachable>

    <lights>
        <sharedLight linkNode="rearLight05_01" filename="$data/shared/assets/lights/lizard/rearLight05_left.xml" />
        <sharedLight linkNode="rearLight05_02" filename="$data/shared/assets/lights/lizard/rearLight05_right.xml" />
        <sharedLight linkNode="yellowRectangle_01_01" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_02" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_03" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_04" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_05" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_06" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_07" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_08" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_09" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="yellowRectangle_01_10" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0 3" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.12 0.2 0.09 0.2"/>
    </licensePlates>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.0" diameter="0.015" straighteningFactor="0.6">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.0" diameter="0.015" straighteningFactor="0.6">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>

        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02"  length="1.0" diameter="0.015" straighteningFactor="0.6">
           <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric01" length="1.0" diameter="0.008" straighteningFactor="0.6">
            <objectChange node="electric01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport_01" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport_02" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <animations>
        <animation name="lowerAnimation">
            <part node="axis" startTime="0" endTime="1" startRot="0 0 0" endRot="33 0 0"/>

            <sound template="hydraulicLayerTone" startTime="0.01" endTime="0.99" volumeScale="1.6" pitchScale="0.7" fadeIn="0.1" fadeOut="0.2"/>
            <sound template="clackVar6"          startTime="0.9"  direction="1"  volumeScale="1.5" pitchScale="0.6" />
            <sound template="cylinderPunch"      startTime="0.9"  direction="1"  volumeScale="0.2" pitchScale="1.9" />
            <sound template="clackVar5"          startTime="0.01" direction="-1" volumeScale="1"   pitchScale="0.6" />
        </animation>
        <animation name="support">
            <part componentJointIndex="1" startTime="0" endTime="0.1" startRotLimit="0 90 15" endRotLimit="0 0 0"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="axis" playSound="true" wheelIndices="1 2">
                <dependentPart node="axisHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="attacherBar" referencePoint="attacherBarRef" referenceFrame="attacherBarRef" isActiveDirty="true" maxUpdateDistance="50" limitedAxis="1"/>
            <movingPart node="attacherTend" referencePoint="attacherTendRef" referenceFrame="attacherTendRef" isActiveDirty="true" maxUpdateDistance="50" limitedAxis="1"/>
            <movingPart node="steeringBarLeft" referencePoint="steeringBarLeftRef" referenceFrame="steeringBarLeftRef" isActiveDirty="true" maxUpdateDistance="50" scaleZ="true"/>
            <movingPart node="steeringBarRight" referencePoint="steeringBarRightRef" referenceFrame="steeringBarRightRef" isActiveDirty="true" maxUpdateDistance="50" scaleZ="true"/>
            <movingPart node="axisHydraulic" referencePoint="axisHydraulicRef" referenceFrame="axisHydraulicRef">
                <translatingPart node="axisHydraulicPunch" />
            </movingPart>
            <movingPart node="attacherBarHydraulic" referencePoint="attacherBarHydraulicRef" referenceFrame="attacherBarHydraulicRef" isActiveDirty="true" maxUpdateDistance="50">
                <translatingPart node="attacherBarHydraulicPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="transportwagen_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" offsetLeft="0.2" />
                    <tensionBelt startNode="startPoint02" endNode="startPoint02End" />
                    <tensionBelt startNode="startPoint03" endNode="startPoint03End" />
                    <tensionBelt startNode="startPoint04" endNode="startPoint04End" />
                    <tensionBelt startNode="startPoint05" endNode="startPoint05End" />
                    <tensionBelt startNode="startPoint06" endNode="startPoint06End" />
                    <tensionBelt startNode="startPoint07" endNode="startPoint07End" />
                    <tensionBelt startNode="startPoint08" endNode="startPoint08End" offsetRight="0.2"/>
                    <sounds>
                        <addBelt    template="beltOpen"  volumeScale="0.7"/>
                        <removeBelt template="beltClose" volumeScale="0.7"/>
                    </sounds>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.6" height="2" length="6.2" lengthOffset="2.7"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-3.95" maxZ="2.3" yOffset="0.3" />
    </foliageBending>

    <baseMaterial>
        <material name="transportWagen_mat" baseNode="transportwagen_vis">
            <shaderParameter name="colorMat0" value="BREMER_BLUE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="transportwagen_main_component1" node="0>" />
        <i3dMapping id="transportwagen_vis" node="0>0" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|0|0" />
        <i3dMapping id="hydraulicIn02_detachedAdapter" node="0>0|0|0|0|0" />
        <i3dMapping id="electric01_detached" node="0>0|0|0|1" />
        <i3dMapping id="electric01_detachedAdapter" node="0>0|0|0|1|0" />
        <i3dMapping id="yellowRectangle_01_01" node="0>0|1|0|0" />
        <i3dMapping id="yellowRectangle_01_02" node="0>0|1|0|1" />
        <i3dMapping id="yellowRectangle_01_03" node="0>0|1|0|2" />
        <i3dMapping id="yellowRectangle_01_04" node="0>0|1|0|3" />
        <i3dMapping id="yellowRectangle_01_05" node="0>0|1|0|4" />
        <i3dMapping id="yellowRectangle_01_06" node="0>0|1|0|5" />
        <i3dMapping id="yellowRectangle_01_07" node="0>0|1|0|6" />
        <i3dMapping id="yellowRectangle_01_08" node="0>0|1|0|7" />
        <i3dMapping id="yellowRectangle_01_09" node="0>0|1|0|8" />
        <i3dMapping id="yellowRectangle_01_10" node="0>0|1|0|9" />
        <i3dMapping id="axis" node="0>0|2|0" />
        <i3dMapping id="wheelChock01" node="0>0|2|0|0|0" />
        <i3dMapping id="wheelChock02" node="0>0|2|0|0|1" />
        <i3dMapping id="chockSupport_01" node="0>0|2|0|0|2" />
        <i3dMapping id="chockSupport_02" node="0>0|2|0|0|3" />
        <i3dMapping id="rearLight05_02" node="0>0|2|0|1|0|0" />
        <i3dMapping id="rearLight05_01" node="0>0|2|0|1|0|1" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|0|1|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|0|1|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|0|1|2|1" />
        <i3dMapping id="axisLeft" node="0>0|2|0|2|0" />
        <i3dMapping id="wheelLeft" node="0>0|2|0|2|0|0|0" />
        <i3dMapping id="steeringBarLeft" node="0>0|2|0|2|0|1" />
        <i3dMapping id="axisRight" node="0>0|2|0|3|0" />
        <i3dMapping id="wheelRight" node="0>0|2|0|3|0|0|0" />
        <i3dMapping id="steeringBarRight" node="0>0|2|0|3|0|1" />
        <i3dMapping id="licensePlateBack" node="0>0|2|0|4" />
        <i3dMapping id="steeringBar" node="0>0|2|0|5" />
        <i3dMapping id="steeringBarLeftRef" node="0>0|2|0|5|0" />
        <i3dMapping id="steeringBarRightRef" node="0>0|2|0|5|1" />
        <i3dMapping id="axisHydraulicRef" node="0>0|2|0|6" />
        <i3dMapping id="axisHydraulic" node="0>0|2|1" />
        <i3dMapping id="axisHydraulicPunch" node="0>0|2|1|0" />
        <i3dMapping id="attacherBar" node="0>0|2|2|0" />
        <i3dMapping id="attacherTend" node="0>0|2|2|0|0|0" />
        <i3dMapping id="attacherBarHydraulicRef" node="0>0|2|2|0|1" />
        <i3dMapping id="hydraulicIn02" node="0>0|2|2|0|2|0" />
        <i3dMapping id="electric01" node="0>0|2|2|0|2|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|2|2|0|2|2" />
        <i3dMapping id="hydraulicOut01" node="0>0|2|2|0|2|3" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|2|2|0|2|4" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|2|2|0|2|4|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|2|2|0|2|5" />
        <i3dMapping id="hydraulicOut01_detachedAdapter" node="0>0|2|2|0|2|5|0" />
        <i3dMapping id="attacherBarHydraulic" node="0>0|2|3" />
        <i3dMapping id="attacherBarHydraulicPunch" node="0>0|2|3|0" />
        <i3dMapping id="tensionBelts" node="0>0|3" />
        <i3dMapping id="startPoint01" node="0>0|3|0" />
        <i3dMapping id="startPoint01End" node="0>0|3|0|0" />
        <i3dMapping id="startPoint02" node="0>0|3|1" />
        <i3dMapping id="startPoint02End" node="0>0|3|1|0" />
        <i3dMapping id="startPoint03" node="0>0|3|2" />
        <i3dMapping id="startPoint03End" node="0>0|3|2|0" />
        <i3dMapping id="startPoint04" node="0>0|3|3" />
        <i3dMapping id="startPoint04End" node="0>0|3|3|0" />
        <i3dMapping id="startPoint05" node="0>0|3|4" />
        <i3dMapping id="startPoint05End" node="0>0|3|4|0" />
        <i3dMapping id="startPoint06" node="0>0|3|5" />
        <i3dMapping id="startPoint06End" node="0>0|3|5|0" />
        <i3dMapping id="startPoint07" node="0>0|3|6" />
        <i3dMapping id="startPoint07End" node="0>0|3|6|0" />
        <i3dMapping id="startPoint08" node="0>0|3|7" />
        <i3dMapping id="startPoint08End" node="0>0|3|7|0" />
        <i3dMapping id="beltActivationTrigger" node="0>0|3|8" />
        <i3dMapping id="componentJoint" node="0>1" />
        <i3dMapping id="transportwagen_attacher_component2" node="1>" />
        <i3dMapping id="attacherJoint" node="1>0" />
        <i3dMapping id="attacherBarRef" node="1>1" />
        <i3dMapping id="attacherTendRef" node="1>2" />
    </i3dMappings>
</vehicle>
