<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="ROSTRO">
    <annotation>Copyright (C) ELmodding, All Rights Reserved.</annotation>
    <storeData>
        <name>
		<en>Rostrum LF</en>
		<de>Rostrum LF</de>
		</name>
		
        <specs>
		<combination xmlFilename="R1055F.xml"/>
			<weight ignore="true" />
        </specs>
        <functions>
            <function>$l10n_function_logGrabAttachable</function>
        </functions>
        <image>store_rostro1.dds</image>
        <price>12000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>EUROMACH</brand>
        <category>wood</category>	
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_EuromachTool</typeDesc>
        <filename>ROSTRO1.i3d</filename>
        <size width="3.0" length="3.0" />
        
		<components>
            <component  solverIterationCount="20" mass="230" />
            <component  solverIterationCount="20" mass="10" />
            <component  solverIterationCount="20" mass="10" />
			<component  solverIterationCount="20" mass="50"/>
            <component  solverIterationCount="20" mass="20"/>
            <component  solverIterationCount="20" mass="20"/>
			
			<joint component1="1" component2="2" node="rostroJoint"  nodeActor1="biellaJoint2" enableCollision="true" rotLimit="90 0 0" transLimit="0 0 0" rotLimitSpring="1 0 0" rotLimitDamping="2 0 0" transLimitSpring="500 500 500" transLimitDamping="2 2 2"/>
			
            <joint component1="2" component2="3" node="biellaJoint" nodeActor1="jointJoint" enableCollision="true" rotLimit="0 0 20" transLimit="0 0 0" rotLimitSpring="0 0 1" rotLimitDamping="0 0 2" transLimitSpring="500 500 500" transLimitDamping="2 2 2" />
			
			<joint component1="3" component2="4" node="jointJoint2" nodeActor1="mountingComponentJoint" 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="grabLeftComponentJoint"  rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="0 0 300" rotLimitDamping="0 0 30" rotLimitForceLimit="-1 -1 30" />
			 
            <joint component1="4" component2="6" node="grabRightComponentJoint" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="0 0 300" rotLimitDamping="0 0 30" rotLimitForceLimit="-1 -1 30" />
			
         <collisionPair component1="2" component2="3" enabled="false" />
		 <collisionPair component1="5" component2="6" enabled="true"/>
          		 
        </components>
		
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />       
    </base>
	
	<powerConsumer ptoRpm="350" neededMinPtoPower="5" neededMaxPtoPower="40" useTurnOnState="false"/>

    <logGrab jointNode="Compound4" jointRoot="Compound4">
        <trigger node="logGrabTrigger" />
        <grab componentJoint="4" axis="2" rotationOffsetThreshold="10" rotationOffsetTime="1000"/>
        <grab componentJoint="5" axis="2" rotationOffsetThreshold="10" rotationOffsetTime="1000"/>
    </logGrab>
	
	<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>			
    </animations>

    <ai>
        <agentAttachment width="1.5" height="1.0" length="1.5" lengthOffset="0"/>
    </ai>	
	
	
	
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <cylindered>
	
        <movingTools>
		    
			<controlGroups>
                <controlGroup name="$l10n_controlGroup_logGrab" />
            </controlGroups>
		    
            <movingTool node="biellaJoint3" playSound="true" >
                
                <rotation rotSpeed="80" rotAcceleration="640" rotationAxis="1" />
				<componentJoint index="1" anchorActor="0" />
            </movingTool>
			
			<movingTool node="biellaJoint2" playSound="true" >
                
                <rotation rotSpeed="80" rotAcceleration="640" rotationAxis="3" />
				<componentJoint index="2"  anchorActor="0"/>
            </movingTool>
        
		
		
            <movingTool node="jointJoint2" playSound="true" isConsumingPower="true">
                <controls axis="AXIS_CRANE_TOOL2" invertAxis="true" mouseSpeedFactor="1" iconName="GRABBER_ROTATE_Y" />
                <rotation rotSpeed="-50" rotAcceleration="160" rotationAxis="2" startRot="0"/>
                <componentJoint index="3" anchorActor="0"/>
            </movingTool>

            
            <movingTool node="grabLeftComponentJoint" playSound="true" isConsumingPower="true">
                <controls axis="AXIS_CRANE_TOOL" invertAxis="true" mouseSpeedFactor="1" iconName="GRABBER_OPEN_CLOSE"/>
                <rotation rotSpeed="-80" rotAcceleration="300" rotMax="55" rotMin="-70" rotationAxis="2" startRot="45"/>
                <componentJoint index="4" anchorActor="0"/>
                <dependentMovingTool node="grabRightComponentJoint" speedScale="1.0" />
            </movingTool>
			
            <movingTool node="grabRightComponentJoint" playSound="true">
                <rotation rotSpeed="80" rotAcceleration="300" rotMax="70" rotMin="-55" rotationAxis="2" startRot="-45"/>
                <componentJoint index="5" anchorActor="0"/>
            </movingTool>
			
			</movingTools>
			
			<movingParts>
		
            <movingPart node="leftClaw" referencePoint="grabLeftRefFrame" referenceFrame="grabLeftRefFrame"  isActiveDirty="true" limitedAxis="2" maxUpdateDistance="125"/>
			
            <movingPart node="rightClaw" referencePoint="grabRightRefFrame" referenceFrame="grabRightRefFrame"  isActiveDirty="true" limitedAxis="2" maxUpdateDistance="125"/>

            <movingPart node="cylinder" referencePoint="cylinderRef" referenceFrame="cylinderRef" isActiveDirty="true"  maxUpdateDistance="125">
                <translatingPart node="cylinderPunch" />
				
            </movingPart>
			
            <movingPart node="clawConnectors"  referencePoint="clawConnectorsRef" referenceFrame="clawConnectorsRef" isActiveDirty="true"  maxUpdateDistance="125"/>
			
        </movingParts>

       <sounds>
            <actionSound template="defaultHydraulicSmall" pitchScale="0.4" volumeScale="1.8" linkNode="mountingComponentJoint"           actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"  fadeIn="0.1" fadeOut="0.1" />
            <actionSound template="hydraulicLayerTone2"   pitchScale="1"   volumeScale="1.5" linkNode="grabLeftComponentJoint" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"                     nodes="grabLeftComponentJoint" fadeIn="0.1" fadeOut="0.1" />
            <actionSound template="sheetImp02"            pitchScale="0.8" volumeScale="1.3" linkNode="grabLeftComponentJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"                         nodes="grabLeftComponentJoint" />
            <actionSound template="clackVar6"             pitchScale="0.6" volumeScale="1.3" linkNode="grabLeftComponentJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"                         nodes="grabLeftComponentJoint" />
            <actionSound template="foldStartMed02"        pitchScale="0.5" volumeScale="1.6" linkNode="grabLeftComponentJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"                         nodes="grabLeftComponentJoint" />
        </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="jointJoint" node="2>0|1" />
        <i3dMapping id="jointJoint2" node="2>0|2" />
        <i3dMapping id="Compound4" node="3>" />
        <i3dMapping id="grabLeftComponentJoint" node="3>0" />
        <i3dMapping id="grabRightComponentJoint" node="3>1" />
        <i3dMapping id="leftClaw" node="3>2" />
        <i3dMapping id="clawConnectors" node="3>2|0" />
        <i3dMapping id="cylinder" node="3>2|1" />
        <i3dMapping id="cylinderPunch" node="3>2|1|0" />
        <i3dMapping id="cylinderPunch1" node="3>2|1|0|0" />
        <i3dMapping id="logGrabTrigger" node="3>3" />
        <i3dMapping id="mountingComponentJoint" node="3>4" />
        <i3dMapping id="rightClaw" node="3>5" />
        <i3dMapping id="clawConnectorsRef" node="3>5|0" />
        <i3dMapping id="cylinderRef" node="3>5|1" />
        <i3dMapping id="superGrip_vis" node="3>6" />
        <i3dMapping id="rotatorConnector" node="3>6|0" />
        <i3dMapping id="Compound5" node="4>" />
        <i3dMapping id="colPart03" node="4>0" />
        <i3dMapping id="colPart04" node="4>1" />
        <i3dMapping id="colPart05" node="4>2" />
        <i3dMapping id="colPart06" node="4>3" />
        <i3dMapping id="grabLeftRef" node="4>4" />
        <i3dMapping id="grabLeftRefFrame" node="4>5" />
        <i3dMapping id="Compound6" node="5>" />
        <i3dMapping id="colPart07" node="5>0" />
        <i3dMapping id="colPart08" node="5>1" />
        <i3dMapping id="grabRightRef" node="5>2" />
        <i3dMapping id="grabRightRefFrame" node="5>3" />
    </i3dMappings>
</vehicle>
