<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer">
    <annotation>Copyright (C) Unlimited Modding II All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>C&J Tilt Deck Trailer</en></name>
        <functions>
            <function>C&J Tilt Deck Trailer</function>
        </functions>
        <image>Store.dds</image>
        <price>14500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Trailers</brand>
        <category>CandJ_Mods</category>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>UMTiltDeck.i3d</filename>
        <size width="3.5" length="11" lengthOffset="0"/>
        <components>
            <component centerOfMass="0 0.28 0.33" solverIterationCount="10" mass="1165" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

	<wheels>
        <wheelConfigurations>
            <!-- 245/70 R 17,5 -->
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
				<wheels>
                    <wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.4" restLoad="0.9" repr="0>0|0"   driveNode="0>0|0|0"   transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="175" damper="70" frictionScale="1.5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.4" restLoad="0.9" repr="0>0|1"   driveNode="0>0|1|0"   transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="175" damper="70" frictionScale="1.5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
						<physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.4" restLoad="0.9" repr="0>0|2"   driveNode="0>0|2|0"   transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="175" damper="70" frictionScale="1.5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.4" restLoad="0.9" repr="0>0|3"   driveNode="0>0|3|0"   transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="175" damper="70" frictionScale="1.5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.4" restLoad="0.9" repr="0>0|3"   driveNode="0>0|4|0"   transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="175" damper="70" frictionScale="1.5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.4" restLoad="0.9" repr="0>0|3"   driveNode="0>0|5|0"   transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="175" damper="70" frictionScale="1.5" mass="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
	</wheels>
	
	<!--- <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>7|0|0" jointType="semitrailer" upperRotationOffset="0"/>
            <inputAttacherJoint node="0>7|2|0" jointType="semitrailer" upperRotationOffset="0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce>0.5</brakeForce>
    </attachable> --->
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>7|0|0" jointType="semitrailer" upperRotationOffset="0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce>0.5</brakeForce>
        <airConsumer usage="0.2" />
    
	</attachable>
	
	<attacherJoints>
            <attacherJoint node="0>1|3|7" jointType="semitrailer" canTurnOnImplement="true" allowsJointLimitMovement="true" hardAttach="true" allowsLowering="false" lowerRotLimit="0 0 0">
                    <schema position="1 1" rotation="0" invertX="false" />
					<attachSound template="ATTACH_01" linkNode="0>" />
			</attacherJoint>
			<attacherJoint node="0>2|2" jointType="semitrailer" canTurnOnImplement="true" allowsJointLimitMovement="true" hardAttach="true" allowsLowering="false" lowerRotLimit="0 0 0">
                    <schema position="1 1" rotation="0" invertX="false" />
					<attachSound template="ATTACH_01" linkNode="0>" />
			</attacherJoint>	
    </attacherJoints>
	
    <lights>
        <states>
            <state lightTypes="0" />
			<state lightTypes="0 1 " />
			<state lightTypes="0 1 2 " />
			<state lightTypes="0 1 2 3" />
        </states>
		
        <realLights>
            <low>
				<light node="0>1|3|5|3|0"     lightTypes="0" />
                <light node="0>1|3|5|3|4"     lightTypes="0" />
				<light node="0>1|3|5|3|5"     lightTypes="0" />
                <light node="0>1|3|5|3|6"     lightTypes="0" />
				<light node="0>5|1|1"     lightTypes="0" />
                <light node="0>1|3|5|3|7"     lightTypes="0" />
				<light node="0>1|3|5|3|8"     lightTypes="0" />
                <light node="0>1|3|5|3|9"     lightTypes="0" />
				<light node="0>5|1|2"     lightTypes="0" />
				<light node="0>1|3|5|3|3"       lightTypes="0" />
				<light node="0>1|3|5|3|10"       lightTypes="0" />
				<light node="0>1|3|5|3|11"       lightTypes="0" />
				<light node="0>5|1|0" 		lightTypes="3"  />
            </low>
            <high>
				<light node="0>1|3|5|3|0"     lightTypes="0" />
                <light node="0>1|3|5|3|4"     lightTypes="0" />
				<light node="0>1|3|5|3|5"     lightTypes="0" />
                <light node="0>1|3|5|3|6"     lightTypes="0" />
				<light node="0>5|1|1"     lightTypes="0" />
                <light node="0>1|3|5|3|7"     lightTypes="0" />
				<light node="0>1|3|5|3|8"     lightTypes="0" />
                <light node="0>1|3|5|3|9"     lightTypes="0" />
				<light node="0>5|1|2"     lightTypes="0" />
				<light node="0>1|3|5|3|3"       lightTypes="0" />
				<light node="0>1|3|5|3|10"       lightTypes="0" />
				<light node="0>1|3|5|3|11"       lightTypes="0" />
				<light node="0>5|1|0" 		lightTypes="3"  />
                <turnLightLeft node="0>1|3|5|3|1" />
                <turnLightRight node="0>1|3|5|3|2" />
            </high>
        </realLights>
		
        <defaultLights>
		<!--- TiltDeckLights --->
            <defaultLight shaderNode="0>1|3|5|0|0|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|1|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|2|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|3|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|4|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|5|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|6|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|7|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|0|8|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|2|0|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>1|3|5|2|1|0" lightTypes="0" intensity="1.6"/>
		<!--- UpperDeckLights --->
            <defaultLight shaderNode="0>5|0|0|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>5|0|1|0" lightTypes="0" intensity="1.6"/>
            <defaultLight shaderNode="0>2|4|1" lightTypes="3" intensity="96"/>
		<!--- LicensePlateLights --->
            <defaultLight shaderNode="0>1|3|1|2" lightTypes="0" intensity="1.85"/>
            <defaultLight shaderNode="0>1|3|1|3" lightTypes="0" intensity="1.85"/>
            <defaultLight shaderNode="0>1|3|1|4" lightTypes="0" intensity="1.85"/>
        </defaultLights>
        <turnLights>
            <turnLightLeft shaderNode="0>1|3|5|1|0|0" intensity="1.55"/>
            <turnLightRight shaderNode="0>1|3|5|1|1|0" intensity="1.55"/>
        </turnLights>
        <brakeLights>
            <brakeLight shaderNode="0>1|3|5|2|0|0" intensity="13.45"/>
            <brakeLight shaderNode="0>1|3|5|2|1|0" intensity="13.45"/>
        </brakeLights>
    </lights>
	
    <cylindered>
        <movingTools>
            <movingTool node="0>0">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.4" iconName="FRONTLOADER_ARM_ROTATE" />
					<translation transSpeed="0.8" transMax="-1.545" transMin="-2.6" translationAxis="3"/>
            </movingTool>
            <movingTool node="0>7|0" playSound="false"> 
                <controls axis="AXIS_CRANE_ARM" invertAxis="true" mouseSpeedFactor="0.5" iconName="CRANE_ARM1_ROTATE_Y" />
				<inputAttacherJoint value="true" />
					<translation transSpeed="0.9" transAcceleration="8" transMax="0.5" transMin="0.015" translationAxis="2" />
			</movingTool>
        </movingTools>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>
	
	<foldable>
        <foldingParts>
			<foldingPart animationName="ramps" speedScale="1.23"/>
        </foldingParts>
    </foldable>
	
	<designConfigurations>
        <designConfiguration name="Light Deck">
			<objectChange node="0>1|3|8" visibilityActive="true" />
			<objectChange node="0>2|3" visibilityActive="true" />
			<objectChange node="0>2|0" visibilityActive="false" />
			<objectChange node="0>1|3|2" visibilityActive="false" />
        </designConfiguration>
	    <designConfiguration name="Dark Deck" price="1000">
			<objectChange node="0>1|3|8" visibilityActive="false" />
			<objectChange node="0>2|3" visibilityActive="false" />
			<objectChange node="0>2|0" visibilityActive="true" />
			<objectChange node="0>1|3|2" visibilityActive="true" />
        </designConfiguration>
	 </designConfigurations>

	<trailer>
        <trailerConfigurations title="Lighting">
            <trailerConfiguration name="No Lightbar" price="0">
				<objectChange node="0>2|4" visibilityActive="false" />
				<objectChange node="0>5|1|0" visibilityActive="false" />
			</trailerConfiguration>
			<trailerConfiguration name="Lightbar" price="250">
				<objectChange node="0>2|4" visibilityActive="true" />
			</trailerConfiguration>
		</trailerConfigurations>
	</trailer>
	
    <animations>
        <animation name="ramps">
            <part node="0>1|3" startTime="0" duration="3.9" endRot="-9.65 0 0" startRot="0 0 0"/>
        </animation>
        <animation name="moveSupport">
            <part node="0>1|4" startTime="0" endTime="0.31" startTrans="0 0.01 5.618" endTrans="0 -0.354 5.618"/>
        </animation>
    </animations>
	
    <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="0>1|3|4" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.3">
                    <tensionBelt startNode="0>1|3|4|1" endNode="0>1|3|4|1|0"/>
                    <tensionBelt startNode="0>1|3|4|2" endNode="0>1|3|4|2|0"/>
                    <tensionBelt startNode="0>1|3|4|3" endNode="0>1|3|4|3|0"/>
                    <tensionBelt startNode="0>1|3|4|4" endNode="0>1|3|4|4|0"/>
                    <tensionBelt startNode="0>1|3|4|5" endNode="0>1|3|4|5|0"/>
                    <tensionBelt startNode="0>1|3|4|6" endNode="0>1|3|4|6|0"/>
                    <tensionBelt startNode="0>1|3|4|7" endNode="0>1|3|4|7|0"/>
                    <tensionBelt startNode="0>1|3|4|8" endNode="0>1|3|4|8|0"/>
                    <tensionBelt startNode="0>1|3|4|9" endNode="0>1|3|4|9|0"/>
                    <tensionBelt startNode="0>1|3|4|10" endNode="0>1|3|4|10|0"/>
                    <tensionBelt startNode="0>1|3|4|11" endNode="0>1|3|4|11|0"/>
                    <tensionBelt startNode="0>1|3|4|12" endNode="0>1|3|4|12|0"/>
                    <tensionBelt startNode="0>1|3|4|13" endNode="0>1|3|4|13|0"/>
                    <tensionBelt startNode="0>4|1" endNode="0>4|1|0"/>
                    <tensionBelt startNode="0>4|2" endNode="0>4|2|0"/>
                    <tensionBelt startNode="0>4|3" endNode="0>4|3|0"/>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0.05" />
    </foliageBending>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
	
</vehicle>
