<_templates Include="trucks">
</_templates>

<TruckAddon IsChassisFullOcclusion="true">
	<TruckData RepairsCapacity="20" />
	<PhysicsModel Mesh="trucks/Grappler">
	<Body Mass="1400" ImpactType="Truck" CenterOfMassOffset="(0; -0.75; 0)" >

			<Constraint Type="Fixed" />


	<Body ModelFrame="cran_base" Mass="400" CenterOfMassOffset="(-1.5; 0; 0)" 
			NoFoliageCollisions="true" ImpactType="Truck" >
		<Constraint
			Name="Crane"
			Type1="Fixed"
			Type="Hinge"
			AxisLocal="(0;-1;0)"
			MinLimit="-350"
			MaxLimit="350"
			PivotOffset1="(-1.0; -0.3; 0.0)">
			<Motor Type="Position" Force="40000" />
		</Constraint>

	<Body ModelFrame="cran_arm1" Collisions="Internal" Mass="300" ImpactType="Truck" >
		<Constraint
			Name="Crane"
			Type1="Fixed"
			Type="Hinge"
			AxisLocal="(0;0;-1)"
			MinLimit="-40"
			MaxLimit="27"
			PivotOffset1="(-1.0; -0.3; 0.0)">
			<Motor Type="Position" Force="150000" Tau="0.20" />
		</Constraint>

	<Body
		ModelFrame="cran_arm2"
		Collisions="Internal" 
		Mass="200"
		ImpactType="Truck"
		>
			<Constraint
				Name="Crane"
				Type1="Fixed"
				Type="Hinge"
				AxisLocal="(0;0;-1)"
				MinLimit="-20"
				MaxLimit="90"
				PivotOffset1="(-1.0; -0.3; 0.0)">
					<Motor
						Type="Position"
						Force="105000"
						Tau="0.25"
						Damping="1.0" />
			</Constraint>
	
<Body ModelFrame="BoneGrap" Mass="150">
					<Constraint Name="BoneGrap" Type="Hinge" AxisLocal="(0;0;-1)" MinLimit="-90" MaxLimit="30" >
					<Motor
 Type="Spring" Spring="0" Damping="50" />
				</Constraint>

		<Body
ModelFrame="grap1"
Mass="50"
Collisions="Internal"
>
<Constraint
Name="Grappler"
Type="Hinge"
AxisLocal="(0;0;1)"
MinLimit="-30"
MaxLimit="90"
>
<Motor Type="Position" Force="15000" />
</Constraint>
		</Body>
	
	<Body
ModelFrame="grap2"
Mass="50"
Collisions="Internal"
>
<Constraint
Name="Grappler"
Type="Hinge"
AxisLocal="(0;0;1)"
MinLimit="-30"
MaxLimit="90"
>
<Motor Type="Position" Force="15000" />
</Constraint>
		</Body>

		<Body
ModelFrame="grap3"
Mass="50"
Collisions="Internal"
>
<Constraint
Name="Grappler"
Type="Hinge"
AxisLocal="(0;0;1)"
MinLimit="-30"
MaxLimit="90"
>
<Motor Type="Position" Force="15000" />
</Constraint>
		</Body>
		</Body>
	</Body>
	</Body>
</Body>
</Body>
	</PhysicsModel>
	
	<ModelAttachments>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(-0.05; 1.5; -0.82)" ParentFrame="cran_base" />
			<Flare _template="HeadLight" Pos="(-0.05; 1.5; -0.82)" ParentFrame="cran_base" />
			<Flare _template="BlueStreak" Pos="(-0.05; 1.5; -0.82)" ParentFrame="cran_base" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight
		_template="Default"
		AttenEnd="32"
		Dir="(1.0; -0.8; 0)"
		Pos="(1.2; 3.76; 0.0)"
		ParentFrame="cran_base"
	/>
	<GameData GaragePoints="1">
		<RequiredAddon Types="Rest" />
		<InstallSocket Type="UralLoaderAE" Offset="(0.25; -0.1; 0.0)" />
		<WinchSocket ParentFrame="grap_base" Pos="(6.3; 1.55; -0.1)" />
	</GameData>
	<ControlledIK>
		<Chain
			AffectedFrames="cran_base,cran_arm1,cran_arm2,BoneGrap,grap1,grap2,grap3"
			CenterXZ="(-1.105; 0)"
			EndOffset="(2.168; -2.168; 0.117)"
			HelperVisFrame="BoneGrap"
			Id="AE-1425"
			ModelFrames="platform,cran_base,cran_arm1,cran_arm2"
		/>
	</ControlledIK>
	<ControlledConstraints>
		<Constraint Id="crane_grap" LinkedControlledIK="AE-1425" Name="Grappler" />
	</ControlledConstraints>
<AddonCamera
		FirstPersonDir="(1.0; -0.32; 0.0)"
		FirstPersonPos="(-1.75; 3.76; 3.5)"
		ParentFrame="cran_base"
	/>
</TruckAddon>
