<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="pickupConveyorBelt">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
		<en>Grain auger</en>
		<pl>Żmijka</pl>
		</name>
        <functions>
            <function>$l10n_function_beltSystem</function>
            <function>$l10n_function_beltSystemStart</function>
        </functions>
        <image>IS/store.dds</image>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Lizard</brand>
        <category>belts</category>
        <vertexBufferMemoryUsage>751300</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>144978</indexBufferMemoryUsage>
        <textureMemoryUsage>6117136</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	

    <base>
        <typeDesc>$l10n_typeDesc_belt</typeDesc>
        <filename>i3d/zmijka.i3d</filename>
        <size width="2" length="12" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="400" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>

    <wheels>
	
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.6">
                    <wheel filename="Wheels/3_50R6.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.2" repr="0>13|0" forcePointRatio="0.2" initialCompression="12" suspTravel="0.15" spring="10" damper="10"/>
                    </wheel>
                    <wheel filename="Wheels/3_50R6.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.2" repr="0>13|1" forcePointRatio="0.2" initialCompression="12" suspTravel="0.15" spring="10" damper="10"/>
                    </wheel>
					<wheel filename="$data/shared/wheels/trelleborg/T510/3_50R6.xml" isLeft="true">
                        <physics rotSpeed="1" restLoad="0.2" repr="0>13|2" driveNode="0>13|2|0" forcePointRatio="0.2" initialCompression="12" suspTravel="0.15" spring="10" damper="10"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
		<ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="65" rotMax="50" rotCenterWheel1="1" rotCenterWheel2="2"/>
        </ackermannSteeringConfigurations>
		
        <hubs>
            <hub linkNode="0>13|1"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true" scale="0.10 0.10 0.10" />
            <hub linkNode="0>13|0"   filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false"  scale="0.10 0.10 0.10" />
        </hubs>
		
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>8|1" jointType="trailerLow" />
        </inputAttacherJoints>
        <brakeForce>0.1</brakeForce>
    </attachable>

    <enterable isTabbable="false">
        <exitPoint node="0>4"/>
        <enterReferenceNode node="0>4"/>

        <cameras>
            <camera node="0>7|0|0" rotatable="true" rotateNode="0>7|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="25">
                <raycastNode node="0>7|1"/>
            </camera>
        </cameras>
		
    </enterable>

    <drivable>
	
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <cruiseControl minSpeed="0.01"/>
		
    </drivable>

    <motorized>
        <motorConfigurations>
            <motorConfiguration name="S-670" price="0" hp="5">
                <motor torqueScale="0.1" minRpm="1000" maxRpm="2200" maxForwardSpeed="5" maxBackwardSpeed="5" brakeForce="0.1" lowBrakeForceScale="0.05" lowBrakeForceSpeedLimit="0.1" rotInertia="0.0006">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="160" maxForwardGearRatio="400" minBackwardGearRatio="160" maxBackwardGearRatio="400" />
            </motorConfiguration>
        </motorConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="3.0" wheelIndex1="1" wheelIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
		
    </motorized>

    <foldable>
        <foldingParts startMoveDirection="0">
            <foldingPart animationName="folding" speedScale="1" />
        </foldingParts>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="0>8"	     startTime="0.1" endTime="0.1" visibility="true"/>
			<part node="0>8"	     startTime="0.1" endTime="0.2" visibility="false"/>
			<part node="0>8"       startTime="0.3" endTime="0.6" startTrans="-0.006 0.208 -1.994" endTrans="-0.006 1.135 -1.178"/>
			<part node="0>8"       startTime="0.3" endTime="0.6" startRot="-90 0 0" endRot="56.149 0 0"/>
			<part node="0>8"	     startTime="0.6" endTime="0.6" visibility="false"/>
			<part node="0>8"	     startTime="0.6" endTime="0.7" visibility="true"/>
        </animation>
    </animations>
	

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits fillTypeChangeThreshold="1">
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="500" showOnHud="false" showInShop="false" updateMass="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable requiresTipOcclusionArea="false" stopDischargeOnDeactivate="false">
        <dischargeNode node="0>3" emptySpeed="70" fillUnitIndex="1" canStartDischargeAutomatically="true" >
            <info width="0.4" length="0.4" />

           <effects>
                <effectNode effectClass="PipeEffect" 	effectNode="0>9|0" 	materialType="pipe" 	materialTypeId="1" delay="0" maxBending="1" positionUpdateNodes="0>9|1"  extraDistance="1"/>
                <effectNode 							effectNode="0>9|1" 	materialType="smoke" 	materialTypeId="1" delay="0.1" alignToWorldY="true" />
            </effects>
			
        </dischargeNode>
    </dischargeable>
	
	<conveyorBelt dischargeNodeIndex="1" >
        <animationNodes>
		    <animationNode node="0>5|0" class="ScrollingAnimation" scrollSpeed="2000" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="false" turnOnFadeTime="4" turnOffFadeTime="4"/>
			<animationNode node="0>5|2|0"    rotSpeed="-2000"  rotAxis="3" turnOnFadeTime="0.5" turnOffFadeTime="0.5" />
		    <animationNode node="0>5|1|0"    rotSpeed="-2000"  rotAxis="1" turnOnFadeTime="0.5" turnOffFadeTime="0.5" />
        </animationNodes>
		
		<effects>
            <effectNode effectClass="ConveyorBeltEffect" effectNode="0>9|2" materialType="belt" delay="0" fadeTime="2" speed="0.9" scrollLength="1" scrollSpeed="0.82" />
        </effects>
    </conveyorBelt>

	<shovel>
        <shovelNode node="0>2" fillUnitIndex="1" width="6" length="12" yOffset="-0.5" needsMovement="false" needsActivation="true" fillLitersPerSecond="500" needsAttacherVehicle="false">
        </shovelNode>
    </shovel>

    <turnOnVehicle requiresMotorTurnOn="false" turnOffOnDeactivate="false"/>
  
    <tipOccluder>
        <occlusionArea start="0>10|0" width="0>10|1" height="0>10|2"/>
    </tipOccluder>
	
	<baseMaterial>
        <material name="mat_main" baseNode="0>0">
            <shaderParameter name="colorMat3" value="0 0.25 0.75 16"/>
        </material>
		<material name="zaczep_mat" baseNode="0>8">
            <shaderParameter name="colorMat1" value="0 0.25 0.75 16"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="100" useDefaultColors="false" defaultColorIndex="8">
	    <baseMaterialConfiguration name="$l10n_Blue" color="0 0.25 0.75 16" price="100"/>
        <baseMaterialConfiguration name="$l10n_Gray" color="0.11 0.11 0.11 16" price="100"/>
	    <baseMaterialConfiguration name="$l10n_Red" color="0.65 0 0 16" price="100"/>
        <material name="mat_main" shaderParameter="colorMat3" />
		<material name="zaczep_mat" shaderParameter="colorMat1" />
    </baseMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

</vehicle>