<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="ferko" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
       <name>
        <en>Agragator</en>
        <de>Agragator</de>
		<hu>Agregátor</hu>
		</name>
		<specs>
		    <combination xmlFilename="Banki1L.xml"/>
			<combination xmlFilename="vehicles/hagyomanyos/betonkevero.xml"/>
            <maxSpeed>5</maxSpeed>
        </specs>
        <image>agregator/agri.png</image>
          <price>100</price>  
        <lifetime>6000</lifetime>
		<brand>GBF</brand>
        <category>GBFE</category>
		<canBeSold>true</canBeSold>
		<showInStore>true</showInStore>
    </storeData>
    <base>
        <filename>agregator/agregator.i3d</filename>
		<typeDesc>$l10n_typeDesc_agri</typeDesc>
        <size width="2" length="1" lengthOffset="-0.1"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="10"/>
        </components>
		<canBeReset>true</canBeReset>
		<showInVehicleMenu>false</showInVehicleMenu>
        <mapHotspot available="false" />
	 <schemaOverlay attacherJointPosition="0 0" name="VEHICLE_AGREGATOR" />
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <wheels autoRotateBackSpeed="2" >
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.4" repr="0>0"  forcePointRatio="0.15" radius="0.095" width="0.12" initialCompression="20" suspTravel="0.05" spring="36" damper="10" yOffset="0.01"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.4" repr="0>1" forcePointRatio="0.15" radius="0.095" width="0.12" initialCompression="20" suspTravel="0.05" spring="36" damper="10" yOffset="0.01"/>
                    </wheel>
                    <wheel  isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.3" rotSpeed="1" repr="0>2"  radius="0.12" width="0.12" forcePointRatio="0.15" initialCompression="20" suspTravel="0.05" spring="30" damper="10" yOffset="0.015"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="60" rotCenterWheel1="1" rotCenterWheel2="2"/>
        </ackermannSteeringConfigurations>
    </wheels>

	
	<enterable isTabbable="true" enterText="$l10n_agri_mix" >
        <exitPoint node="0>10"/>
		<enterAnimation name="enterAnimation" />
        <enterReferenceNode node="0>"/>
		<characterNode node="0>13|0|0" animationNode="2" cameraMinDistance="0.01" spineRotation="270 0 90" useAnimation="true" />
        <cameras>
            <camera node="0>20|0" rotatable="true" rotateNode="0>20" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.5" transMax="40" translation="0 0 5" rotation="-20 180 0"  >
            </camera>
			<camera node="0>21" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
	   </cameras>
    </enterable>
	

	
	<drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <cruiseControl minSpeed="0.001"/>
        <steeringWheel node="0>20" indoorRotation="0" outdoorRotation="0"/>
    </drivable>

    <motorized forceSpeedHudDisplay="true" turnOnText="$l10n_action_workeron" turnOffText="$l10n_action_workeroff" >
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="10" fillType="diesel" />
            </consumerConfiguration>
        </consumerConfigurations>

        <motorConfigurations>
            <motorConfiguration name="Agragator" price="0" hp="4">
                <motor torqueScale="0.14" minRpm="850" maxRpm="2200" maxForwardSpeed="5"  maxBackwardSpeed="5" brakeForce="0.5" lowBrakeForceScale="0.1" accelerationLimit="1" dampingRateScale="0.2"  >
                    <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="350" minBackwardGearRatio="160" maxBackwardGearRatio="350" />
            </motorConfiguration>
        </motorConfigurations>

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



        <motorStartDuration>1000</motorStartDuration>
    </motorized>
	
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>16|0" jointType="agri" attacherHeight="0.65" />
        </inputAttacherJoints>
        <brakeForce force="0.1" maxForce="0.9" maxForceMass="80"/>
    </attachable>

	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="0>25" length="2.0" diameter="0.01" straighteningFactor="1.0">
            <objectChange node="0>29" visibilityActive="true" visibilityInactive="false" />
			<objectChange node="0>30|1" visibilityActive="true" visibilityInactive="false" />
			<objectChange node="0>30|3" visibilityActive="false" visibilityInactive="true" />
        </hose>

        <target attacherJointIndices="1" type="electric"        node="0>26"  socket="electric"/>
    </connectionHoses>
	

	
	<ai>
        <agentAttachment width="0.5" height="0.5" length="0.5" lengthOffset="0.0"/>
    </ai>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits removeVehicleIfEmpty="false">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="DIESEL" capacity="5" startFillType="DIESEL" startFillLevel="5">
                        <fillRootNode node="0>11"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<dischargeable stopDischargeOnDeactivate="false" requiresTipOcclusionArea="false">
        <dischargeNode node="0>24" emptySpeed="100" fillUnitIndex="1" canStartDischargeAutomatically="false"> 
            <info width="0.4" length="0.4" />
            <raycast maxDistance="20"/>
        </dischargeNode>    
    </dischargeable>
	
	
	<animations>
        <animation name="turnedOnAnimation">
            <part node="0>18" startTime="0" endTime="2.05" startRot="0 0 0" endRot="0 0 0"/>
        </animation>
		<animation name="turnedOnAnimation2" looping="true">
            <part node="0>3" startTime="0" endTime="0.1" startRot="1.3 0 0.25" endRot="1.3 0 -0.25"/>
			<part node="0>3" startTime="0.1" endTime="0.2" startRot="1.3 0 -0.25" endRot="1.3 0 0.25"/>
			<part node="0>3" startTime="0.2" endTime="0.3" startRot="1.3 0 0.25" endRot="1.3 0 -0.25"/>
			<part node="0>3" startTime="0.3" endTime="0.4" startRot="1.3 0 -0.25" endRot="1.3 0 0.25"/>
			 <part node="0>3" startTime="0.4" endTime="0.5" startRot="1.3 0 0.25" endRot="1.3 0 -0.25"/>
			<part node="0>3" startTime="0.5" endTime="0.6" startRot="1.3 0 -0.25" endRot="1.3 0 0.25"/>
			<part node="0>3" startTime="0.6" endTime="0.7" startRot="1.3 0 0.25" endRot="1.3 0 -0.25"/>
			<part node="0>3" startTime="0.7" endTime="0.8" startRot="1.3 0 -0.25" endRot="1.3 0 0.25"/>
			<part node="0>3" startTime="0.8" endTime="0.9" startRot="1.3 0 0.25" endRot="1.3 0 -0.25"/>
			<part node="0>3" startTime="0.9" endTime="1" startRot="1.3 0 -0.25" endRot="1.3 0 0.25"/>
        </animation>
		<animation name="turnedAnimation">
			<part node="0>3|8|0" startTime="0" endTime="0.01" visibility="true"  /><!--agregátor kapcsoloja ég-->
			<part node="0>3|8|0" startTime="0.01" endTime="0.02" visibility="false"  /><!--agregátor kapcsoloja nem ég-->
			<part node="0>3|8|1" startTime="0" endTime="0.01" visibility="false"  /><!--agregátor kapcsoloja ég-->
			<part node="0>3|8|1" startTime="0.01" endTime="0.02" visibility="true"  /><!--agregátor kapcsoloja nem ég-->
        </animation>
		<animation name="enterAnimation">
            <part node="0>3|7" startTime="0" endTime="2.05" startRot="0 0 0" endRot="-126 0 0"/>
			<part node="0>3" startTime="0" endTime="2.05" startRot="1.3 0 0" endRot="-4 0 0"/>
        </animation>
	</animations>                        
	
	<turnOnVehicle  requiresMotorTurnOn="false" canBeTurnedOn="true" toggleButton="TURN_ON_ALL_IMPLEMENTS" >
	<turnedOnAnimation name="turnedOnAnimation"/> 
	<turnedOnAnimation name="turnedOnAnimation2"/>   	  	
	<turnedAnimation name="turnedAnimation"/>	
		<sounds>
            <start file="agregator/sound/on.wav" />
            <work file="agregator/sound/agreg.wav" />
            <stop file="agregator/sound/off.wav" />
        </sounds>
	</turnOnVehicle>
	
	
	<pushHandTool>
        <raycast node1="0>13|1" node2="0>13|2" playerNode="0>13|0"/>
        <wheels front="2 3" back="1"/>

        <ikChains>
            <target ikChain="rightArm"  targetNode="0>19|0" poseId="wideFingers"/>
             <target ikChain="leftArm"   targetNode="0>14" poseId="wideFingers"/> 
        </ikChains>

        <customChainLimits>
            <customChainLimit chainId="leftArm" nodeIndex="1" minRx="-30" maxRx="30" minRy="40" maxRy="65" minRz="-90" maxRz="40" localLimits="true"/>
            <customChainLimit chainId="leftArm" nodeIndex="2" minRx="-25" maxRx="25" minRy="0" maxRy="0" minRz="-144" maxRz="-3" localLimits="true"/>

            <customChainLimit chainId="rightArm" nodeIndex="1" minRx="-30" maxRx="30" minRy="40" maxRy="65" minRz="-90" maxRz="40" localLimits="true"/>
            <customChainLimit chainId="rightArm" nodeIndex="2" minRx="-25" maxRx="25" minRy="0" maxRy="0" minRz="-144" maxRz="-3" localLimits="true"/>
        </customChainLimits>

        <playerConditionalAnimation>
            <item id="idle" entryTransitionDuration="0.25" exitTransitionDuration="0.25" >
                <clips>
                    <clip clipName="idleSource" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="absSmoothedForwardVelocity" lower="0.2" />
                    </conditionGroup>
                </conditions>
            </item>
            <item id="walk" entryTransitionDuration="0.25" exitTransitionDuration="0.25" >
                <clips speedScaleType="distance" speedScaleParameter="2">
                    <clip clipName="walkFwdLoopSource" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="smoothedForwardVelocity" between="0.2, 4"/>
                    </conditionGroup>
                </conditions>
            </item>
            <item id="walkBack" entryTransitionDuration="0.5" exitTransitionDuration="0.25" >
                <clips speedScaleType="distance" speedScaleParameter="2">
                    <clip clipName="walkBwdLoopSource" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="smoothedForwardVelocity" between="-3, -0.2" />
                    </conditionGroup>
                </conditions>
            </item>
        </playerConditionalAnimation>
    </pushHandTool>


	<mower fruitTypeConverter="MOWER"/>

  
    <tensionBeltObject>
        <meshNodes>
            <meshNode node="0>3|1|0"/>
        </meshNodes>
    </tensionBeltObject>
  
</vehicle>

