<_templates Include="trucks">
	<Flare>
		<Sublight Color="(122; 61; 0) x 0.6" Size="0.5" />
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.4"
		HardpointDefaultZ="1.05"
	>
		<Wheel
			HardpointX="-6.275"
			Type="koleso_pricep_krone"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.5"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
		<Wheel
			HardpointX="-6.275"
			RightSide="true"
			Type="koleso_pricep_krone"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.5"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
		<Wheel
			HardpointX="-7.539"
			Type="koleso_pricep_krone"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.5"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
		<Wheel
			HardpointX="-7.539"
			RightSide="true"
			Type="koleso_pricep_krone"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.5"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
		<Wheel
			HardpointX="-8.769"
			Type="koleso_pricep_krone"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.5"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
		<Wheel
			HardpointX="-8.769"
			RightSide="true"
			Type="koleso_pricep_krone"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.5"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
	</Wheels>
	<TruckData RepairsCapacity="800">
		<OcclusionMap HalfSizeZ="1.75" MinX="-11.75" MaxX="0.75" />
		<Constraint
			PlaneAxisLocal="(0; 0; 1.0)"
			PlaneMin="-90"
			PlaneMax="90"
			TwistAxisLocal="(1.0; 0; 0)"
			TwistMin="-30"
			TwistMax="30"
			Type="Ragdoll"
		>
			<TwistMotor Damping="60000" Spring="320000" Type="Spring" />
		</Constraint>
		<Camera Center="(-9.5; 0; 0)" />
		<Axles>
			<Axle Frame="BoneAxle0" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle1" LeftWheel="2" RightWheel="3" />
			<Axle Frame="BoneAxle2" LeftWheel="4" RightWheel="5" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="foot_push">
			<Constraint Name="Foot" Position="-0.6" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/s4kat1kf">
		<Body
			CenterOfMassOffset="((-2.0; -0.6; 0))"
			ImpactType="Truck"
			Mass="6000"
			ModelFrame="BoneFront"
		>
			<Body ImpactType="Truck" Mass="3000" ModelFrame="BoneRear_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					PivotOffset="(3.09537; 0.316711; 0.0)"
					Type="Hinge"
				>
					<Motor Damping="40000" Spring="240000" Type="Spring" />
				</Constraint>
				<Body Mass="400" ModelFrame="BoneRearTop_cdt">
					<Constraint
						AxisLocal="(0; 0; 1)"
						MinLimit="-0.25"
						MaxLimit="0.25"
						Type="Prismatic"
					>
						<Motor Damping="800" Spring="24000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
			<Body Mass="400" ModelFrame="BoneFrontTop_cdt">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-0.25"
					MaxLimit="0.25"
					Type="Prismatic"
				>
					<Motor Damping="800" Spring="24000" Type="Spring" />
				</Constraint>
			</Body>
			<Body
				ForceBodyParams="true"
				Mass="100"
				ModelFrame="BoneFoot"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-0.95"
					MaxLimit="0"
					Name="Foot"
					Type="Prismatic"
				>
					<Motor Force="32000" Type="Position" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light
				Pos="(-10.7; 1.065; 0)"
				ParentFrame="BoneRear_cdt"
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-11.75; 0.98; 0.86)"
				ParentFrame="BoneRear_cdt"
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="60"
				Size="0.4"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(-11.75; 0.98; -0.86)"
				ParentFrame="BoneRear_cdt"
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="60"
				Size="0.4"
				SizeAtDay="0.4"
			/>
		</StopSignals>
		<ReverseSignals>
			<Light
				Pos="(-10.7; 1.065; 0)"
				ParentFrame="BoneRear_cdt"
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-11.75; 0.98; 0.97)"
				ParentFrame="BoneRear_cdt"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.2"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(-11.75; 0.98; -0.97)"
				ParentFrame="BoneRear_cdt"
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.2"
				SizeAtDay="0.4"
			/>
		</ReverseSignals>
		<Ignition>
			<Flare _template="Sublight" Pos="(-11.75; 0.98; -1.092)" />
			<Flare _template="Sublight" Pos="(-11.75; 0.98;  1.092)" />			
		</Ignition>
	</ModelAttachments>
	<GameData GaragePoints="4">
		<WinchSocket Pos="(-11.05; 0.868; -0.6)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-11.05; 0.868; 0.6)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-2.38; 1.313; 0)" ParentFrame="BoneFront" />
		<InstallSocket Offset="(0.5; 0.9; 0.0)" Type="krone" />
	</GameData>
</Truck>
