<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="carFillable">
    <annotation>Copyright (C) MC Mods, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>Audi RS3 2020</en></name>
        <specs>
            <power>400</power>
            <maxSpeed>220</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.dds</image>
        <price>56200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Audi</brand>
        <category>cars</category>
        <shopTranslationOffset>0 0.04 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1803844</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>433242</indexBufferMemoryUsage>
        <textureMemoryUsage>15379440</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>Carrera4S.i3d</filename>
		 <sounds filename="sounds/RS3.xml"/>
        <size width="3" length="6.5"/>
        <components count="1">
            <component centerOfMass="0 0.4 0.7" solverIterationCount="15" mass="1400"/>
        </components>
         <schemaOverlay attacherJointPosition="0 0" name="CAR" />
        <mapHotspot type="CAR" />
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="0.5" repr="axisFrontLeft" driveNode="wheelFrontLeft" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="0.5" repr="axisFrontRight" driveNode="wheelFrontRight" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="0.7" repr="LRW" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="0.7" repr="RRW" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="2.5"  />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="55" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <lights>
       <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
        </states>
        <realLights>
            <low>
                <light node="frontLightLow" lightTypes="0"/>
                <light node="highBeamLow" lightTypes="1"/>
            </low>
            <high>
                <light node="frontLightHigh" lightTypes="0"/>
                <light node="highBeamHigh" lightTypes="1"/>
                <light node="backLightsHigh1" lightTypes="0 3"/>
                <brakeLight node="backLightsHigh1"/>
                <turnLightLeft node="turnLightLeftFront"/>
                <turnLightLeft node="turnLightLeftBack"/>
                <turnLightRight node="turnLightRightFront"/>
                <turnLightRight node="turnLightRightBack"/>
                <reverseLight node="reverseLight"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="frontLightStatic" lightTypes="0" intensity="3.5"/>
			<defaultLight shaderNode="StaticFrontLights1"  lightTypes="1"  />
			<defaultLight shaderNode="0>0|1|10|8"  lightTypes="0"  />
			<defaultLight shaderNode="0>0|1|10|7"  lightTypes="0"  />
			<defaultLight shaderNode="0>0|1|10|3"  lightTypes="0"  />
			<defaultLight shaderNode="0>0|14|19" lightTypes="0 3" intensity="0.2" />
			<defaultLight shaderNode="0>0|14|18" lightTypes="0 3" intensity="0.2" />
			<defaultLight shaderNode="0>0|14|17" lightTypes="0 3" intensity="0.2" />
        </defaultLights>
        <brakeLights>
            <brakeLight shaderNode="backlightsStatic" intensity="7.2"/>
        </brakeLights>
        <reverseLights>
            <reverseLight shaderNode="reverseLightsStatic"/>
        </reverseLights>
        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic"/>
            <turnLightRight shaderNode="turnlightRightStatic"/>
        </turnLights>
		<dashboards>
            <dashboard displayType="EMITTER" valueType="lightState" node="display" intensity="0.2" lightTypes="0" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </lights>
	 <licensePlates>
		<licensePlate node="0>0|15" position="FRONT"  placementArea="0.40 0.40 0.40 0.40"/>
        <licensePlate node="0>0|16"  position="BACK"   placementArea="0.40 0.40 0.40 0.40"/>
    </licensePlates>
    <enterable isTabbable="true">
        <enterReferenceNode node="Lamborghini_main_component1"/>
        <exitPoint node="exitPoint"/>
        <cameras count="2">
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="40" translation="0 0 5.5" rotation="-17.5 180 0">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
            </camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" shadowFocusBox="shadowFocusBox"/>
        </cameras>
        <mirrors>
            <mirror node="mirror01decal" prio="1"/>
            <mirror node="mirror02decal" prio="1"/>
            <mirror node="mirror03decal" prio="1"/>
        </mirrors>
        <characterNode node="player_skin" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="player_rightFoot"/>
            <target ikChain="leftFoot" targetNode="player_leftFoot"/>
            <target ikChain="rightArm" targetNode="player_rightHand" poseId="wideFingers"/>
            <target ikChain="leftArm" targetNode="player_leftHand" poseId="wideFingers"/>
        </characterNode>
        <characterTargetNodeModifier node="player_rightFoot" transitionTime="0.1">
            <state node="player_rightFootGas" referenceNode="gasPedal"/>
            <state node="player_rightFootBrake" referenceNode="brakePedal"/>
        </characterTargetNodeModifier>
    </enterable>
    <attacherJoints>
        <attacherJoint node="trailerAttacherJointBack" jointType="trailer" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
          
        </attacherJoint>
        <attacherJoint node="trailerAttacherJointBack" jointType="trailerLow" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
           
        </attacherJoint>
    </attacherJoints>
    <connectionHoses>
        <target attacherJointIndices="1 2" type="electric" node="electricBack" socket="electric"/>
    </connectionHoses>
    <drivable>
 
        <steeringWheel node="steeringWheel" indoorRotation="340" outdoorRotation="60"/>
        <dashboards>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="gasPedal" minRot="0 0 0" maxRot="30 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="brakePedal" minRot="0 0 0" maxRot="20 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="100" >
					 <exactFillRootNode node="0>0|17|0|0" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="90" fillType="diesel"/>
                <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" 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.8" differentialIndex1="1" differentialIndex2="2" /> <!-- front-back -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="2.5L Turbo" hp=" 400" price="0">
                <motor torqueScale="1.6" minRpm="1000" maxRpm="6000" maxForwardSpeed="120" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0002">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="67" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
			<motorConfiguration name="APR STAGE 1" hp="459" price="600">
                <motor torqueScale="1.8" minRpm="1000" maxRpm="6000" maxForwardSpeed="220" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0002">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="67" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
			<motorConfiguration name="UNITRONIC STAGE 2" hp="554" price="1000">
                <motor torqueScale="2.0" minRpm="1000" maxRpm="6000" maxForwardSpeed="220" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0002">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="67" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
			<motorConfiguration name="UNITRONIC STAGE 3" hp="652" price="1800">
                <motor torqueScale="2.5" minRpm="1000" maxRpm="6000" maxForwardSpeed="240" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0002">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="67" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>
       
		<dashboards>
            <dashboard displayType="ANIMATION" valueType="speed" intensity="0.2" animName="speedDisplay"   groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="rpm" intensity="0.2" animName="rpmDisplay"   groups="MOTOR_ACTIVE"/>
        </dashboards>
  
    </motorized>
    
   
    <suspensions>
        <suspension useCharacterTorso="true" weight="90" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1"/>
    </suspensions>
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE" isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
	<animations>
        
        <animation name="rpmDisplay">
            <part node="rpm"  startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 215"/>
        </animation>
		<animation name="speedDisplay">
            <part node="speed"  startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 215"/>
        </animation>
    </animations>
	
	
	<baseColorConfigurations useDefaultColors="true">
        <baseColorConfiguration materialTemplateName="SKODA_ENERGY_BLUE"/>
        <baseColorConfiguration materialTemplateName="SKODA_STEEL_GREY"/>
        <baseColorConfiguration materialTemplateName="SKODA_VELVET_RED_METALLIC" isDefault="true"/>
        <baseColorConfiguration materialTemplateName="SKODA_GRAPHITE_GREY_METALLIC"/>
        <baseColorConfiguration materialTemplateName="SKODA_BRILLIANT_SILVER_METALLIC"/>
        <baseColorConfiguration materialTemplateName="SKODA_RACE_BLUE_METALLIC"/>
        <baseColorConfiguration materialTemplateName="SKODA_GOLD_BRONZE" />
        <baseColorConfiguration materialTemplateName="SKODA_BLACK_MAGIC"/>
        <baseColorConfiguration materialTemplateName="SKODA_MOON_WHITE"/>

        <material materialSlotName="Paint"/>
    </baseColorConfigurations>
	
	
	
    <ai>
        <collisionTrigger node="0>0|12"/>
    </ai>
   
    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0.05"/>
    </foliageBending>
    <dischargeable requiresTipOcclusionArea="false"/>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    <i3dMappings>
        <i3dMapping id="Lamborghini_main_component1" node="0>"/>
        <i3dMapping id="pickup2014_vis" node="0>0"/>
        <i3dMapping id="wheels" node="0>0|0"/>
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0|0"/>
        <i3dMapping id="wheelFrontRight" node="0>0|0|1|0"/>
		<i3dMapping id="axisFrontLeft" node="0>0|0|0"/>
        <i3dMapping id="axisFrontRight" node="0>0|0|1"/>
        <i3dMapping id="LRW" node="0>0|0|2"/>
        <i3dMapping id="RRW" node="0>0|0|3"/>
        <i3dMapping id="frontLightLow" node="0>0|1|0"/>
        <i3dMapping id="highBeamLow" node="0>0|1|1"/>
        <i3dMapping id="frontLightHigh" node="0>0|1|2"/>
		<i3dMapping id="display" node="0>0|9|3"/>
        <i3dMapping id="highBeamHigh" node="0>0|1|3"/>
        <i3dMapping id="backLightsHigh1" node="0>0|1|4"/>
        <i3dMapping id="turnLightLeftFront" node="0>0|1|5"/>
        <i3dMapping id="turnLightLeftBack" node="0>0|1|6"/>
        <i3dMapping id="turnLightRightFront" node="0>0|1|7"/>
        <i3dMapping id="turnLightRightBack" node="0>0|1|8"/>
        <i3dMapping id="reverseLight" node="0>0|1|9"/>
        <i3dMapping id="frontLightStatic" node="0>0|1|10|0"/>
		<i3dMapping id="StaticFrontLights1" node="0>0|1|10|6" />
        <i3dMapping id="backlightsStatic" node="0>0|1|10|1"/>
        <i3dMapping id="reverseLightsStatic" node="0>0|1|10|2"/>
        <i3dMapping id="turnlightLeftStatic" node="0>0|1|10|4"/>
        <i3dMapping id="turnlightRightStatic" node="0>0|1|10|5"/>
        <i3dMapping id="outdoorCameraTarget" node="0>0|2|0"/>
        <i3dMapping id="outdoorCamera1" node="0>0|2|0|0"/>
        <i3dMapping id="indoorCamera1" node="0>0|2|1"/>
        <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="shadowFocusBox" node="0>0|2|5"/>
        <i3dMapping id="player_skin" node="0>0|3|0"/>
        <i3dMapping id="player_rightFoot" node="0>0|3|1"/>
        <i3dMapping id="player_leftFoot" node="0>0|3|2"/>
        <i3dMapping id="exitPoint" node="0>0|4"/>
        <i3dMapping id="trailerAttacherJointBack" node="0>0|5"/>
        <i3dMapping id="electricBack" node="0>0|6"/>
        <i3dMapping id="steeringWheel" node="0>0|7|0"/>
		<i3dMapping id="player_rightHand" node="0>0|7|0|1"/>
        <i3dMapping id="player_leftHand" node="0>0|7|0|0"/>
        <i3dMapping id="exhaustParticle" node="0>0|8|0"/>
        <i3dMapping id="gasPedal" node="0>0|9|0"/>
        <i3dMapping id="player_rightFootGas" node="0>0|9|0|0"/>
        <i3dMapping id="brakePedal" node="0>0|9|1"/>
        <i3dMapping id="player_rightFootBrake" node="0>0|9|1|0"/>
        <i3dMapping id="aiCollisionTrigger" node="0>0|12|0"/>
        <i3dMapping id="mirror01decal" node="0>0|13|0"/>
        <i3dMapping id="mirror02decal" node="0>0|13|1"/>
        <i3dMapping id="mirror03decal" node="0>0|13|2"/>
		<i3dMapping id="Porsche_Main" node="0>0|14|19"/>
		<i3dMapping id="speed" node="0>0|9|13" />
		<i3dMapping id="rpm" node="0>0|9|14|0" />
	
		<i3dMapping id="Plate_GB" node="0>0|15" />
		<i3dMapping id="Plate_USA" node="0>0|16" />
    </i3dMappings>
</vehicle>
