<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="ROSTRO">
    <annotation>ELmodding, All Rights Reserved.</annotation>
    <storeData>
        <name>
		<en>Rostrum WHH (Wood Harvester Head)</en>
		<de>Rostrum WHH (Erntekopf)</de>
		</name>
		
        <specs>
		<combination xmlFilename="R1055F.xml"/>
			<weight ignore="true" />
        </specs>
        <functions>
            <function>$l10n_function_forestryCutterHead</function>
        </functions>
        <image>store_rostro2.png</image>
        <price>20000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>EUROMACH</brand>
        <category>wood</category>	
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_EuromachTool</typeDesc>
        <filename>ROSTRO2.i3d</filename>
        <size width="3.0" length="3.0" />
        
		<components>
            <component  solverIterationCount="25" mass="200" /> <!--Rostro-->
            <component  solverIterationCount="25" mass="10" /> <!--Biella-->
			<component  solverIterationCount="25" mass="30"/> <!--Rotore-->
			<component  solverIterationCount="20" mass="60" /> <!-- Attacco-->
            <component  solverIterationCount="20" mass="120" /> <!-- Cutter-->
            
			
	    <joint component1="1" component2="2" node="rostroJoint"  nodeActor1="biellaJoint2" enableCollision="false" rotLimit="120 0 0" transLimit="0 0 0" rotLimitSpring="1 0 0" rotLimitDamping="5 0 0" />
        <joint component1="2" component2="3" node="biellaJoint"  nodeActor1="attacherJoint" enableCollision="false" rotLimit="0 0 120" transLimit="0 0 0" rotLimitSpring="0 0 1" rotLimitDamping="0 0 5" />		
        <joint component1="4" component2="3" node="rotationJoint" rotLimit="0 0 0" transLimit="0 0 0" maxRotDriveForce="0.5 0.5 0.5" rotDriveVelocity="0 0 0" transLimitSpring="6000 6000 6000" transLimitDamping="100 100 100" />			
        <joint component1="4" component2="5" node="jointComp1-2"   rotLimit="0 0 0"  transLimit="0 0 0" />   
		 
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />       
    </base>
	
	<powerConsumer ptoRpm="350" neededMinPtoPower="5" neededMaxPtoPower="40" useTurnOnState="false"/>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint1" jointType="mecalacfront" >
                    <subType name="excavatorFastCoupler" showWarning="false"/>
                </inputAttacherJoint>
        </inputAttacherJoints>
		<support animationName="moveSupport" />
    </attachable>
	     
	<animations>	
        <animation name="moveSupport">
		    <part node="supportoRef" startTime="0" endTime="0.1" startTrans="0 0 0" endTrans="0 0 0" />
            <part node="supportoRef" startTime="0" endTime="0.1" startScale="0 0 0" endScale="1 1 1" />	
        </animation>

	<animation name="cutAnimation">
            <part node="cuttingBlade" startTime="0" duration="0.9" startRot="-90 0 0" endRot="-90 150 0"/>
            <part node="cuttingBlade" startTime="0.9" duration="0.1" startRot="-90 150 0" endRot="-90 0 0"/>
			<sound template="forestryTreeCut" startTime="0.01" linkNode="cuttingBlade" />
        </animation>
    
    <animation name="grabberAnimation">
            <part node="claw1" startTime="0" duration="1" startRot="-90 0 0" endRot="-90 -60 0"/>
            <part node="claw2" startTime="0" duration="1" startRot="-90 0 0" endRot="-90 60 0"/>
            <part node="claw3" startTime="0" duration="1" startRot="-90 0 0" endRot="-90 -40 0"/>
            <part node="baseWheel1"   startTime="0.0" endTime="1.0" startRot="-90 0 0" endRot="-90 -20 0"/>
            <part node="baseWheel2"   startTime="0.0" endTime="1.0" startRot="-90 0 0" endRot="-90 20 0"/>
			<sound template="defaultHydraulicSound" startTime="0.01" endTime="0.99" volumeScale="1" pitchScale="0.5" linkNode="claw1"/>
            <sound template="clackVar6"             startTime="0.2"  direction="-1" volumeScale="1" pitchScale="0.7" linkNode="claw1"/>
            <sound template="foldStopMed02"         startTime="0.2"  direction="-1" volumeScale="1" pitchScale="0.7" linkNode="claw1"/>
            <sound template="clackVar6"             startTime="0.99"  direction="1" volumeScale="1" pitchScale="0.6" linkNode="claw1"/>
        </animation>

    <animation name="headerTiltAnimation">
            <part node="jointComp1-2" startTime="0" endTime="1" startRot="0 0 0" endRot="90 0 0"/>

            <sound template="hydraulicLayerTone2"   startTime="0.01" endTime="0.99" pitchScale="1.0" volumeScale="4.2" linkNode="rotationJoint" fadeIn="0.1" fadeOut="0.50"/>
            <sound template="defaultHydraulicSound" startTime="0.01" endTime="0.99" pitchScale="1.8" volumeScale="3.5" linkNode="rotationJoint" fadeIn="0.1" fadeOut="0.50"/>
            <sound template="compressedAir" startTime="0.99" volumeScale="1" pitchScale="0.7" direction="-1" linkNode="rotationJoint"/>
            <sound template="compressedAir" startTime="0.01" volumeScale="1" pitchScale="0.7" direction="1" linkNode="rotationJoint"/> 
        </animation>		
    </animations>
	
    <ai>
        <agentAttachment width="1.5" height="1.0" length="1.5" lengthOffset="0"/>
    </ai>	
	
