<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			Type="krazik2_wheel"
			HardpointOffsetY="-0.18"
			SuspensionMin="-0.3"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.676"
		HardpointDefaultZ="0.95"
	>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-2.823"
			SuspensionStrength="0.035"
			ParentFrame="Bonecart"
			Type="arki"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-2.823"
			RightSide="true"
			SuspensionStrength="0.035"
			ParentFrame="Bonecart"
			Type="arki"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-6.88"
			SuspensionStrength="0.016"
			ParentFrame="Bonechassis"
			Type="arki"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-6.88"
			RightSide="true"
			SuspensionStrength="0.016"
			ParentFrame="Bonechassis"
			Type="arki"
		/>
	    <Wheel
			_template="TrailerWheel"
			HardpointX="-8.23"
			SuspensionStrength="0.022"
			ParentFrame="Bonechassis"
			Type="arki"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-8.23"
			RightSide="true"
			SuspensionStrength="0.022"
			ParentFrame="Bonechassis"
			Type="arki"
		/>
	</Wheels>
	<TruckData>
		<OcclusionMap
			HalfSizeZ="1.75"
			MinX="-8.9"
			MaxX="-2.32"
			ParentFrame="Bonechassis"
		/>
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-4.7; 0; 0)" ParentFrame="Bonecart" />
		<Axles>
			<Axle Frame="BoneAxle1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle2" LeftWheel="2" RightWheel="3" />
	        <Axle Frame="BoneAxle3" LeftWheel="4" RightWheel="5" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/Kraz-256 8x8 pricep">
		<Body ModelFrame="Bonehand" Mass="200" CenterOfMassOffset="(-0.5; 0.1; 0)">
            <Body ModelFrame="Bonecart" Mass="100">
                <Constraint 
				    Type="Hinge" MinLimit="-75" MaxLimit="75" AxisLocal="(0.0; 0.0; 1.0)" Collisions="None"> 
                </Constraint>
            <Body ModelFrame="Bonechassis" Mass="1000" CenterOfMassOffset="(-1.1; -0.3; 0)">
                <Constraint 
				    Type="Hinge" MinLimit="-90" MaxLimit="90" AxisLocal="(0.0; 1.0; 0.0)"> 
                </Constraint>
            <Body ModelFrame="Bonekuzov_cdt" Mass="300" ImpactType="Truck">
                <Constraint
                    Name="kuz257" Type="Hinge" AxisLokal="(0;0;-1)" MinLimit="-0" MaxLimit="0">
                    <Motor Type="Position" Force="75000" />
                </Constraint>
            </Body>
			</Body>
            </Body>
        </Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-9.026; 1.102; 0)" ParentFrame="Bonechassis" />
			<Flare _template="StopSignal" Pos="(-9.026; 1.098; 0.851)" ParentFrame="Bonechassis" />
			<Flare _template="StopSignal" Pos="(-9.026; 1.102; -0.907)" ParentFrame="Bonechassis" />
		</StopSignals>	
		<Ignition>
			<Light _template="IgnitionSignalRed" Direction="30" Size="0.3" Pos="(-9.026; 0.733; 0)" ParentFrame="Bonechassis" />
			<Flare _template="IgnitionSignalRed" Direction="30" Size="0.3" Pos="(-9.026; 1.098; 0.987)" ParentFrame="Bonechassis" />
			<Flare _template="IgnitionSignalRed" Direction="30" Size="0.3" Pos="(-9.026; 1.102; -1.042)" ParentFrame="Bonechassis" />
		</Ignition>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-8.985; 1.031; 0.156)" ParentFrame="Bonechassis" />
		<WinchSocket Pos="(-8.985; 1.031; -0.21)" ParentFrame="Bonechassis" />
		
		<WinchSocket Pos="(0.018; 0.853; 0)" ParentFrame="Bonehand" />
		
	    <LoadArea
			Min="(-8.883; 1.4; -1.2)"
			Max="(-2.2; 2.35; 1.2)"
			TrailerLoad="true"
			Type="MediumLogs"
			ParentFrame="Bonekuzov_cdt"
		/>
		
		<InstallSocket Offset="(0.018; 0.853; 0)" Type="Kraz-256 8x8 pricep" ParentFrame="Bonehand" />
		<AddonSockets>
			<Socket Names="LoadLogsMedium2568x8B" ParentFrame="Bonekuzov_cdt" Offset="(-2.7; 0.08; 0.0)" />
		</AddonSockets>
	</GameData>
</Truck>