<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Landbauer - www.forbidden-mods.de</annotation>

    <storeData>
        <name>Seniors eScooter</name>
        <specs>
            <power>25</power>
            <maxSpeed>30</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_eScooter</function>
        </functions>
        <image>textures/store_seniorsEscooter.png</image>
        <price>2595</price>
        <lifetime>800</lifetime>
        <rotation>0</rotation>
        <brand>LANDBAUERAG</brand>
        <category>miscVehicles</category>
        <shopHeight>2.5</shopHeight>
        <shopTranslationOffset>0 0.01 0</shopTranslationOffset>
        <shopRotationOffset>0.3 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>seniorsEscooter.i3d</filename>
        <size width="0.5" length="1.5" height="1.3"/>
        <sounds filename="sounds/seniorsEscooter.xml" />
        <components count="1">
            <component centerOfMass="0 0.25 -0.1" solverIterationCount="10" mass="365"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="VEHICLE"/>
        <mapHotspot type="CAR" />
    </base>

    <wheels>
        <wheelConfigurations>
             <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.2">
                    <wheel filename="shared/wheels/contiHybridHT3.xml" isLeft="true" hasParticles="true" hasTireTracks="true" configId="rim">
                        <physics tipOcclusionAreaGroupId="1" mass="0.01" rotSpeed="1" restLoad="0.6" repr="axisFrontLeft" driveNode="wheelFrontLeft" radius="0.18" width="0.2" forcePointRatio="0.3" initialCompression="20" suspTravel="0.12" spring="16" damper="10" />
                    </wheel>
                    <wheel filename="shared/wheels/contiHybridHT3.xml" isLeft="false" hasParticles="true" hasTireTracks="true" configId="rim">
                        <physics tipOcclusionAreaGroupId="1" mass="0.01" rotSpeed="1" restLoad="0.6" repr="axisFrontRight" driveNode="wheelFrontRight" radius="0.18" width="0.2" forcePointRatio="0.3" initialCompression="20" suspTravel="0.12" spring="16" damper="10" />
                    </wheel>
                    <wheel filename="shared/wheels/contiHybridHT3.xml" isLeft="true" hasParticles="true" hasTireTracks="true" configId="rim">
                        <physics tipOcclusionAreaGroupId="1" mass="0.01" rotSpeed="1" restLoad="0.6" repr="axisBackLeft" driveNode="wheelBackLeft" radius="0.18" width="0.2" forcePointRatio="0.3" initialCompression="20" suspTravel="0.12" spring="16" damper="10" />
                    </wheel>
                    <wheel filename="shared/wheels/contiHybridHT3.xml" isLeft="false" hasParticles="true" hasTireTracks="true" configId="rim">
                        <physics tipOcclusionAreaGroupId="1" mass="0.01" rotSpeed="1" restLoad="0.6" repr="axisBackRight" driveNode="wheelBackRight" radius="0.18" width="0.2" forcePointRatio="0.3" initialCompression="20" suspTravel="0.12" spring="16" damper="10" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="22" rotCenterWheel1="3" rotCenterWheel2="0" />
        </ackermannSteeringConfigurations>
    </wheels>
	
    <licensePlates>
        <licensePlate node="licensePlateBack" frame="false" position="BACK" preferedType="SQUARISH" placementArea="0.094 0.135 0.095 0.135"/>
    </licensePlates>

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

        <sharedLight linkNode="frontLight"            filename="shared/lights/workingLight01.xml" />
        <sharedLight linkNode="sideMarker16Orange_01" filename="shared/lights/sideMarker16Orange.xml" />
        <sharedLight linkNode="sideMarker16Orange_02" filename="shared/lights/sideMarker16Orange.xml" />
        <sharedLight linkNode="turnLightLeft"         filename="$data/shared/assets/lights/lizard/rearLight19Orange_left.xml" />
        <sharedLight linkNode="turnLightRight"        filename="$data/shared/assets/lights/lizard/rearLight19Orange_right.xml" />

        <realLights>
            <low>
                <light node="frontLightLow" lightTypes="0"/>
            </low>

            <high>
                <light node="frontLightHigh"  lightTypes="0"/>
                <light node="backLightsHigh1" lightTypes="0" />
                <light node="highBeamHigh"    lightTypes="1"/>
                <light node="sideLightHigh1"  lightTypes="0"/>
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftHigh1" />
                <turnLightRight node="turnLightRightHigh1" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="backLightsGlass_static" lightTypes="0" intensity="40" />
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="backLightsGlass_static" intensity="75" />
        </brakeLights>

        <dashboards>
            <dashboard displayType="EMITTER" valueType="lightState" node="dashboard_decals" intensity="0.5" lightTypes="0" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </lights>

    <enterable isTabbable="true">
        <enterReferenceNode node="seniorsEscooter_main_componente1"/>
        <exitPoint node="exitPoint"/>
        <cameras>
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.8" transMax="40" translation="0 0 6" rotation="-20 180 0">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
                <raycastNode node="cameraRaycastNode3"/>
            </camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" shadowFocusBox="shadowFocusBox" suspensionNodeIndex="2"/>
        </cameras>

        <characterNode node="playerSkin" cameraMinDistance="1" spineRotation="-90 0 90">
            <target ikChain="leftFoot"  targetNode="playerLeftFootTarget"/>
            <target ikChain="rightFoot" targetNode="playerRightFootTarget"/>
            <target ikChain="leftArm"   targetNode="playerLeftHandTarget"  poseId="narrowFingers"/>
            <target ikChain="rightArm"  targetNode="playerRightHandTarget" poseId="narrowFingers"/>
        </characterNode>
    </enterable>

    <drivable>
        <steeringWheel node="steeringBase" indoorRotation="22" outdoorRotation="22" />
    </drivable>

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

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true"  isMotorRunning="true"/>
        </groups>

        <default>
            <dashboard displayType="VISIBILITY" node="displayDecal" groups="MOTOR_ACTIVE" />
        </default>
    </dashboard>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration consumersEmptyWarning="$l10n_warning_motorBatteryEmpty">
                <consumer fillUnitIndex="1" usage="1" fillType="electricCharge" />
            </consumerConfiguration>
        </consumerConfigurations>
	
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="1" wheelIndex2="2" /> <!-- front left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="3" wheelIndex2="4" /> <!-- back left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.4" differentialIndex1="1" differentialIndex2="2" /> <!-- front-back -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
	
        <motorConfigurations>
            <motorConfiguration name="eScooter" hp="25" price="0">
                <motor torqueScale="0.054" minRpm="850" maxRpm="2200" maxForwardSpeed="38" maxBackwardSpeed="8" brakeForce="0.13" lowBrakeForceScale="0" accelerationLimit="4" dampingRateScale="0.2">
                    <torque normRpm="0.45" torque="0.8"/>
                    <torque normRpm="0.5"  torque="0.95"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="0.95"/>
                    <torque normRpm="0.86" torque="0.9"/>
                    <torque normRpm="1" torque="0.85"/>
                </motor>
                <transmission minForwardGearRatio="5" maxForwardGearRatio="300" minBackwardGearRatio="32" maxBackwardGearRatio="300" name="$l10n_info_transmission_cvt" />
            </motorConfiguration>
        </motorConfigurations>
           <motorStartDuration>250</motorStartDuration>
        <dashboards>
            <groups>
                <group name="MOTOR_STARTING" isMotorStarting="true"/>
                <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
            </groups>
            <dashboard displayType="TEXT" valueType="speed" node="numbersSpeed" textSize="0.009" textMask="00.0" textColor="0.0963 0.5418 0.5054 1" font="DIGIT" emissiveScale="0.5" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="MULTI_STATE" valueType="ignitionState" node="ignitionKey" doInterpolation="true" groups="MOTOR_ACTIVE">
                <state value="0" rotation="0 0 0"/>
                <state value="1" rotation="0 -90 0"/>
                <state value="2" rotation="0 -30 0"/>
            </dashboard>
        </dashboards>
    </motorized>

    <ai>
        <agent width="0.35" length="1.25" height="1.35" lengthOffset="0.1" frontOffset="0.7" />
        <collisionTrigger node="aiCollisionNode" width="2.0" height="2.4"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.1" maxX="0.1" minZ="-1" maxZ="1" yOffset="0.3"/>
    </foliageBending>

    <baseMaterial>
        <material name="seniorsEscooter_mat" baseNode="seniorsEscooter_vis">
            <shaderParameter name="colorMat0" value="KOTTE_GREEN2"/>
            <shaderParameter name="colorMat1" value="AMAZONE_BEIGE1"/>
            <shaderParameter name="colorMat2" value="ANDERSONGROUP_GREY1"/>
            <shaderParameter name="colorMat6" value="AMAZONE_BEIGE1"/>
        </material>
    </baseMaterial> 

    <baseMaterialConfigurations price="0" useDefaultColors="false" title="$l10n_configuration_baseColor">
        <material name="seniorsEscooter_mat" shaderParameter="colorMat0"/>

        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerGreen"     color="KOTTE_GREEN2"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerOrange"    color="QUICKE_ORANGE1"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerRed"       color="ANDERSONGROUP_RED1"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerYellow"    color="ANDERSONGROUP_YELLOW1"/>
	<baseMaterialConfiguration name="$l10n_ui_colorLandbauerCreme"     color="0.922 0.839 0.638"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerBlack"     color="ANDERSONGROUP_GREY1"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerBlueMet"   color="BROCHARD_BLUE1" material="8" isDefault="true"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerGreenMet"  color="KOTTE_GREEN2" material="8"/>
        <baseMaterialConfiguration name="$l10n_ui_colorLandbauerRedMet"    color="ANDERSONGROUP_RED1" material="8"/>
    </baseMaterialConfigurations>

    <designMaterialConfigurations price="0" useDefaultColors="false"  title="$l10n_configuration_designColor">
        <material name="seniorsEscooter_mat" shaderParameter="colorMat1"/>

	<designMaterialConfiguration name="$l10n_ui_colorLandbauerGreen"     color="KOTTE_GREEN2"/>
        <designMaterialConfiguration name="$l10n_ui_colorLandbauerOrange"    color="QUICKE_ORANGE1"/>
        <designMaterialConfiguration name="$l10n_ui_colorLandbauerRed"       color="ANDERSONGROUP_RED1"/>
        <designMaterialConfiguration name="$l10n_ui_colorLandbauerYellow"    color="ANDERSONGROUP_YELLOW1"/>
	<designMaterialConfiguration name="$l10n_ui_colorLandbauerCreme"     color="0.922 0.839 0.638"/>
	<designMaterialConfiguration name="$l10n_ui_colorLandbauerBeige"     color="AMAZONE_BEIGE1" isDefault="true"/>
	<designMaterialConfiguration name="$l10n_ui_colorLandbauerBlack"     color="ANDERSONGROUP_GREY1"/>
	<designMaterialConfiguration name="$l10n_ui_colorLandbauerBlueMet"   color="BROCHARD_BLUE1" material="8"/>
	<designMaterialConfiguration name="$l10n_ui_colorLandbauerGreenMet"  color="KOTTE_GREEN2" material="8"/>
	<designMaterialConfiguration name="$l10n_ui_colorLandbauerRedMet"    color="ANDERSONGROUP_RED1" material="8"/>
    </designMaterialConfigurations>

    <designMaterial2Configurations price="0" useDefaultColors="false"  title="$l10n_configuration_seatColor">
        <material name="seniorsEscooter_mat" shaderParameter="colorMat6"/>

	<designMaterial2Configuration name="$l10n_ui_colorLandbauerGreen"  color="KOTTE_GREEN2"/>
        <designMaterial2Configuration name="$l10n_ui_colorLandbauerOrange" color="QUICKE_ORANGE1"/>
        <designMaterial2Configuration name="$l10n_ui_colorLandbauerRed"    color="ANDERSONGROUP_RED1"/>
        <designMaterial2Configuration name="$l10n_ui_colorLandbauerYellow" color="ANDERSONGROUP_YELLOW1"/>
	<designMaterial2Configuration name="$l10n_ui_colorLandbauerCreme"  color="0.922 0.839 0.638"/>
	<designMaterial2Configuration name="$l10n_ui_colorLandbauerBeige"  color="AMAZONE_BEIGE1" isDefault="true"/>
	<designMaterial2Configuration name="$l10n_ui_colorLandbauerBlack"  color="ANDERSONGROUP_GREY1"/>
    </designMaterial2Configurations>

    <designMaterial3Configurations price="0" useDefaultColors="false"  title="$l10n_configuration_basketColor">
        <material name="seniorsEscooter_mat" shaderParameter="colorMat2"/>

	<designMaterial3Configuration name="$l10n_ui_colorLandbauerGreen"  color="KOTTE_GREEN2"/>
        <designMaterial3Configuration name="$l10n_ui_colorLandbauerOrange" color="QUICKE_ORANGE1"/>
        <designMaterial3Configuration name="$l10n_ui_colorLandbauerRed"    color="ANDERSONGROUP_RED1"/>
        <designMaterial3Configuration name="$l10n_ui_colorLandbauerYellow" color="ANDERSONGROUP_YELLOW1"/>
	<designMaterial3Configuration name="$l10n_ui_colorLandbauerCreme"  color="0.922 0.839 0.638"/>
	<designMaterial3Configuration name="$l10n_ui_colorLandbauerBeige"  color="AMAZONE_BEIGE1" isDefault="true"/>
	<designMaterial3Configuration name="$l10n_ui_colorLandbauerBlack"  color="ANDERSONGROUP_GREY1"/>
    </designMaterial3Configurations>

    <rimColorConfigurations price="0" useDefaultColors="false">
	<rimColorConfiguration name="$l10n_ui_colorLandbauerGreen"     color="KOTTE_GREEN2"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerOrange"    color="QUICKE_ORANGE1"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerRed"       color="ANDERSONGROUP_RED1"/>
	<rimColorConfiguration name="$l10n_ui_colorLandbauerYellow"    color="ANDERSONGROUP_YELLOW1"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerCreme"     color="0.922 0.839 0.638"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerBlack"     color="ANDERSONGROUP_GREY1"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerSteel"     color="SHARED_WHITE1" material="8" isDefault="true"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerBlueMet"   color="BROCHARD_BLUE1" material="8"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerGreenMet"  color="KOTTE_GREEN2" material="8"/>
        <rimColorConfiguration name="$l10n_ui_colorLandbauerRedMet"    color="ANDERSONGROUP_RED1" material="8"/>
    </rimColorConfigurations>

    <designConfigurations title="$l10n_configuration_basket">
        <designConfiguration name="$l10n_configuration_valueYes" price="0">
            <objectChange node="basket" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueNo" price="0">
            <objectChange node="basket" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
    </designConfigurations>

    <design2Configurations title="$l10n_configuration_demenzDecal">
        <design2Configuration name="$l10n_configuration_valueYes" price="0">
            <objectChange node="demenz_decal" visibilityActive="true" visibilityInactive="false"/>
        </design2Configuration>
        <design2Configuration name="$l10n_configuration_valueNo" price="0">
            <objectChange node="demenz_decal" visibilityActive="false" visibilityInactive="true"/>
        </design2Configuration>
    </design2Configurations>

    <wearable wearDuration="600" workMultiplier="5" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="seniorsEscooter_main_componente1" node="0>"/>
        <i3dMapping id="seniorsEscooter_vis" node="0>0"/>
        <i3dMapping id="axisFrontLeft" node="0>0|0|0"/>
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0|0"/>
        <i3dMapping id="axisFrontRight" node="0>0|0|1"/>
        <i3dMapping id="wheelFrontRight" node="0>0|0|1|0"/>
        <i3dMapping id="axisBackLeft" node="0>0|0|2"/>
        <i3dMapping id="wheelBackLeft" node="0>0|0|2|0"/>
        <i3dMapping id="axisBackRight" node="0>0|0|3"/>
        <i3dMapping id="wheelBackRight" node="0>0|0|3|0"/>
        <i3dMapping id="outdoorCameraTarget" node="0>0|1|0"/>
        <i3dMapping id="outdoorCamera1" node="0>0|1|0|0"/>
        <i3dMapping id="indoorCamera1" node="0>0|1|1"/>
        <i3dMapping id="cameraRaycastNode1" node="0>0|1|2"/>
        <i3dMapping id="cameraRaycastNode2" node="0>0|1|3"/>
        <i3dMapping id="cameraRaycastNode3" node="0>0|1|4"/>
        <i3dMapping id="shadowFocusBox" node="0>0|1|5"/>
        <i3dMapping id="playerSkin" node="0>0|2|0"/>
        <i3dMapping id="playerLeftFootTarget" node="0>0|2|1"/>
        <i3dMapping id="playerRightFootTarget" node="0>0|2|2"/>
        <i3dMapping id="exitPoint" node="0>0|3"/>
        <i3dMapping id="frontLight" node="0>0|4|0|0"/>
        <i3dMapping id="sideMarker16Orange_01" node="0>0|4|0|1"/>
        <i3dMapping id="sideMarker16Orange_02" node="0>0|4|0|2"/>
        <i3dMapping id="turnLightLeft" node="0>0|4|0|3"/>
        <i3dMapping id="turnLightRight" node="0>0|4|0|4"/>
        <i3dMapping id="backLightsGlass_static" node="0>0|4|1|0|0"/>
        <i3dMapping id="frontLightLow" node="0>0|4|2|0"/>
        <i3dMapping id="frontLightHigh" node="0>0|4|2|1"/>
        <i3dMapping id="highBeamHigh" node="0>0|4|2|2"/>
        <i3dMapping id="backLightsHigh1" node="0>0|4|2|3"/>
        <i3dMapping id="sideLightHigh1" node="0>0|4|2|4"/>
        <i3dMapping id="turnLightLeftHigh1" node="0>0|4|2|5"/>
        <i3dMapping id="turnLightRightHigh1" node="0>0|4|2|6"/>
        <i3dMapping id="steeringBase" node="0>0|5|0|0"/>
        <i3dMapping id="ignitionKey" node="0>0|5|0|0|0|0" />
        <i3dMapping id="handleBar" node="0>0|5|0|0|1|0"/>
        <i3dMapping id="playerLeftHandTarget" node="0>0|5|0|0|1|0|0"/>
        <i3dMapping id="playerRightHandTarget" node="0>0|5|0|0|1|0|1"/>
        <i3dMapping id="basket" node="0>0|5|0|0|2|0" />
        <i3dMapping id="licensePlateBack" node="0>0|6|0" />
        <i3dMapping id="numbersSpeed" node="0>0|5|0|0|3|0"/>
        <i3dMapping id="displayDecal" node="0>0|5|0|0|3|1"/>
        <i3dMapping id="dashboard_decals" node="0>0|5|0|0|7"/>
        <i3dMapping id="demenz_decal" node="0>0|6|1" />
        <i3dMapping id="aiCollisionNode" node="0>0|8|0"/>
    </i3dMappings>
</vehicle>