<foliageBending>
        <bendingNode minX="-1" maxX="1" minZ="-1" maxZ="1" yOffset="0.6"/>
    </foliageBending>
   
    <woodHarvester>
        <cutNode node="cutNode" attachNode="Compound5" attachReferenceNode="attachReferenceNode" sizeY="1.8" sizeZ="2.2" maxRadius="1" releasedComponentJointIndex="5" releasedComponentJoint2Index="4"/>
		<headerJointTilt animationName="headerTiltAnimation" speedFactor="1"/>
        <cutLengths min="1" max="22" step="1.0" />
        <delimbNode node="delimbNode" sizeX="0.1" sizeY="1.3" sizeZ="1.8" delimbOnCut="true" />
        <cutAnimation name="cutAnimation" speedScale="1" cutTime="0.5" />
        <grabAnimation name="grabberAnimation" speedScale="1" />
        <treeSizeMeasure node="treeSizeMeasureNode" rotMaxRadius="1" />

        <cutEffects>
            <effectNode effectClass="ParticleEffect" effectNode="woodChipsEmitter" particleType="CRUSHER_WOOD" emitCountScale="100"/>
            <effectNode effectClass="ParticleEffect" effectNode="woodDustEmitter" particleType="CRUSHER_DUST" emitCountScale="20"/>
        </cutEffects>
		
        <delimbEffects>
            <effectNode effectClass="ParticleEffect" effectNode="effectParticleChips" particleType="CRUSHER_WOOD" emitCountScale="20"/>
            <effectNode effectClass="ParticleEffect" effectNode="effectParticleDust" particleType="CRUSHER_DUST" emitCountScale="4"/>
        </delimbEffects>
		
        <forwardingNodes>
            <animationNode node="wheel1" rotAxis="1" rotSpeed="900"  turnOnFadeTime="0" turnOffFadeTime="0" />
            <animationNode node="wheel2" rotAxis="1" rotSpeed="-900" turnOnFadeTime="0" turnOffFadeTime="0" />
        </forwardingNodes>

        <sounds>
            <delimb template="DEFAULT_TREE_DELIMB" linkNode="cuttingBlade" />
            <cut template="DEFAULT_TREE_CUT" linkNode="cuttingBlade" />
        </sounds>
		
    </woodHarvester>

