<_templates Include="trucks">
	<Wheel>
		<Wheel
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="0.1"
			Torque="default"
			Type="Nami_wheelsP"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.225"
		HardpointDefaultZ="1.13"
	>
		<Wheel _template="Wheel" HardpointX="-6.498" ParentFrame="Balancing_trolley_rear_cdt" />
		<Wheel _template="Wheel" HardpointX="-6.498" ParentFrame="Balancing_trolley_rear_cdt" RightSide="true" />
		<Wheel _template="Wheel" HardpointX="-8.167" ParentFrame="Balancing_trolley_rear_cdt" />
		<Wheel _template="Wheel" HardpointX="-8.167" ParentFrame="Balancing_trolley_rear_cdt" RightSide="true" />
	</Wheels>
	<TruckData TrailerCanDetach="true">
		<OcclusionMap
			HalfSizeZ="1.5"
			MinX="-8.8"
			MaxX="-5.9"
                        ParentFrame="BoneOpen_cdt"
			Texture="trucks/occlusion/chassis_trailer__s_d_a.tga"
		/>
		<Constraint _template="TrailerRagdoll">
			<PlaneConeMotor Damping="6000" Spring="20000" Type="Spring" />
		</Constraint>
		<Camera Center="(-6.0; 0; 0)" ParentFrame="BoneOpen_cdt" />
		<Axles>
			<Axle Frame="BoneAxle3" />
			<Axle Frame="BoneAxle4" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/Nami_trailer_Pipe_carrier">
		<Body ImpactType="Truck" Collisions="All" Mass="1000">
		<Body Collisions="All" Mass="500" ForceBodyParams="true" ModelFrame="BoneOpen_cdt">
				<Constraint
					Name="Foot2"
					AxisLocal="(1; 0; 0)"
					MinLimit="-8.1"
					MaxLimit="0"
					Type="Prismatic"
				>
					<Motor Force="400000" Tau="0.1" Type="Position"  />
				</Constraint>
						<Body Collisions="All" Mass="500" Friction="0" ModelFrame="Bone_Pipe_carrier_cdt">
							<Constraint
									AxisLocal="(0;1;0)"
									MinLimit="-90"
									MaxLimit="90"
									Type="Hinge"
							>
								<Motor Damping="500" Spring="2000" Type="Spring" />
							</Constraint>
		         </Body>
							<Body Collisions="None" Mass="1000" ModelFrame="Balancing_trolley_rear_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-15"
									MaxLimit="15"
									Type="Hinge"
								>
									<Motor Damping="0" Spring="100000" Type="Spring" />
								</Constraint>
		         </Body>
		         </Body>
		</Body>
	</PhysicsModel>
	<PoweredConstraints>
		<Group Id="Open_trailer">
			<Constraint Name="Foot2" Position="-8.1" TerminalFix="true" SpeedMult="0.7" />
		</Group>
	</PoweredConstraints>
	<GameData>
		<WinchSocket Pos="(-2.767; 0.936; 0)" ParentFrame="Bone_Trailer" />
		<WinchSocket Pos="(-11.52; 0.937; 0)" ParentFrame="Bone_Trailer" />
		<RequiredAddon Types="Nami_Pipe_carrier" />
		<InstallSocket Offset="(-2.761; 0.942; 0.0)" Type="Nami_trailer_Pipe_carrier" />
		<LoadArea Min="(-6.48; 1.616; -1.25)" Max="(-9.192; 2.6; 1.25)" Type="LongLogs" ParentFrame="Bone_Trailer" />
	</GameData>


</Truck>
