<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="car">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <typeDesc>Ferrari_458</typeDesc>
    <filename>Ferrari_458.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.380" restLoad="0.58" initialCompression="40" suspTravel="0.15" spring="10" damper="3" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.5" hasParticles="true"/>
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1|0" radius="0.380" restLoad="0.58" initialCompression="40" suspTravel="0.15" spring="10" damper="3" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.5" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>2" driveNode="0>2|0" radius="0.380" restLoad="0.67" initialCompression="40" suspTravel="0.15" spring="10" damper="3" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.5" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>3" driveNode="0>3|0" radius="0.380" restLoad="0.67" initialCompression="40" suspTravel="0.15" spring="10" damper="3" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.5" hasParticles="true"/>
    </wheels>
    <ackermannSteering rotSpeed="80" rotMax="43" rotCenterWheel1="2" rotCenterWheel2="3"/>
    <speedRotScale scale="40"/>
    <maxRotatedTimeSpeed value="2"/>
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="2" wheelIndex2="3"/>
        <!-- back left-right -->
    </differentials>
    <motor torqueScale="0.93" minRpm="800" maxRpm="3500" brakeForce="1.5" lowBrakeForceScale="0.2" lowBrakeForceSpeedLimit="5" minForwardGearRatio="8" maxForwardGearRatio="25" minBackwardGearRatio="30" maxBackwardGearRatio="60">
        <torque normRpm="0.1" torque="0.55"/>
        <torque normRpm="0.2" torque="0.85"/>
        <torque normRpm="0.3" torque="0.95"/>
        <torque normRpm="0.4" torque="1"/>
        <torque normRpm="0.75" torque="1"/>
        <torque normRpm="1" torque="0.85"/>
    </motor>
    <fuelCapacity>100</fuelCapacity>
    <fuelUsage>60</fuelUsage>
    <cameras count="2">
        <camera1 index="6|0" rotatable="true" rotateNode="6" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35"/>
        <camera2 index="7" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>5|0|0" decoration="0>5|0|2" lightTypes="0"/>
            <light realLight="0>5|0|1" lightTypes="0"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>5|0|0" decoration="0>5|0|2" lightTypes="0"/>
            <light realLight="0>5|0|1" lightTypes="0"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>5|3"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft decoration="0>5|1"/>
        <turnLightRight decoration="0>5|2"/>
    </turnLights>
    <reverseLights>
        <reverseLight index="0>5|4"/>
    </reverseLights>
    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
    </indoorHud>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>10|2"/>
    <attacherJoints>
        <attacherJoint index="0>10|1" jointType="trailerLow" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false" lowerRotLimit="10 80 80" lowerTransLimit="0 0 0">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>10|1" jointType="trailer" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false" lowerRotLimit="10 80 80" lowerTransLimit="0 0 0"/>
    </attacherJoints>
    <steering index="0>4|0" indoorRotation="210" outdoorRotation="70"/>
    <characterNode index="0>9" cameraMinDistance="0.2" filename="$dataS2/character/player/player.xml" spineRotation=""/>
    <ai>
        <trafficCollisionTrigger index="0>11"/>
    </ai>
    <motorStartSound file="sons/start.wav" volume="2" pitchOffset="0.9"/>
    <motorSound file="sons/idle.wav" volume="0.5" pitchOffset="1" pitchScale="0.02" pitchMax="1"/>
    <motorSoundRun file="sons/run.wav" volume="2" pitchOffset="0.8" pitchScale="0.02" pitchMax="2"/>
    <motorStopSound file="sons/stop.wav" volume="1" pitchOffset="1"/>
    <honkSound file="sons/honk.wav" volume="2" innerRadius="35" radius="80"/>
    <attachSound file="$data/sounds/attach.wav" pitchOffset="1"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    <animParts>
        <animPart index="0>8|0" id="Porta_1" showHelp="true" rotMin="0 0 0" rotMax="0 -70 0" moveTime="2"/>
        <animPart index="0>8|1" id="Porte_2" showHelp="true" rotMin="0 0 0" rotMax="0 70 0" moveTime="2"/>
        <animPart index="0>8|2" id="Vidro_Tras" showHelp="true" rotMin="0 0 0" rotMax="45 0 0" moveTime="1"/>
        <animPart index="0>8|3" id="Motor" showHelp="true" rotMin="180 0 180" rotMax="140 0 180" moveTime="1"/>
        <animPart index="0>8|4" id="Attacher" showHelp="true" scaleMin="1 1 1" scaleMax="1000 1000 1000" moveTime="0.001"/>
    </animParts>
    <animations>
        <animation name="speedDisplay">
            <part node="0>5|5|0" startTime="0" endTime="1" startRot="0 9.0 0" endRot="0 -250 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>5|6|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -210 0"/>
        </animation>
    </animations>
    <i3dAnims>
        <anim rootnode="0>8|0|1|0" clipname="Vidro" inputBinding="Vidro" helptext="Vidro" helpTextOn="Abrir_Vidros" helpTextOff="Fechar_Vidros" speed="1" inside="true" outside="false" maxDist="1.8"/>
        <anim rootnode="0>8|1|1|0" clipname="Vidro" inputBinding="Vidro" speed="1" inside="true" outside="false" maxDist="1.8"/>
    </i3dAnims>
    <BeifahrerScript>
        <Beifahrer FarmerNodeIndex="0>16|0" NicknameNodeIndex="0>16|2">
            <Kamera index="0>16|1" rotatable="true" limit="false"/>
        </Beifahrer>
    </BeifahrerScript>
    <exhaustEffects>
        <!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>10|0|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>10|0|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"/>
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>10|0|2" 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" 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>Ferrari 458 Italia</name>
        <functions/>
        <specs/>
        <image>store.dds</image>
        <price>500000</price>
        <dailyUpkeep>350</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>TMP</brand>
        <category>cars</category>
    </storeData>
</vehicle>
