<?xml version="1.0" encoding="utf-8" standalone="no" ?>
   <vehicle type="trailer">
	<annotation>Copyright (C) GIANTS Software GmbH, Edit: Silak_68</annotation>
    <name>
        <en>trailer</en>
        <de>trailer</de>
        <ru>кузов</ru>
    </name>
	<typeDesc>$l10n_TypeDesc_Tipper</typeDesc>

    <filename>kuzovok.i3d</filename>

    <size width="3.5" length="10" lengthOffset="0.5" />
   
    <capacity>6000</capacity>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>8" jointType="semitrailer"/>
    </inputAttacherJoints>

    <tipReferencePoints>
        <tipReferencePoint index="0>7|0" width="2.5" />
    </tipReferencePoints>

  <fillVolumes>
        <fillVolume index="0>2|3|0" />
    </fillVolumes>

  <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>2|4|0" />
            <refNode index="0>2|4|1" />
            <node index="0>2|5|0|0" baseScale="0.95 1 1" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>2|5|0|1" baseScale="1.8 0.1 1" />
  </fillVolumeHeight>
    </fillVolumeHeights>

  <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />

 <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="2" dischargeEndTime="9" >
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>2|5|0|0" materialType="unloading" materialTypeId="3" position="0 0 0" filename="$data/vehicles/particleAnimations/shared/unloadingBack.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>2|5|0|0" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="$data/vehicles/particleAnimations/shared/unloadingBack.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>2|5|0|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>2|5|0|1" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>2|5|0|1" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>2|5|0|1" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>2|5|0|1" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>2|6|0" width="1.0" length="1.4" />
            <fillVolumeHeight index="1"/>
  </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>4" />
    <fillAutoAimTargetNode index="0>0" />
    <fillMassNode index="0>" />

       <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet silage woodChips"/>

  <movingTools>
  <!-- support -->
        <movingTool index="0>6" componentJointIndex="0" anchorActor="0"> 
   </movingTool>
        <movingTool index="0>2">
            <dependentPart index="0>3|0|0|0" />
	    </movingTool>
    </movingTools>

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

 <animations>
        <animation name="moveSupport">
                <part node="0>6|0|0|0" startTime="0.25" endTime="0.4" startRot="0 0 90" endRot="0 0 0" />
               <part node="0>6|0|1|0" startTime="0.25" endTime="0.4" startRot="0 0 -90" endRot="0 0 0" />
               <part node="0>6|1|0|0" startTime="0.25" endTime="0.4" startRot="0 0 -90" endRot="0 0 0" />
               <part node="0>6|1|1|0" startTime="0.25" endTime="0.4" startRot="0 0 90" endRot="0 0 0" />
              <part node="0>6|0" startTime="0" endTime="0.2"  startTrans="-0.031 0.989 0" endTrans="0.3 0.989 0" />
              <part node="0>6|1" startTime="0" endTime="0.2"  startTrans="0.031 0.989 0" endTrans="-0.3 0.989 0" />
              <part node="0>6|0|0|0|0|0" startTime="0.41" endTime="0.6"  startTrans="-0.061 -0.232 0.025" endTrans="-0.061 -0.232 0.692" />
              <part node="0>6|0|1|0|0|0" startTime="0.41" endTime="0.6"  startTrans="-0.061 -0.232 0.025" endTrans="-0.061 -0.232 0.692" />
              <part node="0>6|1|0|0|0|0" startTime="0.41" endTime="0.6"  startTrans="-0.061 -0.232 0.025" endTrans="-0.061 -0.232 0.692" />
              <part node="0>6|1|1|0|0|0" startTime="0.41" endTime="0.6"  startTrans="-0.061 -0.232 0.025" endTrans="-0.061 -0.232 0.692" />
        </animation>  
     <!-- backtipping -->
        <animation name="tipAnimationBack">
            <part node="0>2|0"        startTime="0.2" endTime="4" startRot="0 0 0" endRot="35 0 0" /> <!-- door -->
            <part node="0>2"          startTime="0.3" endTime="8" startRot="0 0 0" endRot="-45 0 0" /> <!-- body -->
            <part node="0>2|5|0|0"    startTime="0.1" endTime="8" startRot="0 0 0" endRot="45 0 0" />
        </animation>
  </animations>

<support animationName="moveSupport" />

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

    <components count="1">
        <component1 centerOfMass="0 1 -0.21" 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>
