<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="palletTruck" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_palletTruck</name>
        <specs>
            <power>15</power>
            <maxSpeed>18</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_palletTruck</function>
        </functions>
        <image>store_palletTruck.dds</image>
        <price>1450</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Eliteman</brand>
        <category>miscVehicles</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>133600</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>21864</indexBufferMemoryUsage>
        <textureMemoryUsage>6040648</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<configurationSets>
        <configurationSet name="$l10n_configuration_valueDefault">
            <configuration name="attacherJoint"   index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_trailerAttacherBack">
            <configuration name="attacherJoint"   index="2" />
        </configurationSet>
    </configurationSets>

    <base>
        <typeDesc>$l10n_typeDesc_palletTruck</typeDesc>
        <filename>electricPalletTruck.i3d</filename>
        <size width="1.5" length="3" lengthOffset="0"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="50" mass="450"/>
        </components>
        <schemaOverlay name="VEHICLE" attacherJointPosition="0 0"/>
        <sounds filename="sounds/palletTruck_sound.xml"/>
    </base>
	
	<tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="0>" activationTrigger="beltActivationTrigger" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="-0.25" defaultOffsetSide="0.1" defaultHeight="2.75" interactionRadius="1.5" totalInteractionRadius="6.5">
                    <tensionBelt startNode="tensionBeltStart1" endNode="tensionBeltEnd1"/>
                    <tensionBelt startNode="tensionBeltStart2" endNode="tensionBeltEnd2"/>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="10.0">
                    <wheel hasTireTracks="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelBackLeftFake" forcePointRatio="0.5" radius="0.105" width="0.1" initialCompression="25" suspTravel="0.10" spring="20" damper="3" frictionScale="3" showSteeringAngle="false"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelBackRightFake" forcePointRatio="0.5" radius="0.105" width="0.1" initialCompression="25" suspTravel="0.10" spring="20" damper="3" frictionScale="3" showSteeringAngle="false"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
					<wheel hasTireTracks="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelBackLeftFake1" forcePointRatio="0.5" radius="0.001" width="0.1" initialCompression="25" suspTravel="0.10" spring="20" damper="3" frictionScale="3" showSteeringAngle="false"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelBackRightFake1" forcePointRatio="0.5" radius="0.001" width="0.1" initialCompression="25" suspTravel="0.10" spring="20" damper="3" frictionScale="3" showSteeringAngle="false"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="70" rotMax="60" rotCenter="0 0"/>
        </ackermannSteeringConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="wheelBack" radius="0.174"/>
        <speedRotatingPart node="wheelLeftFrontFront" radius="0.085"/>
        <speedRotatingPart node="wheelRightFrontFront" radius="0.085"/>
		<speedRotatingPart node="wheelLeftFrontBack" radius="0.085"/>
        <speedRotatingPart node="wheelRightFrontBack" radius="0.085"/>
    </speedRotatingParts>

    <enterable isTabbable="true">
        <exitPoint node="exitPoint"/>
        <enterReferenceNode node="0>"/>
        <enterAnimation name="enterAnimation"/>
        <cameras>
            <camera node="outdoorCamera" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3" transMax="40" translation="0 0 3.5" rotation="-20 180 0">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
                <raycastNode node="cameraRaycastNode3"/>
            </camera>
            <camera node="indoorCamera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" shadowFocusBox="shadowFocusBox" useDefaultPositionSmoothing="false"/>
        </cameras>
    </enterable>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration consumersEmptyWarning="$l10n_warning_motorBatteryEmpty">
                <consumer fillUnitIndex="1" usage="1" fillType="electricCharge" />
            </consumerConfiguration>
        </consumerConfigurations>
        <motorConfigurations>
            <motorConfiguration hp="15" price="0">
                <motor torqueScale="0.258" minRpm="850" maxRpm="2200" maxForwardSpeed="18" maxBackwardSpeed="5" brakeForce="0.1" lowBrakeForceScale="0.1">
                    <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="45.3" maxForwardGearRatio="250" minBackwardGearRatio="55" maxBackwardGearRatio="250"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="3.6" wheelIndex1="1" wheelIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <motorStartDuration>50</motorStartDuration>
    </motorized>

    <drivable>
        <sounds>
            <waterSplash linkNode="0>" template="WATER_SPLASH_01"/>
        </sounds>
        <steeringWheel indoorRotation="-60" node="handle_rotHorizontal" outdoorRotation="-60"/>
    </drivable>

    <animations>
        <animation name="enterAnimation">
            <part endRot="-50 0 0" endTime="1.5" node="handle_rotVertical" startRot="0 0 0" startTime="0"/>
        </animation>
        <animation name="lift">
            <part endTime="1.5" endTrans="0 0.240 0" node="front" startTime="0" startTrans="0 0 0"/>
            <part endRot="35.489 0 0" endTime="1.5" node="wheelHolderLeft" startRot="0 0 0" startTime="0"/>
            <part endRot="35.489 0 0" endTime="1.5" node="wheelHolderRight" startRot="0 0 0" startTime="0"/>
            <part endRot="54.819 0 0" endTime="1.5" node="wheelHolderLeftPart" startRot="0 0 0" startTime="0"/>
            <part endRot="54.819 0 0" endTime="1.5" node="wheelHolderRightPart" startRot="0 0 0" startTime="0"/>
        </animation>
    </animations>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts>
                    <foldingPart animationName="lift" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <cylindered>
        <movingTools>
            <movingTool node="front" playSound="true">
                <dynamicMountAttacher value="true"/>
            </movingTool>
        </movingTools>
        <sounds>
            <hydraulic linkNode="0>0|3|0" template="hydraulicLayerTone2"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="5" fillTypes="ELECTRICCHARGE" showOnHud="false" showInShop="false" unitTextOverride="$l10n_unit_kw"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <foliageBending>
        <bendingNode minX="-0.85" maxX="0.85" minZ="-1.45" maxZ="1.5" yOffset="0.22"/>
    </foliageBending>
	
	<attacherJoints comboDuration="2">
        <attacherJointConfigurations>	
            <attacherJointConfiguration name="$l10n_configuration_valueDefault" price="0">	
                <objectChange node="trailerHitch_vis" visibilityActive="false"/>
            </attacherJointConfiguration>		
            <attacherJointConfiguration name="$l10n_configuration_trailerAttacherBack" price="200">
				<attacherJoint node="trailerAttacherJoint" jointType="trailer" lowerRotLimit="10 85 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" >
						<schema position="1 0" rotation="0" invertX="false" />
				</attacherJoint>
                <objectChange node="trailerHitch_vis" visibilityActive="true"/>
            </attacherJointConfiguration>		
        </attacherJointConfigurations>
    </attacherJoints>
	
    <designMaterialConfigurations price="100" useDefaultColors="true" defaultColorIndex="37">
        <material name="palletTruck_mat" shaderParameter="colorMat1"/>
        <material name="LZ45_mat" shaderParameter="colorMat0"/>
    </designMaterialConfigurations>

    <baseMaterial>
        <material name="palletTruck_mat" baseNode="vis1">
            <shaderParameter name="colorMat0" value="CLAAS_DARKGREY1"/>
            <shaderParameter name="colorMat1" value="JCB_YELLOW1"/>
        </material>
        <material name="LZ45_mat" baseNode="trailerHitch_vis">
            <shaderParameter name="colorMat0" value="CLAAS_DARKGREY1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations defaultColorIndex="0" useDefaultColors="false">
		<baseMaterialConfiguration name="$l10n_Black" price="0" color="0.03 0.03 0.03"/>
		<baseMaterialConfiguration name="$l10n_White" price="0" color="0.5 0.5 0.5"/>
        <baseMaterialConfiguration name="$l10n_ui_colorChrome" price="300" color="SHARED_WHITE2" material="3"/>
		<material name="LZ45_mat" shaderParameter="colorMat0"/>
		<material name="palletTruck_mat" shaderParameter="colorMat1"/>
    </baseMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    <i3dMappings>
        <i3dMapping id="wheelBack" node="0>0|5|0|1|0"/>
        <i3dMapping id="wheelLeftFrontBack" node="0>0|3|0|0|0|0"/>
        <i3dMapping id="wheelLeftFrontFront" node="0>0|3|0|0|0|1"/>
        <i3dMapping id="wheelRightFrontBack" node="0>0|3|0|1|0|0"/>
        <i3dMapping id="wheelRightFrontFront" node="0>0|3|0|1|0|1"/>
        <i3dMapping id="exitPoint" node="0>0|4"/>
        <i3dMapping id="outdoorCamera" node="0>0|2|0|0"/>
        <i3dMapping id="outdoorCameraTarget" node="0>0|2|0"/>
        <i3dMapping id="cameraRaycastNode1" node="0>0|2|2"/>
        <i3dMapping id="cameraRaycastNode2" node="0>0|2|3"/>
        <i3dMapping id="cameraRaycastNode3" node="0>0|2|4"/>
        <i3dMapping id="indoorCamera" node="0>0|2|1"/>
        <i3dMapping id="shadowFocusBox" node="0>0|2|5"/>
        <i3dMapping id="handle_rotHorizontal" node="0>0|5|0"/>
        <i3dMapping id="wheelBackLeftFake" node="0>0|0|0"/>
        <i3dMapping id="wheelBackRightFake" node="0>0|0|1"/>
		<i3dMapping id="wheelBackLeftFake1" node="0>0|0|2"/>
        <i3dMapping id="wheelBackRightFake1" node="0>0|0|3"/>
        <i3dMapping id="handle_rotVertical" node="0>0|5|0|0"/>
        <i3dMapping id="front" node="0>0|3|0"/>
        <i3dMapping id="wheelHolderLeft" node="0>0|3|0|0"/>
        <i3dMapping id="wheelHolderRight" node="0>0|3|0|1"/>
        <i3dMapping id="wheelHolderLeftPart" node="0>0|3|0|0|0"/>
        <i3dMapping id="wheelHolderRightPart" node="0>0|3|0|1|0"/>
        <i3dMapping id="vis1" node="0>0|1|0"/>
        <i3dMapping id="colPartBack1" node="0>0|3|0|2|2"/>
        <i3dMapping id="colPartBack2" node="0>0|3|0|2|3"/>
        <i3dMapping id="dynamicMountNode" node="0>0|3|0|3"/>       
		<i3dMapping id="tensionBelts" node="0>0|3|0|6"/>
        <i3dMapping id="beltActivationTrigger" node="0>0|3|0|6|2"/>
        <i3dMapping id="tensionBeltStart1" node="0>0|3|0|6|0"/>
        <i3dMapping id="tensionBeltStart2" node="0>0|3|0|6|1"/>
        <i3dMapping id="tensionBeltEnd1" node="0>0|3|0|6|0|0"/>
        <i3dMapping id="tensionBeltEnd2" node="0>0|3|0|6|1|0"/>
		<i3dMapping id="trailerAttacherJoint" node="0>0|3|0|7|0"/>
		<i3dMapping id="trailerHitch_vis" node="0>0|3|0|8"/>
    </i3dMappings>
</vehicle>
