<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="carFillable">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Polaris Four Door</name>
        <specs>
            <power>400</power>
            <maxSpeed>120</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.dds</image>
        <price>21995</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Polaris</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>1484212</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>360324</indexBufferMemoryUsage>
        <textureMemoryUsage>14330864</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>Polaris.i3d</filename>
        <size width="2.5" length="6"/>
        <components count="1">
            <component centerOfMass="0 0.4 0.7" solverIterationCount="10" mass="3800" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>

     <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="Stock" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontLeft" driveNode="SingleFL" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="20" damper="3" frictionScale="3.5"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontRight" driveNode="SingleFR" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="20" damper="3" frictionScale="3.5"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackLeft" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="30" suspTravel="0.14" spring="25" damper="3" frictionScale="4"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackRight" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="30" suspTravel="0.14" spring="25" damper="3" frictionScale="4"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
				
				<!-- Wheels/Rims -->
				<objectChange node="SingleFL" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="SingleFR" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="SingleRL" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="SingleRR" visibilityActive="true" visibilityInactive="false"/>
            </wheelConfiguration>
			
			<wheelConfiguration name="AfterMarket" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontLeft" driveNode="DuallyFL" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="20" damper="3" frictionScale="2.5"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontRight" driveNode="DuallyFR" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="20" damper="3" frictionScale="2.5"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackLeft" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="30" suspTravel="0.14" spring="25" damper="3" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackRight" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="30" suspTravel="0.14" spring="25" damper="3" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
				
				<!-- Wheels/Rims -->
				<objectChange node="DuallyFL" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="DuallyFR" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="DuallyLR" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="DuallyRR" visibilityActive="true" visibilityInactive="false"/>
            </wheelConfiguration>
        </wheelConfigurations>
		
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="45" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
		
    </wheels>
	
	<lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
			<state lightTypes="0 1 2"/>			
        </states>
        <realLights>
            <low>
                <light node="LowBeamLow" lightTypes="1" />
            </low>
            <high>
                <light node="LowBeamLow" lightTypes="1" />
                <light node="highBeamHigh" lightTypes="2"/>
                <light node="Brakes" lightTypes="0"/>
                <brakeLight node="Brakes"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="BackLights" lightTypes="0"/>
			<defaultLight shaderNode="FrontLights" lightTypes="1"/>
			<defaultLight shaderNode="PodLight1" lightTypes="2"/>
			<defaultLight shaderNode="PodLight2" lightTypes="2"/>
        </defaultLights>
		<brakeLights>
            <brakeLight shaderNode="PodLight3"/>
			<brakeLight shaderNode="PodLight4"/>
        </brakeLights>
		<reverseLights>
            <reverseLight shaderNode="PodLight5"/>
			<reverseLight shaderNode="PodLight6"/>
        </reverseLights>
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>"/>
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>"/>
        </sounds>
    </lights>
	
    <enterable isTabbable="true" >
        <enterReferenceNode node="SuperDuty"/>
        <exitPoint node="exitPoint"/>

        <cameras count="2">
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.5" transMax="40" translation="0 0 5.75" rotation="-10 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>

        <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="rightArm" poseId="wideFingers"/>
            <target ikChain="leftArm"   targetNode="leftArm" poseId="wideFingers"/>
        </characterNode>

    </enterable>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60" />

    </drivable>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="80" >
                </fillUnit>
            </fillUnits>
        </fillUnitConfiguration>
    </fillUnitConfigurations>
    </fillUnit>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="20" 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="Turbo" hp="400" price="0">
                <motor torqueScale="2.5" minRpm="1500" maxRpm="6000" maxForwardSpeed="150" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0015">
                    <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="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>

       <exhaustEffects>
            <exhaustEffect node="exhaustParticleLeft" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.20" maxRpmScale="0.60"/>
        </exhaustEffects>

       <sounds externalSoundFile="sounds/Polaris.xml" /> 
    </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>

    <ai>
        <collisionTrigger node="aiCollisionTrigger" />
    </ai>

    <honk>
        <sound template="HONK_TRAIN" linkNode="0>" />
    </honk>

    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0" />
    </foliageBending>

	<baseMaterial>
        <material name="Chrome" baseNode="ColorSelect">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Rim">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Rim1">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Rim1">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Rim3">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Trim">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Trim1">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Trim1">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="Chrome" baseNode="Trim3">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="PodColor" baseNode="Pod.004">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="PodColor" baseNode="Pod.005">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="PodColor" baseNode="Pod.006">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="PodColor" baseNode="Pod.007">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="PodColor" baseNode="Pod.008">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
		<material name="PodColor" baseNode="Pod.009">
            <shaderParameter name="colorMat0" value="SHARED_BLACK2"/>
        </material>
    </baseMaterial>
	
	<baseMaterialConfigurations price="1000" useDefaultColors="true" defaultColorIndex="14">
        <material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="Chrome" shaderParameter="colorMat0" />
		<material name="PodColor" shaderParameter="colorMat0" />
		<material name="PodColor" shaderParameter="colorMat0" />
		<material name="PodColor" shaderParameter="colorMat0" />
		<material name="PodColor" shaderParameter="colorMat0" />
		<material name="PodColor" shaderParameter="colorMat0" />
		<material name="PodColor" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="SuperDuty" node="0>" />
        <i3dMapping id="wheelFrontLeft" node="0>0" />
        <i3dMapping id="wheelBackLeft" node="0>1" />
        <i3dMapping id="wheelFrontRight" node="0>2" />
        <i3dMapping id="wheelBackRight" node="0>3" />
        <i3dMapping id="outdoorCameraTarget" node="0>4|0" />
        <i3dMapping id="outdoorCamera1" node="0>4|0|0" />
        <i3dMapping id="indoorCamera1" node="0>4|4" />
        <i3dMapping id="cameraRaycastNode1" node="0>4|1" />
        <i3dMapping id="cameraRaycastNode2" node="0>4|2" />
        <i3dMapping id="cameraRaycastNode3" node="0>4|3" />
        <i3dMapping id="shadowFocusBox" node="0>4|5" />
        <i3dMapping id="steeringWheel" node="0>12|0" />
        <i3dMapping id="leftArm" node="0>12|0|3" />
        <i3dMapping id="rightArm" node="0>12|0|2" />
        <i3dMapping id="player_skin" node="0>8|0" />
        <i3dMapping id="player_rightFoot" node="0>8|1" />
        <i3dMapping id="player_leftFoot" node="0>8|2" />
        <i3dMapping id="exitPoint" node="0>6" />
        <i3dMapping id="aiCollisionTrigger" node="0>5" />
		<i3dMapping id="LowBeamLow" node="0>11|0" />
        <i3dMapping id="highBeamHigh" node="0>11|1" />
        <i3dMapping id="LowLights" node="0>9|0|1" />
        <i3dMapping id="Running" node="0>9|0|2" />
        <i3dMapping id="HighLights" node="0>9|0|0" />
        <i3dMapping id="brakeLights" node="0>9|4" />
        <i3dMapping id="coronasL" node="0>9|1|0|0" />
        <i3dMapping id="coronasR" node="0>9|1|1|0" />
		<i3dMapping id="reverseLights" node="0>9|3" />
		<i3dMapping id="reverseLight" node="0>11|2" />
		<i3dMapping id="turnLightRightBack" node="0>9|1|1|2" />
        <i3dMapping id="turnLightRightFront" node="0>9|1|1|1" />
        <i3dMapping id="turnLightLeftBack" node="0>9|1|0|2" />
        <i3dMapping id="turnLightLeftFront" node="0>9|1|0|1" />
		<i3dMapping id="SingleFL" node="0>0|0"/>
		<i3dMapping id="SingleFR" node="0>2|0"/>
		<i3dMapping id="SingleRL" node="0>1|0"/>
        <i3dMapping id="SingleRR" node="0>3|0"/>
		<i3dMapping id="DuallyFL" node="0>0|1"/>
		<i3dMapping id="DuallyFR" node="0>2|1"/>
		<i3dMapping id="DuallyLR" node="0>1|1"/>
        <i3dMapping id="DuallyRR" node="0>3|1"/>
		<i3dMapping id="Rim" node="0>0|0|1"/>
		<i3dMapping id="Rim1" node="0>1|0|1"/>
		<i3dMapping id="Rim2" node="0>2|0|1"/>
		<i3dMapping id="Rim3" node="0>3|0|1"/>
		<i3dMapping id="ColorSelect" node="0>11|0|0|2"/>
		<i3dMapping id="exhaustParticleLeft" node="0>7"/>
		<i3dMapping id="LowBeamLow" node="0>9|1|0"/>
		<i3dMapping id="highBeamHigh" node="0>9|1|1"/>
		<i3dMapping id="Brakes" node="0>9|1|2"/>
		<i3dMapping id="BackLights" node="0>9|0|0"/>
		<i3dMapping id="FrontLights" node="0>9|0|1"/>
		<i3dMapping id="Trim" node="0>0|1|2"/>
		<i3dMapping id="Trim1" node="0>1|1|2"/>
		<i3dMapping id="Trim2" node="0>2|1|2"/>
		<i3dMapping id="Trim3" node="0>3|1|2"/>
		<i3dMapping id="PodLight1" node="0>9|0|2|3"/>
		<i3dMapping id="PodLight2" node="0>9|0|3|3"/>
		<i3dMapping id="Pod.004" node="0>9|0|2|1"/>
		<i3dMapping id="Pod.005" node="0>9|0|3|1"/>
		<i3dMapping id="PodLight3" node="0>9|0|4|3"/>
		<i3dMapping id="PodLight4" node="0>9|0|5|3"/>
		<i3dMapping id="Pod.006" node="0>9|0|4|1"/>
		<i3dMapping id="Pod.007" node="0>9|0|5|1"/>
		<i3dMapping id="PodLight5" node="0>9|0|6|3"/>
		<i3dMapping id="PodLight6" node="0>9|0|7|3"/>
		<i3dMapping id="Pod.008" node="0>9|0|6|1"/>
		<i3dMapping id="Pod.009" node="0>9|0|7|1"/>
    </i3dMappings>
</vehicle>
