<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="goweilFork">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <storeData>
        <name>RBS</name>
		<specs>
            <combination filterCategory="frontLoaders" />
            <combination filterCategory="frontLoaderVehicles" />
			<capacity unitTextOverride="$l10n_unit_bale">1</capacity>
			<fillTypes>straw drygrass_windrow grass_windrow silage</fillTypes>
        </specs>
        <functions>
            <function>$l10n_function_baleCutter</function>
        </functions>
        <image>store_goeweilRBS.dds</image>
        <price>1850</price>
        <lifetime>600</lifetime>
		<rotation>0</rotation>
        <brand>GOEWEIL</brand>
        <category>animals</category>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_baleCutter</typeDesc>
        <filename>goeweilRBS.i3d</filename>
        <size width="2.5" length="2.5" lengthOffset="0"/>
		<components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="425" />
            <component solverIterationCount="10" mass="15" />
		    <joint component1="1" component2="2" node="cutterJoint" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="300 0 0" rotLimitDamping="30 0 0" rotLimitForceLimit="10 -1 -1" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>
   
	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="attacherBallLeft" filename="$data/shared/assets/lowerLinkBalls/lowerLinkBall01.i3d"/>
        <dynamicallyLoadedPart node="1" linkNode="attacherBallRight" filename="$data/shared/assets/lowerLinkBalls/lowerLinkBall01.i3d"/>
		<dynamicallyLoadedPart node="1|0" linkNode="hydraulicConnector01" filename="$data/shared/connectionHoses/connectors.i3d" />
		<dynamicallyLoadedPart node="1|0" linkNode="hydraulicConnector02" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>
   
	<attachable>
		<inputAttacherJointConfigurations>
			<inputAttacherJointConfiguration name="$l10n_configuration_input3-pointAttacher" price="0">
                <inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" jointType="implement" isControllable="true" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" upperRotationOffset="1" >
					<distanceToGround lower="0.15" upper="2" />
				</inputAttacherJoint>
				<objectChange node="FL" visibilityActive="false"  visibilityInactive="true"/>
				<objectChange node="FLHauer" visibilityActive="false"  visibilityInactive="true"/>
			</inputAttacherJointConfiguration>
			<inputAttacherJointConfiguration name="$l10n_configuration_inputEuroAttacher3-pointAttacher" price="0">
                <inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" jointType="implement" isControllable="true" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" upperRotationOffset="1" >
					<distanceToGround lower="0.15" upper="2" />
				</inputAttacherJoint>
				<inputAttacherJoint node="attacherJointFL" jointType="frontloader" />
				<objectChange node="FL" visibilityActive="true"  visibilityInactive="false"/>
				<objectChange node="FLHauer" visibilityActive="false"  visibilityInactive="true"/>
			</inputAttacherJointConfiguration>
			<inputAttacherJointConfiguration name="$l10n_configuration_inputHauerAttacher3-pointAttacher" price="100" displayBrand="HAUER">
				<inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" jointType="implement" isControllable="true" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" upperRotationOffset="1" >
					<distanceToGround lower="0.15" upper="2" />
				</inputAttacherJoint>
				<inputAttacherJoint node="attacherJointHauerFL" jointType="frontloader" />
				<objectChange node="FL" visibilityActive="false"  visibilityInactive="true"/>
				<objectChange node="FLHauer" visibilityActive="true"  visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
		</inputAttacherJointConfigurations>
    </attachable>
	
	<attacherJointControl maxTiltAngle="30">
        <control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_HYDRAULICATTACHER1" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_TRANS" />
        <control controlFunction="controlAttacherJointTilt"   controlAxis="AXIS_HYDRAULICATTACHER2" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_ROTX" />
     
		<sounds>
			<hydraulic template="defaultHydraulicSound" pitchScale="0.6" volumeScale="2" linkNode="goeweilRBS_main_component1" />
		</sounds>
	</attacherJointControl>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1 2 3" type="hydraulicIn" node="hydraulicHose01" length="1.1" diameter="0.02" straighteningFactor="0.05">
           <objectChange node="Hose01" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1 2 3" type="hydraulicOut" node="hydraulicHose02" length="1.1" diameter="0.02" straighteningFactor="0.05">
           <objectChange node="Hose02" visibilityActive="false" visibilityInactive="true"/>
		</hose>
    </connectionHoses>
	
	<vehicleTypeConfigurations title="$l10n_configuration_Tines" >
        <vehicleTypeConfiguration name="$l10n_configuration_Standard_Tines" price="0" vehicleType="goweilFork">
            <objectChange node="additionalTines" visibilityActive="false"/>
			<objectChange node="colPart01"  compoundChildActive="false" compoundChildInactive="true" />
			<objectChange node="colPart01_1"  compoundChildActive="false" compoundChildInactive="true" />
            <objectChange node="colPart07" compoundChildActive="false" compoundChildInactive="true" />
			<objectChange node="colPart07_7" compoundChildActive="false" compoundChildInactive="true" />
        </vehicleTypeConfiguration>
		<vehicleTypeConfiguration name="$l10n_configuration_Additional_Tines" price="0" vehicleType="goweilFork">
            <objectChange node="additionalTines" visibilityActive="true"/>
			<objectChange node="colPart01"  compoundChildActive="true" compoundChildInactive="false" />
            <objectChange node="colPart01_1" compoundChildActive="true" compoundChildInactive="false" />
			<objectChange node="colPart07"  compoundChildActive="true" compoundChildInactive="false" />
            <objectChange node="colPart07_7" compoundChildActive="true" compoundChildInactive="false" />
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
	<designConfigurations title="$l10n_configuration_Logo" >
        <designConfiguration name="$l10n_configuration_New" price="0">
            <objectChange node="goeweilCutterDecalsNew" visibilityActive="true" />
			<objectChange node="goeweilDecalsNew" visibilityActive="true" />
        </designConfiguration>
		<designConfiguration name="$l10n_configuration_Old" price="0">
            <objectChange node="goeweilCutterDecalsOld" visibilityActive="true" />
			<objectChange node="goeweilDecalsOld" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>
	
	<cylindered>
        <movingTools>
			 <movingTool node="cutterJoint" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.3" iconName="TOOL_OPEN_CLOSE" />
                <componentJoint index="1" anchorActor="0" />
                <rotation rotationAxis="1" rotSpeed="50" rotAcceleration="450" rotMax="0" rotMin="-50" startRot="0" />
                <dependentPart node="baleCutter" />
            </movingTool>
        </movingTools>
	
		<movingParts>
			<movingPart node="baleCutter" referencePoint="cutterRef" referenceFrame="cutterRef" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="100">
                <dependentPart node="hydraulicCylinder" />
            </movingPart>
            <movingPart node="hydraulicCylinder" referencePoint="hydraulicCylinderRef" referenceFrame="hydraulicCylinderRef" >
                <translatingPart node="hydraulicCylinderPunch" />
            </movingPart>
		</movingParts>
		
		<sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.6" volumeScale="2"   linkNode="cutterJoint" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="cutterJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.9" volumeScale="1.4" linkNode="cutterJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="cutterJoint"/>
            <actionSound template="cylinderPunch"         pitchScale="2"   volumeScale="0.5" linkNode="cutterJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="cutterJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.8" volumeScale="1.7" linkNode="cutterJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="cutterJoint"/>
            <actionSound template="thudVar2"              pitchScale="2"   volumeScale="1"   linkNode="cutterJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="cutterJoint"/>
        </sounds>
    </cylindered>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                   <fillUnit unitTextOverride="$l10n_unit_bale" fillTypes="straw drygrass_windrow grass_windrow silage" capacity="1" showInShop="false" showOnInfoHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

	<strawBlower>
        <baleTrigger node="baleTrigger" />
    </strawBlower>
	
	<dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="160" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.0" length="0.5"/>
			
			<effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShape" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="grainEffect" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" />
                </effectNode>
                <effectNode effectNode="effectParticleChopperSmoke" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false"/>
            </effects>
			<dischargeStateSound template="grassFill" pitchScale="1.0" volumeScale="5.0" fadeIn="0.5" fadeOut="1"/>
        </dischargeNode>
    </dischargeable>

	<dynamicMountAttacher node="goeweilRBS_main_component1">
        <mountCollisionMask node="colPart01" collisionMask="134225920" />
		<mountCollisionMask node="colPart01_1" collisionMask="134225920" />
		<mountCollisionMask node="colPart02" collisionMask="134225920" />
		<mountCollisionMask node="colPart02_2" collisionMask="134225920" />
		<mountCollisionMask node="colPart03" collisionMask="134225920" />
		<mountCollisionMask node="colPart03_3" collisionMask="134225920" />
		<mountCollisionMask node="colPart04" collisionMask="134225920" />
		<mountCollisionMask node="colPart04_4" collisionMask="134225920" />
		<mountCollisionMask node="colPart05" collisionMask="134225920" />
		<mountCollisionMask node="colPart05_5" collisionMask="134225920" />
		<mountCollisionMask node="colPart06" collisionMask="134225920" />
		<mountCollisionMask node="colPart06_6" collisionMask="134225920" />
		<mountCollisionMask node="colPart07" collisionMask="134225920" />
		<mountCollisionMask node="colPart07_7" collisionMask="134225920" />
    </dynamicMountAttacher>
	
	<baseMaterial>
        <material name="goeweilRBS_mat" baseNode="goeweil_vis">
            <shaderParameter name="colorMat0" value="0.02 0.15 0.5 0"/>
        </material>
    </baseMaterial>
	
	<ai>
		<agentAttachment width="2" height="1.2" length="1.3" lengthOffset="0"/>
    </ai>

	<foliageBending>
        <bendingNode minX="-1.0" maxX="1.0" minZ="-0.5" maxZ="0.55" yOffset="0.1" />
    </foliageBending>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
   
	<i3dMappings>
        <i3dMapping id="goeweilRBS_main_component1" node="0>" />
        <i3dMapping id="goeweil_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />	
		<i3dMapping id="attacherBallLeft" node="0>0|0|2|0" />
        <i3dMapping id="attacherBallRight" node="0>0|0|2|1" />
		<i3dMapping id="FL" node="0>0|0|3" />
		<i3dMapping id="attacherJointFL" node="0>0|0|3|0" />
		<i3dMapping id="FLHauer" node="0>0|0|4" />
		<i3dMapping id="attacherJointHauerFL" node="0>0|0|4|0" />
		<i3dMapping id="baleCutter" node="0>0|1|0" />
		<i3dMapping id="baleCuttercol" node="0>0|1|0|1" />
		<i3dMapping id="hydraulicCylinder" node="0>0|1|1" />
		<i3dMapping id="hydraulicCylinderPunch" node="0>0|1|1|0" />
		<i3dMapping id="hydraulicCylinderRef" node="0>0|1|0|0" />
		<i3dMapping id="cutterJoint" node="0>0|1|2" />
		<i3dMapping id="additionalTines" node="0>0|2|0" />
		<i3dMapping id="grainEffect" node="0>0|4|0" />
		<i3dMapping id="emitterShape" node="0>0|4|1" />
		<i3dMapping id="effectParticleChopperSmoke" node="0>0|4|2" />
		<i3dMapping id="dischargeNode" node="0>0|4|3" />
		<i3dMapping id="goeweilCutterDecalsNew" node="0>0|1|0|1|0" />
		<i3dMapping id="goeweilCutterDecalsOld" node="0>0|1|0|1|1" />
		<i3dMapping id="goeweilDecalsNew" node="0>0|3|0" />
		<i3dMapping id="goeweilDecalsOld" node="0>0|3|1" />
		<i3dMapping id="Hose01" node="0>1|0" />
		<i3dMapping id="Hose02" node="0>1|1" />
		<i3dMapping id="hydraulicConnector01" node="0>1|0|0" />
		<i3dMapping id="hydraulicConnector02" node="0>1|1|0" />
		<i3dMapping id="hydraulicHose01" node="0>1|2" />
		<i3dMapping id="hydraulicHose02" node="0>1|3" />
		<i3dMapping id="colPart01" node="0>3|0" />
		<i3dMapping id="colPart01_1" node="0>3|0|0" />
		<i3dMapping id="colPart02" node="0>3|1" />
		<i3dMapping id="colPart02_2" node="0>3|1|0" />
		<i3dMapping id="colPart03" node="0>3|2" />
		<i3dMapping id="colPart03_3" node="0>3|2|0" />
		<i3dMapping id="colPart04" node="0>3|3" />
		<i3dMapping id="colPart04_4" node="0>3|3|0" />
		<i3dMapping id="colPart05" node="0>3|4" />
		<i3dMapping id="colPart05_5" node="0>3|4|0" />
		<i3dMapping id="colPart06" node="0>3|5" />
		<i3dMapping id="colPart06_6" node="0>3|5|0" />
		<i3dMapping id="colPart07" node="0>3|6" />
		<i3dMapping id="colPart07_7" node="0>3|6|0" />
		<i3dMapping id="goeweilRBS_main_component2" node="1>" />
		<i3dMapping id="cutterRef" node="1>0" />
		<i3dMapping id="baleTrigger" node="1>1|0" />
    </i3dMappings>
</vehicle>
