﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="stumpCutter">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>FSI ST 65 T</en>
        <de>FSI ST 65 T</de>
    </name>
    <typeDesc>$l10n_TypeDesc_StumpCutter</typeDesc>
    <filename>data/vehicles/tools/fsi/fsiST65T.i3d</filename>

    <size width="2.5" length="5" lengthOffset="2.5"/>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0" jointType="implement" topReferenceNode="0>1" upperRotationOffset="8" lowerRotationOffset="0" lowerDistanceToGround="0.9" upperDistanceToGround="0.95" indexPTO="0>2|1|0|0|1|1" rotSpeedPTO="0" />
    </inputAttacherJoints>

    <needsLowering value="false" />

    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>2|1|0|0|0|1" type="stumpCutter" rotSpeed="750" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </turnedOnRotationNodes>

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/arm1_rotY.png" axis="AXIS_FRONTLOADER_TOOL" />
        <mouseControl iconFilename="$dataS2/menu/moveControls/arm1_rotX.png" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/moveControls/arm2_rot.png" axis="AXIS_FRONTLOADER_ARM2" />
        <mouseControl iconFilename="$dataS2/menu/moveControls/arm2_rot.png" axis="AXIS_FRONTLOADER_TOOL2" />
    </mouseControls>

    <movingTools>
        <!-- arm y rot -->
        <movingTool index="0>2|1" rotSpeed="15" rotAcceleration="100" rotMax="35" rotMin="-35" rotationAxis="2" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" invertMouseAxis="true" speedFactor="0.7" >
            <dependentPart index="0>2|2" />
            <dependentPart index="0>2|3" />
        </movingTool>
        <!-- arm x rot -->
        <movingTool index="0>2|1|0" rotSpeed="20" rotAcceleration="170" rotMax="25" rotMin="-15" rotationAxis="1" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" invertMouseAxis="true" speedFactor="0.7">
            <dependentPart index="0>2|1|1" />
        </movingTool>
        <!-- cutter arm -->
        <movingTool index="0>2|1|0|0" rotSpeed="20" rotAcceleration="170" rotMax="5" rotMin="-30" rotationAxis="1" axis="AXIS_FRONTLOADER_ARM2" invertAxis="true" invertMouseAxis="true" speedFactor="0.7">
            <dependentPart index="0>2|1|0|1" />
            <dependentPart index="0>2|1|0|0|1" />
        </movingTool>
        <!-- cutter -->
        <movingTool index="0>2|1|0|0|0" rotSpeed="20" rotAcceleration="170" rotMax="35" rotMin="0" rotationAxis="1" axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" invertMouseAxis="true" speedFactor="0.3" >
            <dependentPart index="0>2|1|0|0|2" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- hydraulic left -->
        <movingPart index="0>2|2" referencePoint="0>2|1|2" referenceFrame="0>2|1|2" >
            <translatingPart index="0>2|2|0" />
        </movingPart>
        <!-- hydraulic right -->
        <movingPart index="0>2|3" referencePoint="0>2|1|3" referenceFrame="0>2|1|3" >
            <translatingPart index="0>2|3|0" />
        </movingPart>
        <!-- hydraulic top -->
        <movingPart index="0>2|1|1" referencePoint="0>2|1|0|2" referenceFrame="0>2|1|0|2" >
            <translatingPart index="0>2|1|1|0" />
        </movingPart>
        <!-- hydraulic cutter arm -->
        <movingPart index="0>2|1|0|1" referencePoint="0>2|1|0|0|3" referenceFrame="0>2|1|0" >
            <translatingPart index="0>2|1|0|1|0" />
        </movingPart>
        <!-- pto arm -->
        <movingPart index="0>2|1|0|0|1" localReferencePoint="0>2|1|0|0|1|0" referencePoint="0>2|1|0|3" referenceFrame="0>2|1|0" >
            <dependentPart index="0>2|1|0|0|1|0" />
        </movingPart>
        <movingPart index="0>2|1|0|0|1|0" referencePoint="0>2|1|0|3" referenceFrame="0>2|1|0|3" scaleZ="true" />
        <!-- hydraulic cutter  -->
        <movingPart index="0>2|1|0|0|2" referencePoint="0>2|1|0|0|0|0" referenceFrame="0>2|1|0|0" >
            <translatingPart index="0>2|1|0|0|2|0" />
        </movingPart>
        <movingPart index="0>2|1|0|0|0|2" referenceFrame="0>2|1|0|0|0|4" isActiveDirty="true" playSound="false" alignToWorldY="true" />
    </movingParts>

    <animations>
        <animation name="moveSupport">
            <part node="0>2|0|0|0" startTime="0" endTime="0.5" startTrans="0 0.3 0" endTrans="0 0 0" />
            <part node="0>2|0|1|0" startTime="0" endTime="0.5" startTrans="0 0.3 0" endTrans="0 0 0" />
            <part node="0>2|0|2"   startTime="0" endTime="0.5" startTrans="0.037 0.554 0.074" endTrans="0.037 0.254 0.074" />
        </animation>
    </animations>

    <stumpCutter cutNode="0>2|1|0|0|0|2|0" cutSizeY="1.4" cutSizeZ="1.7">
        <particleSystem node="0>2|1|0|0|0|3" file="$data/vehicles/particleAnimations/fsi/fsiST65TParticles.i3d" />
    </stumpCutter>

    <stumpCutterStartSound file="$data/vehicles/tools/fsi/fsiST65T_start.wav" volume="1" pitchOffset="1" />
    <stumpCutterIdleSound  file="$data/vehicles/tools/fsi/fsiST65T_idle.wav"  volume="1" pitchOffset="1" />
    <stumpCutterWorkSound  file="$data/vehicles/tools/fsi/fsiST65T_work.wav"  volume="1" pitchOffset="1" />
    <stumpCutterStopSound  file="$data/vehicles/tools/fsi/fsiST65T_stop.wav"  volume="1" pitchOffset="1" />

    <support animationName="moveSupport" />

    <washable dirtDuration="90" washDuration="1" workMultiplier="10" />

    <components count="1">
        <component1 centerOfMass="0 0.9 -0.2" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