<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
	
	<cylindered>
        <movingTools>
		
            <controlGroups>
                <controlGroup name="$l10n_controlGroup_forestryCutterHead" />
            </controlGroups> 		
		
            <movingTool node="rostroJoint" playSound="true" >
                
                <rotation rotSpeed="80" rotAcceleration="640" rotationAxis="1" />
				<componentJoint index="1" anchorActor="0" />
            </movingTool>
			
			<movingTool node="biellaJoint" playSound="true" >
                
                <rotation rotSpeed="80" rotAcceleration="640" rotationAxis="3" />
				<componentJoint index="3"  anchorActor="0"/>
            </movingTool>
			
			<controlGroups>
                <controlGroup name="Wood controls" />
            </controlGroups>
			
            <movingTool node="rotationJoint" playSound="true" isConsumingPower="true">
                <controls groupIndex="1" axis="AXIS_CRANE_TOOL2" invertAxis="true" mouseSpeedFactor="1.0" iconName="GRABBER_ROTATE_Y" />
                <rotation rotSpeed="-80" rotAcceleration="160"  rotationAxis="3" startRot="0"/>
                <componentJoint index="3" anchorActor="0"/>				
            </movingTool>
			
			
            
            <movingTool node="claw1" playSound="true">
                <dependentPart node="cilindro3"/>				
            </movingTool>
            <movingTool node="claw3">
                <dependentPart node="cilindro4"/>
            </movingTool>
            <movingTool node="baseWheel1">
                <dependentPart node="cilindro5"/>				
            </movingTool>
			
			<movingTool node="jointComp1-2"> 
	    	<componentJoint index="4" anchorActor="0" />
	    </movingTool>
            
        </movingTools>
		
		<movingParts>

            
			
			<movingPart node="cilindro1" referencePoint="MainRef1" referenceFrame="MainRef1" >
                <translatingPart node="cilindro1PM" />
            </movingPart>
			
			<movingPart node="cilindro2" referencePoint="MainRef2" referenceFrame="MainRef2" >
                <translatingPart node="cilindro2PM" />
            </movingPart>
			
            <movingPart node="cilindro3" referencePoint="claw2Ref" referenceFrame="claw2Ref" >
                <translatingPart node="cilindro3PM" />
            </movingPart>
            <movingPart node="cilindro4" referencePoint="claw3Ref" referenceFrame="claw3Ref" >
                <translatingPart node="cilindro4PM" />
            </movingPart>
            <movingPart node="cilindro5" referencePoint="baseWheel2Ref" referenceFrame="baseWheel2Ref" >
                <translatingPart node="cilindro5PM" />
            </movingPart>
			
			</movingParts>
		
		<sounds>
		
		<actionSound template="hydraulicLayerTone"   pitchScale="0.5" volumeScale="3" linkNode="rotationJoint" actionNames="TOOL_MOVE_NEG" nodes="rotationJoint" fadeIn="0.1" fadeOut="0.05"/>
		
        <actionSound template="hydraulicLayerTone"   pitchScale="0.5" volumeScale="3" linkNode="rotationJoint" actionNames="TOOL_MOVE_POS" nodes="rotationJoint" fadeIn="0.1" fadeOut="0.05"/>  		
		 
            <actionSound template="hydraulicLayerTone"   pitchScale="0.5" volumeScale="3" linkNode="cilindro1" actionNames="TOOL_MOVE_NEG" nodes="cilindro1" fadeIn="0.1" fadeOut="0.05"/>
			<actionSound template="hydraulicLayerTone"   pitchScale="0.5" volumeScale="3" linkNode="cilindro3" actionNames="TOOL_MOVE_NEG" nodes="cilindro3" fadeIn="0.1" fadeOut="0.05"/>
			<actionSound template="hydraulicLayerTone"   pitchScale="0.5" volumeScale="3" linkNode="cilindro4" actionNames="TOOL_MOVE_NEG" nodes="cilindro4" fadeIn="0.1" fadeOut="0.05"/>
			<actionSound template="hydraulicLayerTone"   pitchScale="0.5" volumeScale="3" linkNode="cilindro5" actionNames="TOOL_MOVE_NEG" nodes="cilindro5" fadeIn="0.1" fadeOut="0.05"/>
			
        </sounds>
		
	</cylindered>

    <i3dMappings>
        <i3dMapping id="Compound1" node="0>" />
        <i3dMapping id="ROSTRO" node="0>0" />
        <i3dMapping id="1" node="0>0|0" />
        <i3dMapping id="2" node="0>0|1" />
        <i3dMapping id="attacherJoint1" node="0>0|2" />
        <i3dMapping id="compoundChild1" node="0>0|3" />
        <i3dMapping id="compoundChild2" node="0>0|4" />
        <i3dMapping id="compoundChild3" node="0>0|5" />
        <i3dMapping id="compoundChild4" node="0>0|6" />
        <i3dMapping id="rostroJoint" node="0>0|7" />
        <i3dMapping id="supportoRef" node="0>0|8" />
        <i3dMapping id="supporto" node="0>0|8|0" />
        <i3dMapping id="Compound2" node="1>" />
        <i3dMapping id="BIELLA" node="1>0" />
        <i3dMapping id="biellaJoint" node="1>1" />
        <i3dMapping id="biellaJoint2" node="1>2" />
        <i3dMapping id="biellaJoint3" node="1>3" />
        <i3dMapping id="Compound3" node="2>" />
        <i3dMapping id="joint" node="2>0" />
        <i3dMapping id="attacherJoint" node="2>0|0" />
        <i3dMapping id="Compound4" node="3>" />
        <i3dMapping id="rotationJoint" node="3>0" />
        <i3dMapping id="telaioRotazione" node="3>1" />
        <i3dMapping id="cilindro1" node="3>1|0" />
        <i3dMapping id="cil1Ref" node="3>1|0|0" />
        <i3dMapping id="cilindro1PM" node="3>1|0|1" />
        <i3dMapping id="cilindro2" node="3>1|1" />
        <i3dMapping id="cilindro2PM" node="3>1|1|0" />
        <i3dMapping id="jointComp1-2" node="3>1|2" />
        <i3dMapping id="telaioRotazioneRef" node="3>1|3" />
        <i3dMapping id="Compound5" node="4>" />
        <i3dMapping id="MainRef" node="4>0" />
        <i3dMapping id="Main45" node="4>0|0" />
        <i3dMapping id="Main65" node="4>0|0|0" />
        <i3dMapping id="MainRef1" node="4>0|0|1" />
        <i3dMapping id="MainRef2" node="4>0|0|2" />
        <i3dMapping id="attachReferenceNode" node="4>0|0|3" />
        <i3dMapping id="baseWheel1" node="4>0|0|4" />
        <i3dMapping id="cilindro5" node="4>0|0|4|0" />
        <i3dMapping id="cilindro5PM" node="4>0|0|4|0|0" />
        <i3dMapping id="wheel1" node="4>0|0|4|1" />
        <i3dMapping id="wheel1RB" node="4>0|0|4|1|0" />
        <i3dMapping id="baseWheel2" node="4>0|0|5" />
        <i3dMapping id="baseWheel2Ref" node="4>0|0|5|0" />
        <i3dMapping id="wheel2" node="4>0|0|5|1" />
        <i3dMapping id="wheel2RB" node="4>0|0|5|1|0" />
        <i3dMapping id="cilindro4" node="4>0|0|6" />
        <i3dMapping id="cilindro4PM" node="4>0|0|6|0" />
        <i3dMapping id="claw1" node="4>0|0|7" />
        <i3dMapping id="cilindro3" node="4>0|0|7|0" />
        <i3dMapping id="cilindro3PM" node="4>0|0|7|0|0" />
        <i3dMapping id="claw1RB4" node="4>0|0|7|1" />
        <i3dMapping id="claw1RB1" node="4>0|0|7|1|0" />
        <i3dMapping id="claw1RB2" node="4>0|0|7|1|1" />
        <i3dMapping id="claw1RB3" node="4>0|0|7|1|2" />
        <i3dMapping id="claw2" node="4>0|0|8" />
        <i3dMapping id="cilindro3PmRef" node="4>0|0|8|0" />
        <i3dMapping id="claw2RB4" node="4>0|0|8|1" />
        <i3dMapping id="claw2RB1" node="4>0|0|8|1|0" />
        <i3dMapping id="claw2RB2" node="4>0|0|8|1|1" />
        <i3dMapping id="claw2RB3" node="4>0|0|8|1|2" />
        <i3dMapping id="claw2Ref" node="4>0|0|8|2" />
        <i3dMapping id="claw3" node="4>0|0|9" />
        <i3dMapping id="claw3RB3" node="4>0|0|9|0" />
        <i3dMapping id="claw3RB1" node="4>0|0|9|0|0" />
        <i3dMapping id="claw3RB2" node="4>0|0|9|0|1" />
        <i3dMapping id="claw3Ref" node="4>0|0|9|1" />
        <i3dMapping id="cutNode" node="4>0|0|10" />
        <i3dMapping id="cuttingBlade" node="4>0|0|11" />
        <i3dMapping id="cuttingBladeChain" node="4>0|0|11|0" />
        <i3dMapping id="woodChipsEmitter" node="4>0|0|11|0|0" />
        <i3dMapping id="woodDustEmitter" node="4>0|0|11|0|0|0" />
        <i3dMapping id="delimbNode" node="4>0|0|12" />
        <i3dMapping id="effectParticleChips" node="4>0|0|13" />
        <i3dMapping id="effectParticleDust" node="4>0|0|14" />
        <i3dMapping id="esagoni" node="4>0|0|15" />
        <i3dMapping id="treeSizeMeasureNode" node="4>0|0|16" />
    </i3dMappings>
</vehicle>
