<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="attachableCombine">
    <storeData>
        <name>Serigstad MK1340</name>
        <specs>
            <neededPower>60</neededPower>
            <workingWidth>1.5</workingWidth>
            <fillTypes>chaff</fillTypes>
        </specs>
        <functions>
            <function>$l10n_function_combine</function>
        </functions>
        <image>store.dds</image>
        <price>12900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SERIGSTAD</brand>
        <category>misc</category>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>MK1340.i3d</filename>
        <size width="3.5" length="7.0"/>
        <speedLimit value="10" />
        <components>
            <component centerOfMass="1.00 0.52 0.23" solverIterationCount="10" mass="529"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
    </base>
	
	<designConfigurations title="6 hjul">
		 <designConfiguration name="standard" price="250">
            <objectChange node="0>13|0" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>13|1" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>13|2" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>13|3" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
		 <designConfiguration name="4 hjul" price="250">
            <objectChange node="0>13|0" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>13|1" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>13|2" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>13|3" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="6 hjul" price="500">
           <objectChange node="0>13|0" visibilityActive="true" visibilityInactive="false"/>
		   <objectChange node="0>13|1" visibilityActive="true" visibilityInactive="false"/>
		   <objectChange node="0>13|2" visibilityActive="true" visibilityInactive="false"/>
		   <objectChange node="0>13|3" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="2.0">
                    <wheel hasTireTracks="true" hasParticles="true" isLeft="false">
                        <physics rotSpeed="0" restLoad="0.7" repr="0>0|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.6" tireTrackAtlasIndex="1"/>
                    </wheel>
					<wheel hasTireTracks="true" hasParticles="true" isLeft="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="0>1|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.5" tireTrackAtlasIndex="1"/>
                    </wheel>
					<wheel hasTireTracks="true" hasParticles="true" isLeft="true">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>8|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.5" tireTrackAtlasIndex="1"/>
                    </wheel>
					<wheel hasTireTracks="true" hasParticles="true" isLeft="false">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>13|1|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.5" tireTrackAtlasIndex="1"/>
                    </wheel>
					<wheel hasTireTracks="true" hasParticles="true" isLeft="true">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>13|2|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.5" tireTrackAtlasIndex="1"/>
                    </wheel>
					<wheel hasTireTracks="true" hasParticles="true" isLeft="false">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>13|3|0|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.5" tireTrackAtlasIndex="1"/>
                    </wheel>
					<wheel hasTireTracks="true" hasParticles="true" isLeft="true">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>13|3|1|0" radius="0.2" width="0.46" mass="0.07" initialCompression="25" suspTravel="0.15" spring="15" damper="20" frictionScale="1.5" tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>9|1" jointType="trailer" topReferenceNode="0>9|0" attacherHeight="0.5" upperRotationOffset="3" lowerRotLimitScale="0 0 0" allowsJointLimitMovement="false">
				<distanceToGround lower="0.4" upper="1.5" />
			</inputAttacherJoint>
            <inputAttacherJoint node="0>11" jointType="trailerLow" attacherHeight="0.5"/>
        </inputAttacherJoints>
        <brakeForce force="1" maxForce="2.5" maxForceMass="20500"/>
    </attachable>
	
    <attacherJoints>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>"/>
        </sounds>
    </attacherJoints>
	
    

	<powerTakeOffs>
        <input inputAttacherJointIndices="1" detachNode="0>12" inputNode="0>5" aboveAttacher="true"/>
    </powerTakeOffs>
	
	<workAreas>
        <workArea type="cutter" functionName="processCutterArea" disableBackwards="true" requiresGroundContact="false">
            <area startNode="0>2|0" widthNode="0>2|1" heightNode="0>2|2"/>
        </workArea>
    </workAreas>
	
	<cutter allowsForageGrowthState="true" fruitTypeCategories="directCutter" fruitTypeConverter="forageHarvester"/>

    <cylindered>
    </cylindered>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="forageHarvester" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
    <dischargeable requiresTipOcclusionArea="false" >
        <dischargeNode node="0>4|0|0|0|0|0|1" emptySpeed="900" fillUnitIndex="1" maxDistance="80" stopDischargeOnEmpty="false">
            <info width="0.4" length="0.4" useRaycastHitPosition="true"/>
            <raycast extraDistance="-1" maxDistance="55"/>

            <effects>
                <effectNode effectClass="PipeEffect" effectNode="0>4|0|0|0|0|0|4|0"  materialType="pipe" materialTypeId="1" delay="0.1" maxBending="0.25" shapeScaleSpread="2.03 1.26 1 0" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<fillVolumes>
        <dischargeInfos>
            <dischargeInfo>
                <node node="0>4|0|0|0|0|0|0" width="6" length="6.0"/>
            </dischargeInfo>
        </dischargeInfos>
    </fillVolumes>
	
    <pipe>
        <unloadingTriggers>
            <unloadingTrigger node="0>3"/>
        </unloadingTriggers>
        <pipeNodes>
            <pipeNode node="0>4|0|0|0" rotationSpeeds="0 35 0" autoAimYRotation="true" autoAimInvertZ="false" foldPriority="1">
                <state1 rotation="0 0 0"/>
                <state2 rotation="0 0 0"/>
            </pipeNode>
            <pipeNode node="0>4|0|0|0|0" rotationSpeeds="80 0 0" autoAimXRotation="true" minRotationLimits="-5 - -" maxRotationLimits="14 - -" bendingRegulation="0.15">
                <state1 rotation="0 0 0"/>
                <state2 rotation="0 0 0"/>
				<bendingRegulationNode node="0>4|0|0|0|0|0|1" axis="1" direction="1"/>
            </pipeNode>
        </pipeNodes>
        <states num="2" unloading="2" autoAiming="2" turnOnAllowed="2"/>
    </pipe>
	
    <combine allowThreshingDuringRain="true">
        <sounds>
            <start template="FORAGE_HARVESTER_RSM_TOOL_START" linkNode="0>"/>
            <work template="FORAGE_HARVESTER_RSM_TOOL_WORK" linkNode="0>"/>
            <stop template="FORAGE_HARVESTER_RSM_TOOL_STOP" linkNode="0>"/>
        </sounds>
    </combine>
	
	<turnOnVehicle turnOffIfNotAllowed="true"/>
	
    <ai supportsAIJobs="false">
		<agentAttachment/>
	</ai>
	
	<foliageBending>
        <bendingNode minX="0.06" maxX="1.48" minZ="-0.09" maxZ="0.86" node="0>4|3|0|1" />
    </foliageBending>
</vehicle>
