<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Ursus_N228">
	<annotation>GASEK01</annotation>
	<typeDesc>$l10n_TypeDesc_ManureSpreader</typeDesc>
	<filename>Ursus_N228.i3d</filename>
	
    <size width="3.5" length="8.0" />
	
	<wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.39204" deltaY="0.2" suspTravel="0.2" spring="100" damper="2" mass="1" />
        <wheel driveMode="0" repr="1" radius="0.39204" deltaY="0.2" suspTravel="0.2" spring="100" damper="2" mass="1" />
    </wheels>
	
    <brakeForce>2</brakeForce>
	<steeringAxleAngleScale startSpeed="5" endSpeed="70" />
	
	<powerConsumer ptoRpm="450" neededPtoPower="45"/>
    <speedLimit value="20" />
	
	<lightCoronas>
        <lightCorona index="0>12|0" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>12|1" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>12|2|0" />
        <turnSignalRight index="0>12|2|1" />
    </turnSignals>

	<workAreas>
        <workArea startIndex="0>7|0" widthIndex="0>7|1" heightIndex="0>7|2" type="sprayer" disableBackwards="false" />
    </workAreas>

	<sprayParticleSystems>
        <sprayParticleSystem type="manure" node="0>7|3" psRootNode="0" foldMinLimit="0.6" foldMaxLimit="1.0" file="Particle/ManureSpreader/ManureSpreader.i3d" />
    </sprayParticleSystems>
	
	<spraySound file="$data/vehicles/trailers/manureSpreader.wav" pitchOffset="1" volume="0.7"/>

    <fillSound file="$data/vehicles/shared//manureFillSound.wav" pitchOffset="1.0" volume="1.5" />

	<sprayUsages>
        <sprayUsage fillType="manure" litersPerSecond="50" />
    </sprayUsages>

	<turnedOnRotationNodes>
        <turnedOnRotationNode index="0>6|0|0" type="manureSpreader" rotSpeed="-1000" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>6|0|1" type="manureSpreader" rotSpeed="1000" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </turnedOnRotationNodes>

	<leftDoorAnimation animationName="tipAnimationLeft" />
	<rightDoorAnimation animationName="tipAnimationRight" />
	<backDoorAnimation animationName="tipAnimationBack" />

	<support animationName="moveSupport" />
	
	<movingTools>
	<!-- support -->
        <movingTool index="0>4" componentJointIndex="0" anchorActor="0">
        </movingTool>
    </movingTools>
	
	<animations>
        <animation name="moveSupport">
            <part node="0>4" startTime="0" duration="0.5" startTrans="0.16553 0.67148 1.50654" endTrans="0.16553 0.43452 1.50654" />
        </animation>
		<!-- backtipping -->
		<animation name="tipAnimationBack">
            <part node="0>5|2" startTime="0" endTime="1" startRot="0 0 0" endRot="-180 0 0"/> <!-- door -->
			<part node="0>16|1|2|0"    startTime="0" endTime="2" startRot="0 0 0" endRot="45 0 0" />
        </animation>
		<!-- tipping left -->
        <animation name="tipAnimationLeft">
			<part node="0>5|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -180"/> <!-- door -->
			<part node="0>16|1|0|0"    startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 45" />
        </animation>
		<!-- tipping right -->
        <animation name="tipAnimationRight">
            <part node="0>5|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 180"/> <!-- door -->
			<part node="0>16|1|1|0"    startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 45" />
        </animation>
	</animations>
	
	<inputAttacherJoints>
        <inputAttacherJoint index="2" jointType="trailerLow" indexPTO="0>3" />
    </inputAttacherJoints>

	<grid index="0>5|3" />
	<adapter index="0>6" />
	<additionalBoards index="0>15|0" />
	<backDoor index="0>5|2" />

	<massScale value="1" />
    <capacity>4000</capacity>
    <startFillLevel>0</startFillLevel>

	<fillRootNode index="0>" />
    <exactFillRootNode index="0>9" />
    <fillAutoAimTargetNode index="0>10" />
    <fillMassNode index="0>" />
	
	<animpasy> 
        <anim_pasow index="0>13" speed="0 -0.05 0" /> 
    </animpasy>
	
	<!-- Zbieranie Kostek -->
	<strawBales count="74" index="0>14|0" />
	<hayBales count="74" index="0>14|2" />
	<baleSearchNode index="0>14|1"/>

	<fillVolumes>
        <fillVolume index="0>8|0" />
	</fillVolumes>

	<fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>16|5|0" />
            <refNode index="0>16|5|1" />
            <node index="0>16|1|2|0" baseScale="0.95 1 1" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>16|1|2|1" baseScale="1.8 0.1 1" />
        </fillVolumeHeight>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>16|3|0" />
            <refNode index="0>16|3|1" />
            <node index="0>16|1|0|0" baseScale="1.0 1 1" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>16|1|0|1" baseScale="0.8 0.1 1" />
        </fillVolumeHeight>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>16|4|0" />
            <refNode index="0>16|4|1" />
            <node index="0>16|1|1|0" baseScale="1.0 1 1" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>16|1|1|1" baseScale="0.8 0.1 1" />
        </fillVolumeHeight>
    </fillVolumeHeights>

	<fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet silage woodChips manure wheat_windrow dryGrass_windrow"/>

	<tipReferencePoints>
        <tipReferencePoint index="0>16|0|2" width="2.5" />
        <tipReferencePoint index="0>16|0|0" width="3" />
        <tipReferencePoint index="0>16|0|1" width="3" />
    </tipReferencePoints>
	
    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="2" dischargeEndTime="9" >
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>16|1|2|0" materialType="unloading" materialTypeId="3" position="0 0 0" filename="Particle/shared/unloadingBack.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>16|1|2|0" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="Particle/shared/unloadingBack.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>16|1|2|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="Particle/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>16|1|2|1" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="Particle/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>16|1|2|1" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="Particle/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>16|1|2|1" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="Particle/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>16|1|2|1" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="Particle/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>16|2|2" width="1.0" length="1.4" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
        <tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationLeft" dischargeStartTime="2" dischargeEndTime="9">
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>16|1|0|0" materialType="unloading" materialTypeId="3" position="0 0 0" filename="Particle/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>16|1|0|0" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="Particle/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>16|1|0|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>16|1|0|1" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>16|1|0|1" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>16|1|0|1" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>16|1|0|1" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>16|2|0" width="1.0" length="2.3" />
            <fillVolumeHeight index="2"/>
        </tipAnimation>
        <tipAnimation speedScale="1" closeSpeedScale="-2" animationName="tipAnimationRight" dischargeStartTime="2" dischargeEndTime="9">
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>16|1|1|0" materialType="unloading" materialTypeId="3" position="0 0 0" filename="Particle/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>16|1|1|0" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="Particle/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>16|1|1|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>16|1|1|1" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>16|1|1|1" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>16|1|1|1" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>16|1|1|1" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="Particle/brantner/brantnerE8041Particles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>16|2|1" width="1.0" length="2.3" />
            <fillVolumeHeight index="3"/>
        </tipAnimation>
    </tipAnimations>

	<components count="2">
        <component1 centerOfMass="0.00 0.00 -1.56816" solverIterationCount="4" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>4|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>
	
	<driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
	</driveGroundParticleSystems>
		
	<schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>