<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="barnaul08">
    <annotation>Copyright (C) PeterJ, All Rights Reserved.</annotation>

    <storeData>
        <name>
			<en>PKU-0.8</en>
			<ru>ПКУ-0.8</ru>
		</name>
		<specs>
            <combination>МТЗ-100</combination>
        </specs>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>barnaul.dds</image>
        <price>3000</price>
        <dailyUpkeep>5</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
		<brand>BELARUS</brand>
        <category>frontLoaders</category>
        <vertexBufferMemoryUsage>494920</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>90408</indexBufferMemoryUsage>
        <textureMemoryUsage>2381536</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_frontloader</typeDesc>
    <filename>barnaul08.i3d</filename>

    <size width="3" length="5" />

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0|0" hardAttach="true" jointType="attachableFrontloader" >
            <objectChange node="0>4" visibilityActive="false" />
			<objectChange node="0>1|0|0|0|1" visibilityActive="true" />
			<objectChange node="0>0|3" visibilityActive="true" />
		</inputAttacherJoint>
    </inputAttacherJoints>

    <attacherJoints>
        <attacherJoint jointType="frontloader" index="0>3|0|0|0" indexVisual="0>1|1|0|2" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="5 5 5" transLimitSpring="7500 7500 7500" transLimitDamping="5 5 5" >
            <schema position="0.5 0" rotation="0" invertX="false" />

		</attacherJoint>
    </attacherJoints>

    <cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.80" volume="0.65" indoorVolumeFactor="1.00" indoorLowpassGain="0.75" />
    <attachSound file="$data/sounds/attach.wav"                   pitchOffset="0.65" volume="0.50" indoorVolumeFactor="0.40" indoorLowpassGain="0.70" />
    <movingTools>
        <!-- physics -->
        <movingTool index="0>3" delayedIndex="0>1">
            <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1.0" iconFilename="$dataS2/menu/moveControls/frontloader_arm.png" />
            <attacherJoint jointIndices="0" />
            <rotation rotSpeed="25" rotAcceleration="200" rotMax="11" rotMin="-72" startRot="0" detachingRotMinLimit="-5" />
            <dependentPart index="0>3|0" />
            <dependentMovingTool index="0>3|0|0" minRotLimits="0 -13.5" maxRotLimits="70 63" />
        </movingTool>
        <movingTool index="0>3|0|0" delayedIndex="0>1|1|0">
            <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6" iconFilename="$dataS2/menu/moveControls/frontloader_tool.png" />
            <attacherJoint jointIndices="0" />
            <rotation rotSpeed="50" rotAcceleration="300" rotMax="70" rotMin="-13.5" startRot="0" syncMaxRotLimits="true" />
        </movingTool>

        <movingTool index="0>1">
            <dependentPart index="0>1|0" />
            <dependentPart index="0>1|1" />
        </movingTool>

        <movingTool index="0>1|1|0">
            <dependentPart index="0>1|2" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- main cylinder -->
        <movingPart index="0>1|0" referencePoint="0>0|1" referenceFrame="0>1|6" playSound="true" >
            <translatingPart index="0>1|0|0" />
            <dependentPart index="0>1|3" />
        </movingPart>

		
        <movingPart index="0>1|3" referencePoint="0>0|2" localReferencePoint="0>1|3|2" referenceFrame="0>1|5" >
            <dependentPart index="0>1|3|0" />
            <dependentPart index="0>1|3|1|0" />
            <dependentPart index="0>0|3" />
        </movingPart>

		
        <movingPart index="0>1|3|0" referencePoint="0>0|2" referenceFrame="0>1" />
        <movingPart index="0>0|3" referencePoint="0>1|3|2" referenceFrame="0>1" />

        <movingPart index="0>1|2" localReferencePoint="0>1|2|0" referencePoint="0>1|1|0|0" referenceFrame="0>1|1|0|1" >
            <dependentPart index="0>1|2|0" />
            <dependentPart index="0>1|3|1|0" />
        </movingPart>
        <movingPart index="0>1|2|0" referencePoint="0>1|1|0|0" referenceFrame="0>1|2|2" />

        <!-- tool cylinder -->
        <movingPart index="0>1|3|1|0" referencePoint="0>1|2|1" referenceFrame="0>1|5" playSound="true">
            <translatingPart index="0>1|3|1|0|0" />
        </movingPart>

        <movingPart index="0>3|0" referenceFrame="0>2">
            <attacherJoint jointIndices="0" />
        </movingPart>
        <movingPart index="0>1|1" referenceFrame="0>0">
            <attacherJoint jointIndices="0" />
            <dependentPart index="0>1|2" />
        </movingPart>
		
        <!-- hydraulic hoses -->




    </movingParts>

    <animations>
        <animation name="attachAnimations">
            <part node="0>3|1"   startTime="0" endTime="0.1" startRot="45 0 0" endRot="-5 0 0" />
        </animation>
    </animations>
    <support animationName="attachAnimations" />



    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="1">
        <component1 centerOfMass="0 0 1.5" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0" />

</vehicle>
