<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="chipper3">
    <annotation/>
    <storeData>
        <name>
            <en>Peterson 4300B</en></name>
        <specs/>
        <functions>
            <function>Peterson 4300B Semi Chipper</function>
        </functions>
        <image>store_semichipper.dds</image>
        <price>145000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PETERSON</brand>
        <category>woodChippers</category>
        <shopTranslationOffset>0 0.125 0</shopTranslationOffset>
        <shopRotationOffset>0.295 0 0</shopRotationOffset>
    </storeData>
	
    <base>
        <typeDesc>$l10n_function_forestryWoodCrusher</typeDesc>
        <filename>semichipper.i3d</filename>
        <sounds filename="$data/vehicles/jenz/cobraHybrid/sounds/cobraHybrid.xml"/>
        <size width="3" length="5" height="3.85" lengthOffset="0.2"/>
        <components>
            <component centerOfMass="0.01 0.67 -0.64" solverIterationCount="10" mass="21000"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TRAILER"/>
    </base>
	
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                     <wheel filename="wheels/supasingles.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.9" repr="0>21|0" forcePointRatio="0.5" initialCompression="20" suspTravel="0.30" spring="130" damper="100" frictionScale="2"/>
                    </wheel>
                     <wheel filename="wheels/supasingles.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.9" repr="0>21|1" forcePointRatio="0.5" initialCompression="20" suspTravel="0.30" spring="130" damper="100" frictionScale="2"/>
                    </wheel>
                     <wheel filename="wheels/supasingles.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.9" repr="wheelBackLeftRepr" forcePointRatio="0.5" initialCompression="20" suspTravel="0.30" spring="130" damper="100" frictionScale="2"/>
                    </wheel>
                     <wheel filename="wheels/supasingles.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.9" repr="wheelBackRightRepr" forcePointRatio="0.5" initialCompression="20" suspTravel="0.30" spring="130" damper="100" frictionScale="2"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
	<licensePlates>
        <licensePlate node="0>11"  position="BACK"  preferedType="SQUARISH" placementArea="0.10 0.16 0.11 0.16"/>
    </licensePlates>
	
    <lights>
	    <sharedLight linkNode="0>23|5" filename="$data/shared/assets/lights/lizard/rearLight26Red_left.xml"/>
        <sharedLight linkNode="0>23|7" filename="$data/shared/assets/lights/lizard/rearLight26Red_right.xml"/>
		<sharedLight linkNode="0>23|4" filename="$data/shared/assets/lights/lizard/rearLight26Red.xml"/>
        <sharedLight linkNode="0>23|6" filename="$data/shared/assets/lights/lizard/rearLight26Red.xml"/>
		<sharedLight linkNode="0>23|8" filename="$data/shared/assets/lights/lizard/rearLight26Red.xml"/>
        <sharedLight linkNode="0>23|9" filename="$data/shared/assets/lights/lizard/rearLight26Red.xml"/>
		<sharedLight linkNode="0>23|10" filename="$data/shared/assets/lights/lizard/rearLight26Red.xml"/>

	
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
        </states>

       <realLights>
             <high>
                <light node="0>23|11" lightTypes="1"/>
                <light node="0>23|12" lightTypes="1"/>
                <light node="0>23|13" lightTypes="1"/>
                <light node="0>23|14" lightTypes="1"/>
            </high>
        </realLights> 

        <defaultLights>
            <defaultLight shaderNode="0>23|0|0"     lightTypes="1" />
            <defaultLight shaderNode="0>23|1|0"     lightTypes="1" />
            <defaultLight shaderNode="0>23|2|0"     lightTypes="1" />
            <defaultLight shaderNode="0>23|3|0"     lightTypes="1" />
        </defaultLights>
    </lights>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>3" jointType="semitrailer" upperRotationOffset="0"/>
        </inputAttacherJoints>
		<support animationName="moveSupport"/>
    </attachable>
	
    <enterable isTabbable="true">
        <enterReferenceNode node="0>"/>
        <exitPoint node="0>7"/>
		 <cameras>
            <camera node="0>13|0|0" rotatable="true" rotateNode="0>13|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="7" transMax="40" translation="0 0 11.1" rotation="-20 0 0" />
       </cameras>
    </enterable>
	
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="2" usage="70" fillType="diesel"/>
            </consumerConfiguration>
        </consumerConfigurations>
		
        <motorConfigurations>
      <motorConfiguration name="Chipper" hp="1150" price="0">
            <motor torqueScale="2.9" minRpm="800" maxRpm="3500" maxForwardSpeed="10" maxBackwardSpeed="10" brakeForce="8" lowBrakeForceScale="0.22">
                <torque normRpm="0.45" torque="0.5"/>
                <torque normRpm="0.5" torque="0.59"/>
                <torque normRpm="0.59" torque="0.75"/>
                <torque normRpm="0.72" torque="0.9"/>
                <torque normRpm="0.86" torque="1"/>
                <torque normRpm="1" torque="1.2"/>
            </motor> 
            <transmission minForwardGearRatio="12.3" maxForwardGearRatio="300" minBackwardGearRatio="32" maxBackwardGearRatio="300" name="$l10n_info_transmission_cvt"/>
        </motorConfiguration>
        </motorConfigurations>
		
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.0" wheelIndex1="1" wheelIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>16" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.4" minRpmScale="0.05" maxRpmScale="0.5" />
		</exhaustEffects>
        <motorStartDuration>3000</motorStartDuration>
    </motorized>
	
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
               <foldingParts startAnimTime="0" turnOnFoldMaxLimit="1.0" turnOnFoldMinLimit="0.98">
               <foldingPart animationName="folding" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
    <animations>
        <animation name="moveSupport">
            <part node="0>20|24" startTime="0.0" endTime="1" startTrans="0 0 0" endTrans="0 -0.322 0"/>
        </animation>
        <animation name="folding">
            <part node="0>20|0" startTime="0.0" endTime="1" startTrans="2.69971013 -1.5203315 0.00000064" endTrans="2.70000005 -1.78087151 0.00000064"/>
            <part node="0>20|4" startTime="0.0" endTime="1" startRot="0 0 0" endRot="-175 0 0"/>
            <part node="0>20|10" startTime="0.0" endTime="1" startRot="0 0 0" endRot="175 0 0"/>
        </animation>
    </animations>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" capacity="30000" fillTypes="woodChips"/>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="500">
					    <exactFillRootNode node="0>0|0" />
					</fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
    <woodCrusher cutNode="0>4|2" cutSizeY="1.3" cutSizeZ="1.6" moveColDisableCollisionPairs="false" shapeSizeDetectionNode="0>4|6" mainDrumRefNode="0>4|3|0" moveMaxForce="1" fillUnitIndex="1">
        <downForceNodes>
            <downForceNode node="0>4|4" force="2"/>
        </downForceNodes>
        <moveTriggers>
            <trigger node="0>5|2"/>
        </moveTriggers>
        <moveCollisions>
            <collision node="0>5|1"/>
        </moveCollisions>
        <crushEffects>
            <effectNode effectClass="ParticleEffect" effectNode="0>4|5|0" particleType="CRUSHER_WOOD"/>
            <effectNode effectClass="ParticleEffect" effectNode="0>4|5|1" particleType="CRUSHER_DUST"/>
        </crushEffects>
        <animationNodes>
            <animationNode node="0>6|0" rotSpeed="250" rotAxis="1"/>
			<animationNode class="ScrollingAnimation" node="0>5|0" scrollSpeed="-0.25" shaderParameterComponent="2"/>
        </animationNodes>
        <sounds>
            <start template="woodChipperStart" linkNode="0>" volumeScale="1.4"/>
            <idle  template="woodChipperIdle"  linkNode="0>" volumeScale="1.4"/>
            <work  template="woodChipperWork"  linkNode="0>" volumeScale="1.4"/>
            <stop  template="woodChipperStop"  linkNode="0>" volumeScale="1.4"/>
        </sounds>
    </woodCrusher>
	
	<fillVolumes>
        <dischargeInfos>
            <dischargeInfo>
                <node node="0>14|0" width="0.4" length="0.4" />
            </dischargeInfo>
        </dischargeInfos>
    </fillVolumes>
	
	<dischargeable requiresTipOcclusionArea="false" >
        <dischargeNode node="0>14|2"  canDischargeToGround="true" emptySpeed="900" maxDistance="55" fillUnitIndex="1" stopDischargeOnEmpty="false">
		    <raycast node="0>14|1" maxDistance="25"/>
            <info width="4.0" length="4.0" useRaycastHitPosition="true"/>

            <effects>
				<effectNode effectClass="PipeEffect" effectNode="0>14|3"     delay="0.12"  materialType="pipe"      maxBending="0.19" shapeScaleSpread="1 1 0.4 0"/>
            </effects>
        </dischargeNode>
    </dischargeable>
	
    <turnOnVehicle turnOffIfNotAllowed="true"/>
	
   	<powerConsumer ptoRpm="500" neededMinPtoPower="5" neededMaxPtoPower="40"/>
	
	<ai>
        <agentAttachment jointNode="0>3" rotCenterWheelIndices="1 2 3 4" width="2.6" height="4" length="6.5" lengthOffset="0.8"/>
    </ai>
	
    <foliageBending>
        <bendingNode minX="-1.686" maxX="-0.91" minZ="-2.244" maxZ="2.333" yOffset="-0.3"/>
        <bendingNode minX="0.91" maxX="1.686" minZ="-2.244" maxZ="2.333" yOffset="-0.3"/>
        <bendingNode minX="-1.087" maxX="1.087" minZ="-0.712" maxZ="0.857" yOffset="0.398"/>
    </foliageBending>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
    <i3dMappings>	
	    <i3dMapping id="wheelBackLeftRepr" node="0>21|2" />
        <i3dMapping id="wheelBackRightRepr" node="0>21|3" />
	</i3dMappings>
</vehicle>
