<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableFrontloader">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>NewHolland 750 TL </en>
        <de>NewHolland 750 TL </de>
    </name>
    <typeDesc>$l10n_TypeDesc_Frontloader</typeDesc>
    <filename>stollFrontLoaderFZ.i3d</filename>

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

    <inputAttacherJoints>
        <inputAttacherJoint index="0>2|0" jointType="attachableFrontloader" rotLimitSpring="100 100 100" rotLimitDamping="100 100 100" transLimitSpring="100 100 100" transLimitDamping="100 100 100"/>
    </inputAttacherJoints>

    <attacherJoints>
        <attacherJoint jointType="frontloader" index="0>3|0|0|0" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="100 100 100" rotLimitDamping="100 100 100" transLimitSpring="100 100 100" transLimitDamping="100 100 100"/>
    </attacherJoints>

    <needsLowering value="false" />
    <allowsLowering value="false" />

    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/frontloader_arm.png" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/frontloader_tool.png" axis="AXIS_FRONTLOADER_TOOL" />
    </mouseControls>

    <movingTools>
        <!-- physics -->
        <movingTool index="0>2" inputAttacherJoint="true" attacherJointIndices="0" anchorActor="0" rotSpeed="25" rotAcceleration="115" rotMax="100" rotMin="0" startRot="15" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" invertMouseAxis="false" speedFactor="2.2">
            <dependentPart index="0>3|0" />
            <dependentMovingTool index="0>3|0|0" maxRotLimits="45 100"/>
        </movingTool>
        <movingTool index="0>3|0|0" attacherJointIndices="0" anchorActor="0" rotSpeed="50" rotAcceleration="200" rotMax="100" rotMin="-60" startRot="-60" syncMaxRotLimits="true" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" invertMouseAxis="true" speedFactor="0.6" />

        <!-- delayed mesh -->
        <movingTool index="0>0" isDelayed="true" adjustAttributesToMovingToolIndex="1" rotSpeed="25" rotAcceleration="115" rotMax="100" rotMin="0" startRot="15" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" invertMouseAxis="false" speedFactor="2.2">
            <dependentPart index="0>1|0" />
            <dependentPart index="0>1|1" />
            <dependentMovingTool index="0>1|1|0" maxRotLimits="45 100"/>
        </movingTool>
        <movingTool index="0>1|1|0" isDelayed="true" adjustAttributesToMovingToolIndex="2" rotSpeed="50" rotAcceleration="200" rotMax="100" rotMin="-60" startRot="-60" syncMaxRotLimits="true" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" invertMouseAxis="true" speedFactor="0.6">
            <dependentPart index="0>1|2" />
        </movingTool>

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

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

        <movingPart index="0>1|3" localReferencePoint="0>1|3|0" referencePoint="0>0|0|0|1" referenceFrame="0>1|8" >
            <dependentPart index="0>1|3|0" />
            <dependentPart index="0>1|3|1" />
        </movingPart>
        <movingPart index="0>1|3|0" referencePoint="0>0|0|0|1" 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" />
        </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" referencePoint="0>1|2|1" referenceFrame="0>1|12">
            <translatingPart index="0>1|3|1|0" />
            <dependentPart index="0>1|3|2" />
            <dependentPart index="0>1|10|0" />
        </movingPart>
        <!-- angle display -->
        <movingPart index="0>1|3|2" referencePoint="0>1|2|3" referenceFrame="0>1|12">
            <translatingPart index="0>1|3|2|0" />
        </movingPart>


        <movingPart index="0>3|0" referenceFrame="0>2" attacherJointIndices="0" anchorActor="0"/>
        <movingPart index="0>1|1" referenceFrame="0>0" attacherJointIndices="0" anchorActor="0">
            <dependentPart index="0>1|2" />
        </movingPart>

        <!-- joints -->
        <movingPart index="0>1|10|0" referencePoint="0>1|3|1|2" referenceFrame="0>1|3|1|1" playSound="false" moveToReferenceFrame="true" />
        <!-- support -->
        <movingPart index="0>1|4|1|0" referencePoint="0>1|4|0|0" referenceFrame="0>1|4|2" scaleZ="true" />

    </movingParts>

    <animations>
        <animation name="moveSupport">
            <part node="0>1|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="-70 0 0" />
            <part node="0>1|4|1" startTime="0" endTime="1" startRot="0 0 0" endRot="-88 0 0" />
        </animation>
    </animations>
    <support animationName="moveSupport" />

    <color value="0.0 0.1170 0.4020 1.0" />

    <spareParts>
        <sparePart index="0>1|9|0" visibility="true" />
        <sparePart index="0>1|9|1" visibility="false" />
		<sparePart index="0>1|9|2" visibility="false" />
		<sparePart index="0>1|9|3" visibility="false" />
		<sparePart index="0>1|9|4" visibility="false" />
    </spareParts>

    <skinnedNodes>
        <skinnedNode index="0>1|11" moveToZero="true" />
    </skinnedNodes>

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

    <components count="1">
        <component1 centerOfMass="0 0 0.25" 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">
        <attacherJoint position="0.5 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
