<_templates Include="trucks" />
<TruckAddon IsChassisFullOcclusion="true">
    <PoweredConstraints>
		<Group Id="rear_door">
			<Constraint Name="RearDoor" Position="-180" TerminalFix="true" />
		</Group>
	</PoweredConstraints>

	<PhysicsModel Mesh="trucks/ca10/ca10_carriage">
		<Body ImpactType="Truck" Mass="400">
			<Constraint Type="Fixed" />
			<Body ImpactType="Truck" Mass="100" ModelFrame="BoneLeft">
				<Constraint
					AxisLocal="(1; 0; 0)"
					MinLimit="-2"
					MaxLimit="2"
					Type="Hinge"
				>
					<Motor Damping="100" Spring="2000" Type="Spring" />
				</Constraint>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortRL"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-55"
						MaxLimit="45"
						Type="Hinge"
					/>
				</Body>
			</Body>
			<Body ImpactType="Truck" Mass="100" ModelFrame="BoneRight">
				<Constraint
					AxisLocal="(1; 0; 0)"
					MinLimit="-2"
					MaxLimit="2"
					Type="Hinge"
				>
					<Motor Damping="100" Spring="2000" Type="Spring" />
				</Constraint>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortRR"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-55"
						MaxLimit="45"
						Type="Hinge"
					/>
				</Body>
			</Body>
			<Body
				ImpactType="Truck"
				Mass="70"
				ModelFrame="BoneBack"
			>
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-90"
					MaxLimit="0"
					Type="Hinge"
                           	Name="RearDoor"
				>
					<Motor Damping="100" Spring="500" Type="Spring" />
				</Constraint>
			</Body>
				<Body
					AngularDamping="2.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortFR"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-5"
						MaxLimit="1"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="1.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortFL"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-10"
						MaxLimit="3"
						Type="Hinge"
					/>
				</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-3.361; 1.022; 0)" />
			<Flare _template="StopSignal" Pos="(-3.361; 1.022; 0.902)" />
			<Flare _template="StopSignal" Pos="(-3.361; 1.022; -0.902)" />
		</StopSignals>
		<Ignition>
			<Flare _template="RedSignal" Pos="(-3.361; 1.022; 0.902)" />
			<Flare _template="RedSignal" Pos="(-3.361; 1.022; -0.902)" />
		</Ignition>
	</ModelAttachments>
	<GameData>
		<LoadArea Min="(-4.145; 1.277; -1.267)" Max="(0.293; 2.063; 1.267)" Type="ShortLogs" />
		<RequiredAddon Types="ca10_exhaust, ca10_frontal_exhaust" />
		<InstallSocket Type="ca10_addon_1" />
	</GameData>
</TruckAddon>
