<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="horseCarriage">
	<storeData>
        <name>$l10n_shopItem_horseDolly</name>
        <functions>
            <function>$l10n_function_horseDolly</function>
        </functions>
        <image>store/store_horseDolly.png</image>
        <price>1200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LSFMHA</brand>
        <category>hofBergmannHorseAddonPack</category>
    </storeData>

	<base>
        <typeDesc>$l10n_typeDesc_horseDolly</typeDesc>
        <filename>horseDolly.i3d</filename>
        <size width="3" length="8.0"/>
        <components>
         	<component centerOfMass="0 0 0.2" solverIterationCount="10" mass="1200"/>
		</components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
		<showInVehicleMenu>true</showInVehicleMenu>
        <mapHotspot type="TRAILER" />
    </base>

	<wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="10.0" speedDependentRotateBack="false" hasSurfaceSounds="false">
					<wheel isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0" repr="wheelFrontLeft" radius="0.43" width="0.1" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="1.5" mass="2" maxWheelSink="0"/>
						<tire tireTrackAtlasIndex="4" />
                    </wheel>
					
					<wheel isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0" repr="wheelFrontRight" radius="0.43" width="0.1" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="1.5" mass="2" maxWheelSink="0"/>
						<tire tireTrackAtlasIndex="4" />
                    </wheel>
				</wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" rootNode="horseDolly_main_component1" jointType="trailer"> <!-- attacherHeight="0.555" -->
				<subType name="horseAttacher3" showWarning="false"/>
				<objectChange node="strap_connectNodeLeft" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="strap_connectNodeRight" visibilityActive="true" visibilityInactive="false"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
        <!-- <support animationName="brakeAnimation"/> -->
        <brakeForce force="0.04" maxForce="0.08" maxForceMass="800"/>
    </attachable>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" hoseType="RUBBER" node="strap_connectNodeLeft" 	length="0.001" diameter="0.028" straighteningFactor="0.01" materialTemplateName="SHARED_BLACK5"/>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" hoseType="RUBBER" node="strap_connectNodeRight" length="0.001" diameter="0.028" straighteningFactor="0.01" materialTemplateName="SHARED_BLACK5"/>
	</connectionHoses>
	
	<attacherJoints comboDuration="0">
		<attacherJointConfigurations>
			<attacherJointConfiguration name="$l10n_ui_yes" price="0" >
				<attacherJoint node="attacherJointBack" jointType="implement" allowsLowering="false" isDefaultLowered="true" upperRotationOffset="0" moveTime="2.5" comboTime="1" > <!--  -->
					<!-- <distanceToGround lower="0.26" upper="1.19" />  --> 
					<!-- <rotationNode node="attacherJointBackRot" lowerRotation="-12 0 0" upperRotation="20 0 0" />
					<rotationNode2 node="attacherJointBackRot2" upperRotation2="-10 0 0"   lowerRotation2="5 0 0" lowerTransLimit="0 0.5 0" lowerRotationLimit="0 0 20"/>
					<bottomArm rotationNode="attacherJointBackArmBottom" translationNode="bottomArmBack" referenceNode="bottomArmBackRef" zScale="-1" startRotation="-17 0 0" /> -->
					<!-- <topArm baseNode="attacherJointBackArmTop" filename="$data/shared/assets/upperLinks/walterscheid01.i3d" color="FENDT_BLACK1" zScale="-1" /> -->
					<schema position="1 0" rotation="0" invertX="false" />
					<subType name="horseAttacherImplement" showWarning="false"/>
					
					<objectChange node="attacherBoltRailDetached" visibilityActive="false" visibilityInactive="true"/>
					<objectChange node="attacherBoltRailAttached" visibilityActive="true" visibilityInactive="false"/>
					<objectChange node="threePointAdapter" visibilityActive="true" visibilityInactive="false"/>
				</attacherJoint>
				
				<attacherJoint node="attacherJointTrailer" jointType="trailer" lowerRotLimit="10 62 80" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" >
					<schema position="1 0" rotation="0" invertX="false" />
				</attacherJoint>
			</attacherJointConfiguration>
		</attacherJointConfigurations>
		<sounds>
			<attach template="trailerPunchEndNeg" />
			<hydraulic template="hydraulicOpen01" />
		</sounds>
	</attacherJoints>
	
	<cylindered>
        <movingTools>
            <movingTool node="attacherMechanic1" playSound="false">
				<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.5" iconName="DRAWBAR_ROTATE_X"/>
				<rotation rotSpeed="20" rotAcceleration="150" rotationAxis="1" rotMax="45" rotMin="0" startRot="20" />
				<attacherJoint ignoreWarning="false" jointIndices="1 2"/>
            </movingTool>
        </movingTools>
    </cylindered>

	<ai supportsAIJobs="false" >
		<agentAttachment />
	</ai>

	<foliageBending>
        <bendingNode minX="-0.5" maxX="0.5" minZ="1.0" maxZ="-1.085" yOffset="0.4" />
    </foliageBending>
	
	<!-- <baseMaterial>
        <material name="threePointAdapter_mat" baseNode="threePointAdapter">
            <shaderParameter name="colorMat0" value="SHARED_BLACK1"/>
        </material>
    </baseMaterial> -->
	
	<realDirtColor disable="true" />
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
		<i3dMapping id="horseDolly_main_component1" node="0>" />
		<i3dMapping id="wheelFrontLeft" node="0>0|0" />
		<i3dMapping id="wheelFrontRight" node="0>0|1" />
		<i3dMapping id="attacherBarAttached" node="0>1|1" />
		<i3dMapping id="strap_connectNodeLeft" node="0>1|1|0" />
		<i3dMapping id="strap_connectNodeRight" node="0>1|1|1" />
		<i3dMapping id="attacherBarDetached" node="0>1|2" />
		<i3dMapping id="attacherJoint" node="0>1|3" />
		<i3dMapping id="horseDollyBase" node="0>1|4" />
		<i3dMapping id="driveShaft" node="0>1|4|0" />
		<i3dMapping id="attacherBolt1" node="0>1|5" />
		<i3dMapping id="pto" node="0>1|6" />
		<i3dMapping id="attacherMechanic1" node="0>1|7" />
		<i3dMapping id="plowRail" node="0>1|7|0" />
		<i3dMapping id="attacherBoltRail" node="0>1|7|0|0" />
		<i3dMapping id="attacherMechanic3_ref" node="0>1|7|1" />
		<i3dMapping id="attacherMechanic2_ref" node="0>1|7|2" />
		<i3dMapping id="attacherMechanic2" node="0>1|8" />
		<i3dMapping id="attacherMechanic3" node="0>1|9|0" />
		<i3dMapping id="attacherJointBack" node="0>1|7|0|1" />
		<i3dMapping id="threePointAdapter" node="0>1|7|0|0" />
		<i3dMapping id="attacherBoltRailDetached" node="0>1|7|0|2" />
		<i3dMapping id="attacherBoltRailAttached" node="0>1|7|0|3" />
		<i3dMapping id="attacherJointTrailer" node="0>1|7|0|4" />
	</i3dMappings>
</vehicle>
