<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="semiTrailerFront" 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>H550 Neck</name>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <image>$data/vehicles/brandt/h550/store_h550Gooseneck.png</image>
        <price>10000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BRANDT</brand>
        <category>lowloaders</category>
        <shopTranslationOffset>0 0.239 0</shopTranslationOffset>
        <shopRotationOffset>-5.024 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_lowLoader</typeDesc>
        <filename>h550Neck.i3d</filename>
        <size width="2.65" length="4.3" height="2.3" lengthOffset="-0.7"/>
        <components>
            <component centerOfMass="0 0.9 -0.9" solverIterationCount="10" mass="2400"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TRAILER"/>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJointSemi" jointType="semitrailer" attacherHeight="1.20" upperRotationOffset="0">
				<objectChange node="gooseneck_main_component1" centerOfMassActive="0 0.9 -0.9"	centerOfMassInactive="0 0 -2.25"/>	
			</inputAttacherJoint>				
            <inputAttacherJoint node="0>0|6|0|0|0" jointType="semitrailer" attacherHeight="1.20" upperRotationOffset="0">	
				<objectChange node="gooseneck_main_component1" centerOfMassActive="0 0.9 -0.9"	centerOfMassInactive="0 0 -2.25"/>		
			</inputAttacherJoint>				
        </inputAttacherJoints>
        <support animationName="supportAnim" delayedOnAttach="false" detachAnimationTime="0.6"/>
    </attachable>

    <attacherJoints>
        <attacherJointConfigurations>
            <attacherJointConfiguration>
                <attacherJoint node="attacherJointGooseneck" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="0 0 0">
                    <schema position="1 0"/>
                    <subType name="gooseneck" subTypeShowWarning="false"/>
                </attacherJoint>				
            </attacherJointConfiguration>
        </attacherJointConfigurations>
    </attacherJoints>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric"               length="2.0" diameter="0.008" isTwoPointHose="true" outgoingAdapter="DEFAULT" socket="electric"/>
        <hose inputAttacherJointIndices="1" type="airDoubleRed" node="airDoubleRed"       length="2.0" diameter="0.015" isTwoPointHose="true" outgoingAdapter="DEFAULT" socket="air_red"/>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airDoubleYellow" length="2.0" diameter="0.015" isTwoPointHose="true" outgoingAdapter="DEFAULT" socket="air_yellow"/>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01"       length="2.0" diameter="0.015" isTwoPointHose="true" outgoingAdapter="DEFAULT" socket="hydraulic01"/>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01"     length="2.0" diameter="0.015" isTwoPointHose="true" outgoingAdapter="DEFAULT" socket="hydraulic01"/>
		
        <hose inputAttacherJointIndices="2" type="electric" node="electric"               length="3" diameter="0.008" isWorldSpaceHose="true" straighteningFactor="0.1"  outgoingAdapter="DEFAULT" socket="electric"/>
        <hose inputAttacherJointIndices="2" type="airDoubleRed" node="airDoubleRed"       length="3" diameter="0.015" isWorldSpaceHose="true" straighteningFactor="0.1"  outgoingAdapter="DEFAULT" socket="air_red"/>
        <hose inputAttacherJointIndices="2" type="airDoubleYellow" node="airDoubleYellow" length="3" diameter="0.015" isWorldSpaceHose="true" straighteningFactor="0.1"  outgoingAdapter="DEFAULT" socket="air_yellow"/>
        <hose inputAttacherJointIndices="2" type="hydraulicIn" node="hydraulicIn01"       length="3" diameter="0.015" isWorldSpaceHose="true" straighteningFactor="0.1"  outgoingAdapter="DEFAULT" socket="hydraulic01"/>
        <hose inputAttacherJointIndices="2" type="hydraulicOut" node="hydraulicOut01"     length="3" diameter="0.015" isWorldSpaceHose="true" straighteningFactor="0.1"  outgoingAdapter="DEFAULT" socket="hydraulic01"/>		
    </connectionHoses>

    <lights>
        <sharedLight linkNode="hellaWorkingLightSquare_01_01" filename="$data/shared/assets/lights/hella/hellaWorkingLight05.xml" lightTypes="1">
            <rotationNode name="rotationNode1" rotation="-15 0 0"/>
        </sharedLight>
        <sharedLight linkNode="hellaWorkingLightSquare_01_02" filename="$data/shared/assets/lights/hella/hellaWorkingLight05.xml" lightTypes="1">
            <rotationNode name="rotationNode1" rotation="-15 0 0"/>
        </sharedLight>

        <realLights>
            <high>
                <light node="workLightBackHigh" lightTypes="1"/>
            </high>
        </realLights>

        <staticLightCompounds>
            <staticLightCompound>
                <node node="sideMarker_static" intensity="5"/>
                <node node="sideMarkerGlass_static" intensity="1"/>
            </staticLightCompound>
        </staticLightCompounds>
    </lights>

    <foldable>
	    <foldingConfigurations>
            <foldingConfiguration>
				<foldingParts posDirectionText="Fold Neck" negDirectionText="Unfold Neck" requiresPower="false">
					<foldingPart animationName="Flip" speedScale="1" />		
				</foldingParts>
			</foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="supportAnim">
            <part node="gooseneckLift"     startTime="0.3" endTime="1.5" startRot="0 0 0" endRot="6 0 0"/>
            <part node="supportCollision"  startTime="0.0" endTime="0.5" startTrans="0.000 0.387 -2.160" endTrans="0.000 0.135 -2.160"/>
			<sound template="clackVar5" startTime="0.1" direction="0" volumeScale="3.2" pitchScale="0.7" />
			<sound template="hydraulicOpen02" startTime="0.2" endTime="1.0" direction="0" volumeScale="4.7" pitchScale="1.2" fadeIn="0.1" fadeOut="0.1"/>
        </animation>
        <animation name="Flip">
            <part node="0>0|6" startTime="0.0" endTime="3" startRot="90 0 0" endRot="270 0 0"/>	
            <part node="0>0|7" startTime="0.0" endTime="3" startRot="0 0 0" endRot="84 0 0"/>				
        </animation>	
        <animation name="NECKLIFT">
            <part node="0>0|2|1" startTime="0.0" endTime="3" startRot="2 0 0" endRot="-5 0 0"/>			
        </animation>		
    </animations>

    <cylindered>
        <movingTools>
			<controlGroups>
				<controlGroup name="Neck" />
			</controlGroups>
			<movingTool node="0>0|2|1" >
				<attacherJoint jointIndices="1"/>
				<controls groupIndex="1" axis="AXIS_NECKLIFT" invertAxis="true" mouseSpeedFactor="0.5" />
				<animation animSpeed="1" animAcceleration="1" animName="NECKLIFT" animStartTime="0" />
			</movingTool>	
			
            <movingTool node="0>0|6">
                <inputAttacherJoint jointIndices="2"/>
            </movingTool>			
        </movingTools>

        <movingParts>
			<movingPart node="0>0|2|0" referencePoint="0>0|2|1|1" referenceFrame="0>0|2|1|1" isActiveDirty="true" maxUpdateDistance="80">
				<translatingPart node="0>0|2|0|0" />
			</movingPart> 
			<movingPart node="0>0|8|0" referencePoint="0>0|7|1|0" referenceFrame="0>0|7|1|0" isActiveDirty="true" maxUpdateDistance="80">
				<translatingPart node="0>0|8|0|0" />
			</movingPart> 			
			<movingPart node="0>0|6|3|0" referencePoint="0>0|7|0" referenceFrame="0>0|7|0" scaleZ="true" isActiveDirty="true" maxUpdateDistance="80">
			</movingPart> 			
        </movingParts>
    </cylindered>

    <baseColorConfigurations useDefaultColors="true">
        <baseColorConfiguration materialTemplateName="BRANDT_GREY1"/>
		<baseColorConfiguration materialTemplateName="VOLVO_RED1"/>
		<baseColorConfiguration materialTemplateName="VOLVO_BLACK1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_PURPLE1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_BM_GREEN1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_YELLOW1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_GREY1"/>
        <material materialSlotName="PaintColor"/>		
    </baseColorConfigurations>	

    <foliageBending>
        <bendingNode minX="-0.62" maxX="0.62" minZ="-2.9" maxZ="-0.9" yOffset="0.3"/>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-0.9" maxZ="1.5" yOffset="0.9"/>
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attacherJointSemi" rotCenterPosition="0 -12.05" width="3" height="1.95" length="16.5" lengthOffset="5"/>
    </ai>

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

    <i3dMappings>
        <i3dMapping id="gooseneck_main_component1" node="0>" />
        <i3dMapping id="gooseneck_vis" node="0>0" />
        <i3dMapping id="attacherPin" node="0>0|0|0" />		
        <i3dMapping id="attacherJointSemi" node="0>0|0|0|0" />
        <i3dMapping id="electric" node="0>0|0|1|0" />
        <i3dMapping id="airDoubleRed" node="0>0|0|1|1" />
        <i3dMapping id="airDoubleYellow" node="0>0|0|1|2" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|1|3" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|1|4" />
        <i3dMapping id="supportCollision" node="0>0|0|2" />
        <i3dMapping id="hellaWorkingLightSquare_01_01" node="0>0|1|0|0" />
        <i3dMapping id="hellaWorkingLightSquare_01_02" node="0>0|1|0|1" />
        <i3dMapping id="sideMarker_static" node="0>0|1|1|0" />
        <i3dMapping id="sideMarkerGlass_static" node="0>0|1|1|1" />
        <i3dMapping id="workLightBackHigh" node="0>0|1|2|0" />
        <i3dMapping id="gooseneckLiftHydraulic" node="0>0|2|0" />
        <i3dMapping id="gooseneckLiftHydraulicPunch" node="0>0|2|0|0" />
        <i3dMapping id="gooseneckLift" node="0>0|2|1" />
        <i3dMapping id="attacherJointGooseneck" node="0>0|2|1|0" />
        <i3dMapping id="gooseneckLiftHydraulicRef" node="0>0|2|1|1" />
        <i3dMapping id="gooseneckLiftLock" node="0>0|2|2" />
        <i3dMapping id="gooseneckLiftLockPart01RefFrame" node="0>0|2|2|0" />
        <i3dMapping id="gooseneckLiftLockPart01" node="0>0|2|2|0|0" />
        <i3dMapping id="gooseneckLiftLockPart02" node="0>0|2|2|0|0|0" />
        <i3dMapping id="gooseneckLiftLockHydraulicRef" node="0>0|2|2|1" />
        <i3dMapping id="gooseneckLiftLockHydraulic" node="0>0|2|3" />
        <i3dMapping id="gooseneckLiftLockHydraulicPunch" node="0>0|2|3|0" />
        <i3dMapping id="gooseneckLiftLockPart01Ref" node="0>0|3|0" />
        <i3dMapping id="metalPlanks" node="0>0|4|3" />
    </i3dMappings>
</vehicle>
