﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="baleLoader">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Arcusin Autostack FS 63-72</en>
        <de>Arcusin Autostack FS 63-72</de>
    </name>
    <typeDesc>$l10n_TypeDesc_BaleLoader</typeDesc>
    <filename>data/vehicles/trailers/arcusin/arcusinAutostackFS63-72.i3d</filename>

    <size width="4.5" length="15" lengthOffset="-1" />

    <powerConsumer ptoRpm="450" neededPtoPower="30"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" restLoad="2.1" repr="0>0" radius="0.537" width="0.56" initialCompression="70" suspTravel="0.15" spring="20" damper="25" mass="0.3" />
        <wheel driveMode="0" restLoad="2.1" repr="0>1" radius="0.537" width="0.56" initialCompression="70" suspTravel="0.15" spring="20" damper="25" mass="0.3" />
        <wheel driveMode="0" restLoad="2.5" repr="0>2" radius="0.537" width="0.56" initialCompression="70" suspTravel="0.15" spring="20" damper="25" mass="0.3" hasTyreTracks="true" tyreTrackAtlasIndex="3" steeringAxleScale="-0.7" steeringAxleRotMax="20" steeringAxleRotMin="-20" />
        <wheel driveMode="0" restLoad="2.5" repr="0>3" radius="0.537" width="0.56" initialCompression="70" suspTravel="0.15" spring="20" damper="25" mass="0.3" hasTyreTracks="true" tyreTrackAtlasIndex="3" steeringAxleScale="-0.7" steeringAxleRotMax="20" steeringAxleRotMin="-20" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|0" linkNode="0>0" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_560_45_22_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>1" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_560_45_22_5.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>2" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_560_45_22_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>3" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_560_45_22_5.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>1</brakeForce>
    <capacity>16</capacity>

    <steeringAxleAngleScale startSpeed="10" endSpeed="70" />

    <lightCoronas>
        <lightCorona index="0>10|5" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>10|6" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>10|8|0" />
        <turnSignalRight index="0>10|8|1" />
    </turnSignals>

    <reverseLights>
        <reverseLight index="0>10|7" />
    </reverseLights>

    <movingTools>
        <!-- clipper -->
        <movingTool index="0>5|2|0|0">
            <!-- clipper hydraulic -->
            <dependentPart index="0>5|2|0|0|0" />
        </movingTool>
        <!-- front platform -->
        <movingTool index="0>5|4">
            <!-- move the front platform cylinder -->
            <dependentPart index="0>5|3" />
        </movingTool>
        <!-- main platform -->
        <movingTool index="0>5">
            <!-- move the main platform cylinder -->
            <dependentPart index="0>6" />
        </movingTool>
        <!-- arm -->
        <movingTool index="0>7">
            <!-- arm hydraulic -->
            <dependentPart index="0>10|4" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- clipper hydraulic -->
        <movingPart index="0>5|2|0|0|0" referencePoint="0>5|2|0|1" referenceFrame="0>5|2|0|0|1">
            <translatingPart index="0>5|2|0|0|0|0" />
        </movingPart>
        <!-- front platform cylinder -->
        <movingPart index="0>5|3" referencePoint="0>5|4|0" referenceFrame="0>5|4">
            <translatingPart index="0>5|3|0" />
        </movingPart>
        <!-- main platform cylinder -->
        <movingPart index="0>6" referencePoint="0>5|5" referenceFrame="0>">
            <translatingPart index="0>6|0" />
        </movingPart>
        <!-- arm cylinder -->
        <movingPart index="0>10|4" referencePoint="0>7|1" referenceFrame="0>7">
            <translatingPart index="0>10|4|0" />
        </movingPart>
    </movingParts>

    <animations>
        <!-- move from work to drop position -->
        <animation name="baleGrabberWorkToDrop">
            <part node="0>7|0|0" startTime="0" duration="0.6" startRot="0 0 0" endRot="-90 -56 90"/>
        </animation>
        <!-- drop bale from grabber to platform -->
        <animation name="baleGrabberDropBale">
            <part node="0>7|0|0|0" startTime="0" duration="1" startTrans="i3dValue" endTrans="0.075 0.478 -2.074" />
            <part node="0>10|1" startTime="0" duration="1" startRot="0 0 0" endRot="0 0 -1080" />
            <part node="0>10|2" startTime="0" duration="1" startRot="0 0 0" endRot="0 0 -1080" />
        </animation>
        <!-- move from transform to work position -->
        <animation name="baleGrabberTransportToWork">
            <part node="0>7" startTime="0" duration="2.5" startRot="0 0 -99.8" endRot="0 0 0"/>
        </animation>

        <animation name="frontBalePusher">
            <part node="0>8" startTime="0" duration="0.77" startTrans="0.0037 1.2301 4.2716" endTrans="0.0037 1.2301 3.07" />
        </animation>
        <animation name="balesToOtherRow">
            <part node="0>5|4|1|0" startTime="0.05" endTime="0.77" startTrans="0.075 0 0" endTrans="-1.120 0 0" />
        </animation>

        <animation name="rotatePlatform">
            <part node="0>5|4" startTime="0" duration="2" startRot="0 0 0" endRot="-92.8 0 0" />
        </animation>

        <animation name="emptyRotate">
            <part node="0>10|3|0" startTime="0" duration="2.35" endRot="-6 0 0" />
            <part node="0>10|3|0" startTime="0" duration="2.35" endTrans="-0.00004 0.03253 0" />
            <part node="0>10|3|0|0" startTime="0" duration="2.35" endTrans="0 0.54268 -0.00136" />
            <part node="0>10|3|0|0|0" startTime="0" duration="2.35" endTrans="0 0.27878 -0.00079" />
            <part node="0>5" startTime="0" duration="9" endRot="-88 0 0" />
        </animation>

        <animation name="moveBalePlaces"><!--startTrans="0.012 1.817 0.504"  -->
            <part node="0>5|2|1" startTime="0" duration="10" endTrans="0 1.817 -5.1" />
            <part node="0>5|2|0" startTime="0" duration="10" endTrans="0 0 -5.56" />
        </animation>
        <animation name="moveBalePlacesToEmpty">
            <part node="0>5|2|1" startTime="0" duration="10" endTrans="0 1.817 -5.1"/>
        </animation>
        <animation name="moveBalePusherToEmpty">
            <part node="0>5|2|0" startTime="0" duration="10" endTrans="0 0 -5.56" />
        </animation>

        <animation name="emptyHidePusher1">
            <part node="0>5|2|0|0" startTime="0" duration="1.5" endRot="-92 0 0" />
        </animation>

        <animation name="releaseFrontplattform">
            <part node="0>5|4" startTime="0" duration="1" startRot="-90 0 0" endRot="-75 0 0" />
        </animation>

        <animation name="closeGrippers">
            <part node="0>5|0" startTime="0" duration="0.6" startTrans="1.16 1.321 -0.792" endTrans="1.04 1.321 -0.792" />
            <part node="0>5|1" startTime="0" duration="0.6" startTrans="-1.16 1.321 -0.757" endTrans="-1.04 1.321 -0.757" />
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>9" startTime="0" duration="0.6" startTrans="-0.10687 0.68603 4.88527" endTrans="-0.10687 0.25175 4.88527" />
        </animation>
    </animations>

    <baleGrabber grabNode="0>7|0|0|0"/>
    <balePlaces startBalePlace="0>5|4|1" >
        <balePlace node="0>5|2|1|0" />
        <balePlace node="0>5|2|1|1" />
        <balePlace node="0>5|2|1|2" />
        <balePlace node="0>5|2|1|3" />
        <balePlace node="0>5|2|1|4" />
        <balePlace node="0>5|2|1|5" />
        <balePlace node="0>5|2|1|6" />
        <balePlace node="0>5|2|1|7" />
    </balePlaces>

    <baleTypes>
        <baleType minBaleWidth="1.2"  maxBaleWidth="1.2" minBaleHeight="0.8" maxBaleHeight="0.9" minBaleLength="2.2" maxBaleLength="2.4"/>
    </baleTypes>

    <baleloaderUVScrollParts>
        <baleloaderUVScrollPart index="0>7|0|0|1" speed="-2 0" />
    </baleloaderUVScrollParts>

    <support animationName="moveSupport" />

    <allowFillFromAir value="false" />
    <allowTipDischarge value="false" />

    <inputAttacherJoints>
        <inputAttacherJoint index="4" jointType="trailerLow" indexPTO="0>11" />
    </inputAttacherJoints>

    <baleGrabSound file="$data/vehicles/trailers/baler.wav" pitchOffset="1" volume="1"/>
    <baleLoaderHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="2.0" volume="0.5"/>
    <baleGrabParticleSystem disableDuration="0.6" position="-2 0.6 4.7" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/threshingStrawParticles.i3d" />

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
    </driveGroundParticleSystems>

    <components count="1">
        <component1 centerOfMass="0 0.62 -1" 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>
