<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			HardpointOffsetY="-0.10"
			SuspensionMin="-0.3"
			SuspensionStrength="0.030"
			Torque="default"
			Type="ford_ltl9000_rear"
			ParentFrame="BoneRear_cdt"
		/>
	</Wheel>
	<Flare>
		<TrailerSignal Color="g(117; 72; 72) x 1.0" DirAngle="100" Size="0.6" />
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.622"
		HardpointDefaultZ="1.020"
	>
		<Wheel _template="TrailerWheel" HardpointX="-6.032" />
		<Wheel _template="TrailerWheel" HardpointX="-6.032" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-7.432" />
		<Wheel _template="TrailerWheel" HardpointX="-7.432" RightSide="true" />
	</Wheels>
	<TruckData RepairsCapacity="100">
		<OcclusionMap
			HalfSizeZ="1.65"
			MinX="-8.7"
			MaxX="1.3"
			Texture="trucks/occlusion/chassis_trailer__s_d_a.tga"
		/>
		<Constraint
			ConeAxisLocal="(1; 0; 0)"
			ConeLimit="-2"
			ConeLimit="2"
			PlaneAxisLocal="(0; 0; 1)"
			PlaneMin="-15"
			PlaneMax="15"
			TwistAxisLocal="(0; 1; 0)"
			TwistMin="-120"
			TwistMax="120"
			Type="Ragdoll"
		>
			<ConeMotor Damping="120000" Spring="1200000" Type="Spring" />
		</Constraint>
		<Camera Center="(-7.182; 0; 0)" />
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint InitialFix="true" Name="Foot" Position="0.6" SpeedMult="0.5" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/trailer_cursedsort">
		<Body CenterOfMassOffset="(0.0; -0.5; 0)" ImpactType="Truck" Mass="2500" ModelFrame="BoneFront_cdt">
			<Body ForceBodyParams="true" Mass="300" ModelFrame="BoneFoot_cdt" NoFoliageCollisions="true">
				<Constraint AxisLocal="(0;1;0)" MinLimit="0" MaxLimit="0.60" Name="Foot" Type="Prismatic">
					<Motor Force="500000" Type="Position" />
				</Constraint>
			</Body>
			<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKL1_cdt">
				<Constraint AxisLocal="(1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
					<Motor Damping="300" Spring="6000" Type="Spring" />
				</Constraint>
			</Body>
			<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKL2_cdt">
				<Constraint AxisLocal="(-1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
					<Motor Damping="300" Spring="6000" Type="Spring" />
				</Constraint>
			</Body>
			<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKR1_cdt">
				<Constraint AxisLocal="(-1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
					<Motor Damping="300" Spring="6000" Type="Spring" />
				</Constraint>
				<Body AngularDamping="1.0" Collisions="None" Mass="10" ModelFrame="BoneCepR1_cdt">
					<Constraint AxisLocal="(0;0;1)" MinLimit="-30" MaxLimit="30" Type="Hinge">
						<Motor Damping="5" Spring="25" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
			<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKR2_cdt">
				<Constraint AxisLocal="(1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
					<Motor Damping="300" Spring="6000" Type="Spring" />
				</Constraint>
			</Body>
			<Body CenterOfMassOffset="(0.0; -0.5; 0)" ImpactType="Truck" Mass="2500" ModelFrame="BoneRear_cdt">
				<Constraint AxisLocal="(1;0;0)" MinLimit="-8" MaxLimit="8" Type="Hinge">
					<Motor Damping="120000" Spring="600000" Type="Spring" />
				</Constraint>
				<Body AngularDamping="1.0" Collisions="None" Mass="10" ModelFrame="BoneCep_cdt">
					<Constraint AxisLocal="(1;0;0)" MinLimit="-30" MaxLimit="30" Type="Hinge">
						<Motor Damping="5" Spring="5" Type="Spring" />
					</Constraint>
				</Body>
				<Body AngularDamping="5.0" Collisions="None" Mass="10" ModelFrame="BoneMudguardLeft_cdt">
					<Constraint AxisLocal="(0;0;1)" MinLimit="-15" MaxLimit="45" Type="Hinge" />
				</Body>
				<Body AngularDamping="5.0" Collisions="None" Mass="10" ModelFrame="BoneMudguardRight_cdt">
					<Constraint AxisLocal="(0;0;1)" MinLimit="-15" MaxLimit="45" Type="Hinge" />
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKL3_cdt">
					<Constraint AxisLocal="(1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKL4_cdt">
					<Constraint AxisLocal="(1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKL5_cdt">
					<Constraint AxisLocal="(1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKL6_cdt">
					<Constraint AxisLocal="(1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
					<Body AngularDamping="0.25" Collisions="None" Mass="10" ModelFrame="BoneCepL6_cdt">
						<Constraint AxisLocal="(0;0;1)" MinLimit="-30" MaxLimit="30" Type="Hinge">
							<Motor Damping="1" Spring="10" Type="Spring" />
						</Constraint>
					</Body>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKR3_cdt">
					<Constraint AxisLocal="(-1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
					<Body AngularDamping="1.0" Collisions="None" Mass="10" ModelFrame="BoneCepR3_cdt">
						<Constraint AxisLocal="(0;0;1)" MinLimit="-30" MaxLimit="30" Type="Hinge">
							<Motor Damping="5" Spring="25" Type="Spring" />
						</Constraint>
					</Body>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKR4_cdt">
					<Constraint AxisLocal="(-1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKR5_cdt">
					<Constraint AxisLocal="(-1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
				</Body>
				<Body CenterOfMassOffset="(0; -0.4; 0)" ImpactType="Truck" Mass="100" ModelFrame="BoneKR6_cdt">
					<Constraint AxisLocal="(-1;0;0)" MinLimit="-1" MaxLimit="5" Type="Hinge">
						<Motor Damping="300" Spring="6000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-8.906; 0.829;  0.000)" ParentFrame="BoneRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-8.306; 1.029;  0.995)" ParentFrame="BoneRear_cdt" AspectRatio="1.6" Size="0.2" />
			<Flare _template="IgnitionSignalRed" Pos="(-8.306; 1.029; -0.995)" ParentFrame="BoneRear_cdt" AspectRatio="1.6" Size="0.2" />
		</Ignition>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-8.908; 0.81;  0.00)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-8.308; 1.01;  0.86)" ParentFrame="BoneRear_cdt" AspectRatio="0.9" Size="0.4" Color="g(255; 0; 0) x 0.6" />
			<Flare _template="StopSignal" Pos="(-8.308; 1.01; -0.86)" ParentFrame="BoneRear_cdt" AspectRatio="0.9" Size="0.4" Color="g(255; 0; 0) x 0.6" />
		</StopSignals>
	</ModelAttachments>
	<GameData GaragePoints="4">
		<WinchSocket Pos="(-8.235; 1.169;  0.383)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-8.235; 1.169; -0.383)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="( 0.000; 1.425;  0.000)" ParentFrame="BoneFront_cdt" />
		<WinchSocket Pos="(-5.739; 2.010;  1.353)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-5.739; 2.010; -1.353)" ParentFrame="BoneRear_cdt" />
		<RequiredAddon Types="kraz_tractor" />
		<InstallSocket Offset="(0; 1.425; 0.0)" Type="KamazTrailer" />
		<LoadArea Min="(0.80; 1.70; -1.25)" Max="(-8.10; 2.50; 1.25)" Type="MediumLogs" TrailerLoad="true" />
		<AddonSockets>
			<Socket Names="PolupricepCursedsortLoad" ParentFrame="BoneFront_cdt">
				<ExtraParent Frame="BoneRear_cdt" />
			</Socket>
		</AddonSockets>
	</GameData>
</Truck>
