<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="car_dynamicMountAttacher">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <filename>Mercedes.i3d</filename>
    <size width="2.5" length="7.5"/>
    <wheels autoRotateBackSpeed="1.5">
        <wheel rotSpeed="1" repr="0>0" driveNode="0>0|0" radius="0.385" restLoad="0.7" initialCompression="50" suspTravel="0.15" spring="12" damper="10" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.03" hasParticles="true"/>
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1|0" radius="0.385" restLoad="0.7" initialCompression="50" suspTravel="0.15" spring="12" damper="10" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.03" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>2" driveNode="0>2|0" radius="0.385" restLoad="0.7" initialCompression="50" suspTravel="0.15" spring="12" damper="10" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.03" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>3" driveNode="0>3|0" radius="0.385" restLoad="0.7" initialCompression="50" suspTravel="0.15" spring="12" damper="10" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.03" hasParticles="true"/>
    </wheels>
    <ackermannSteering rotSpeed="80" rotMax="45" rotCenterWheel1="2" rotCenterWheel2="3"/>
    <speedRotScale scale="40"/>
    <maxRotatedTimeSpeed value="2"/>
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1"/>
        <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="2" wheelIndex2="3"/>
        <!-- back left-right -->
        <differential torqueRatio="0.3" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1"/>
        <!-- front-back -->
    </differentials>
    <motor torqueScale="0.95" minRpm="850" maxRpm="4200" brakeForce="1.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="10" maxForwardGearRatio="35" minBackwardGearRatio="27.5" maxBackwardGearRatio="50">
        <torque normRpm="0.1" torque="0.35"/>
        <torque normRpm="0.2" torque="0.65"/>
        <torque normRpm="0.3" torque="0.85"/>
        <torque normRpm="0.4" torque="1"/>
        <torque normRpm="0.75" torque="0.75"/>
        <torque normRpm="1" torque="0.65"/>
    </motor>
    <fuelCapacity>65</fuelCapacity>
    <fuelUsage>12</fuelUsage>
    <cameras count="2">
        <camera1 index="0>4|0|0" rotatable="true" rotateNode="0>4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="20"/>
        <camera2 index="0>4|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>5" decoration="0>6" lightTypes="0"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>5" decoration="0>6" lightTypes="0"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>7"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft decoration="0>12|0"/>
        <turnLightRight decoration="0>12|1"/>
    </turnLights>
    <mirrors>
        <mirror index="0>13"/>
    </mirrors>
    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
    </indoorHud>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>14"/>
    <attacherJoints>
        <attacherJoint index="0>28" jointType="trailerLow" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false" lowerRotLimit="10 80 50" lowerTransLimit="0 0 0">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    <dynamicMountAttacherTrigger triggerNode="0>22" rootNode="0>" jointNode="0>" forceAcceleration="30"/>
    <steering index="0>9|0" indoorRotation="270" outdoorRotation="70"/>
    <characterNode index="0>11|0" cameraMinDistance="2.0" filename="$dataS2/character/player/player.xml" spineRotation="180 0 90">
        <target ikChain="rightFoot" targetNode="0>11|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>11|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>9|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>9|0|1" setDirty="true"/>
    </characterNode>
    <ai>
        <trafficCollisionTrigger index="0>10"/>
    </ai>
    <motorStartSound file="$data/vehicles/steerable/cars/piQup_start.wav" volume="1" pitchOffset="1"/>
    <motorSound file="$data/vehicles/steerable/cars/piQup_idle.wav" volume="1" pitchOffset="1" pitchScale="0.017" pitchMax="1.75"/>
    <motorSoundRun file="$data/vehicles/steerable/cars/piQup_run.wav" volume="1" pitchOffset="0.65" pitchScale="0.016" pitchMax="1.75"/>
    <motorStopSound file="$data/vehicles/steerable/cars/piQup_stop.wav" volume="1" pitchOffset="0.9"/>
    <honkSound file="$data/sounds/hornCar.wav" volume="1" innerRadius="10" radius="70"/>
    <washable dirtDuration="10" washDuration="1" workMultiplier="4"/>
    <animations>
        <animation name="speedDisplay">
            <part node="0>16|0" startTime="0" endTime="1" startRot="0 5.5 0" endRot="0 -220.5 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>16|1" startTime="0" endTime="1" startRot="0 32 0" endRot="0 -170 0"/>
        </animation>
    </animations>
    <exhaustEffects>
        <!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>15|0" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.3" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>15|1" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.3" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
    <components count="1">
        <component1 centerOfMass="0 0.5 -0.35" solverIterationCount="10"/>
    </components>
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
    <storeData>
        <name>
            <de>Mercedes Benz C350 CDI</de>
            <en>Mercedes Benz C350 CDI</en>
        </name>
        <functions/>
        <specs>
            <power>185</power>
        </specs>
        <image>store.png</image>
        <price>19899</price>
        <dailyUpkeep>20</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MERCEDES</brand>
        <category>cars</category>
    </storeData>
</vehicle>
