<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="focus">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <storeData>
        <name>Focus SW 2014</name>
        <specs>
            <power>180</power>
            <maxSpeed>171</maxSpeed>
        </specs>
        <functions>
            <function>Vehicule de Police Municipale. Ville d'Oranget. Années de mise en service : 2015</function>
        </functions>
        <image>store.png</image>
        <price>29792</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FORD</brand>
        <category>FPC</category>
        <shopTranslationOffset>0 0.04 0</shopTranslationOffset>
        <shopRotationOffset>-0.3 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>9520096</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>2155440</indexBufferMemoryUsage>
        <textureMemoryUsage>72058888</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>focus.i3d</filename>
        <size width="3" length="6.5"/>
        <components count="1">
            <component centerOfMass="0 0.4 -0.25" solverIterationCount="10" mass="1800"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
	
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="axisFrontLeft" driveNode="wheelFrontLeft" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="0" suspTravel="0.13" spring="14" damper="3" frictionScale="2.5"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="axisFrontRight" driveNode="wheelFrontRight" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="0" suspTravel="0.13" spring="14" damper="3" frictionScale="2.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="1" suspTravel="0.14" spring="19" damper="3" frictionScale="3"/>
                        <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="1" suspTravel="0.14" spring="19" damper="3" frictionScale="3"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
            </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="0>0|1|0" 	lightTypes="0"/>
                <light node="0>0|1|1" 	lightTypes="1"/>
            </low>
            <high>
                <light node="0>0|1|2" 	lightTypes="0"/>
				<light node="0>0|1|5" 	lightTypes="0"/>
                <light node="0>0|1|3" 	lightTypes="1"/>
                <light node="0>0|1|4" 	lightTypes="2"/>
				<light node="0>0|1|6" 	lightTypes="2"/>
                <brakeLight node="0>0|1|5"/>
                <turnLightLeft node="0>0|1|7"/>
                <turnLightRight node="0>0|1|8"/>
                <reverseLight node="0>0|1|9"/>
            </high>
        </realLights>
		
        <defaultLights>
            <defaultLight shaderNode="0>0|1|11|0" lightTypes="0"/>
			<defaultLight shaderNode="0>0|1|11|10" lightTypes="0"/>
            <defaultLight shaderNode="0>0|1|11|5" lightTypes="1"/>
			<defaultLight shaderNode="0>0|1|11|4" lightTypes="2"/>
			<defaultLight shaderNode="0>0|1|11|2" lightTypes="2"/>
        </defaultLights>
		
        <brakeLights>
            <brakeLight shaderNode="0>0|1|11|1"/>
        </brakeLights>
		
        <reverseLights>
            <reverseLight shaderNode="0>0|1|11|6"/>
        </reverseLights>
		
        <turnLights>
            <turnLightLeft shaderNode="0>0|1|11|7"/>
            <turnLightRight shaderNode="0>0|1|11|8"/>
        </turnLights>
		
        <sounds>
            <switchLight template="SWITCH_01"/>
            <turnLight template="SWITCH_TURNLIGHT"/>
        </sounds>
		
		<beaconLights>
           <beaconLight node="0>0|1|12|0" speed="0.025" filename="Gyro/mercura.xml" />
           <beaconLight node="0>0|1|12|1" speed="0.025" filename="Gyro/mercura.xml" />
           <beaconLight node="0>0|1|12|2" speed="0.025" filename="Gyro/mercura.xml" />
           <beaconLight node="0>0|1|12|3" speed="0.025" filename="Gyro/mercura.xml" />
       </beaconLights>
	   
        <dashboards>
			<dashboard displayType="emitter" valueType="turnLightLeft"  node="0>0|12|1"      baseColor="BLACK" emitColor="GREEN"                                       groups="MOTOR_ACTIVE"/>
            <dashboard displayType="emitter" valueType="turnLightRight" node="0>0|12|0"     baseColor="BLACK" emitColor="GREEN"                                       groups="MOTOR_ACTIVE"/>
			<dashboard displayType="emitter" valueType="lightState"     node="0>0|12|2"          baseColor="GREY"  emitColor="GREEN"  			intensity="0.5" lightTypes="0"  groups="MOTOR_ACTIVE"/>
			<dashboard displayType="emitter" valueType="lightState"     node="0>0|12|3"          baseColor="GREY"  emitColor="0.13 0.2 0.9 1"  	intensity="0.5" lightTypes="1"  groups="MOTOR_ACTIVE"/>
			<dashboard displayType="emitter" valueType="lightState"     node="0>0|12|9"          baseColor="GREY"  emitColor="GREEN"  			intensity="0.5" lightTypes="2"  groups="MOTOR_ACTIVE"/>
			<dashboard displayType="EMITTER" valueType="lightState" 	node="0>0|12|10" intensity="0.7" lightTypes="0" groups="MOTOR_ACTIVE"/>
		</dashboards>
    </lights>

    <lightExtension>
		<strobeLights>	
			<strobeLight lightNode="0>0|1|13" sequence="100 120 110 100" invert="true" />		
			<strobeLight lightShaderNode="0>0|1|13|0" realLightNode="0>0|1|13|0|0" shaderIntensity="200" sequence="250" invert="false" />
			<strobeLight lightShaderNode="0>0|1|13|1" realLightNode="0>0|1|13|1|0" shaderIntensity="200" sequence="250" invert="true"  />

			<strobeLight lightShaderNode="0>0|12|11|1" shaderIntensity="200"  invert="false"/>
		</strobeLights>
    </lightExtension>
	
    <enterable isTabbable="true">
        <enterReferenceNode node="0>"/>
        <exitPoint node="0>0|4"/>
        <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"/>
            <camera node="0>0|2|6" 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="0>0|14|0" prio="1" />
            <mirror node="0>0|14|1" prio="1" />
            <mirror node="0>0|14|2" prio="1" />
        </mirrors>
		
        <characterNode node="0>0|3|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>0|3|1"/>
            <target ikChain="leftFoot" targetNode="0>0|3|2"/>
            <target ikChain="rightArm" targetNode="0>0|7|0|1" poseId="wideFingers"/>
            <target ikChain="leftArm" targetNode="0>0|7|0|2" poseId="wideFingers"/>
        </characterNode>
		
		<characterTargetNodeModifier node="0>0|3|1" transitionTime="0.1" >
            <state node="0>0|10|0|0|0" referenceNode="0>0|10|0|0"/>
            <state node="0>0|10|0|1|0" referenceNode="0>0|10|0|1"/>
        </characterTargetNodeModifier>
    </enterable>
	
    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01"/>
        </sounds>
        <steeringWheel node="0>0|7|0" indoorRotation="540" outdoorRotation="60"/>
		<dashboards>
            <dashboard displayType="ROT"     valueType="accelerationAxis" node="0>0|10|0|0" minRot="23.238 0 0" maxRot="1.867 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT"     valueType="decelerationAxis" node="0>0|10|0|1" minRot="26.742 0 0" maxRot="3.244 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="120">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="loadingBarFuel" minValueAnim="0" maxValueAnim="35" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="30" 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="Focus SW 2014" hp="300" price="0">
                <motor torqueScale="0.75" minRpm="1000" maxRpm="6000" maxForwardSpeed="170" maxBackwardSpeed="45" brakeForce="2" lowBrakeForceScale="0.22">
                    <torque rpm="1000" torque="1.1"/>
                    <torque rpm="2400" torque="1.5"/>
                    <torque rpm="3480" torque="1.5"/>
                    <torque rpm="4560" torque="0.95"/>
                    <torque rpm="5280" torque="0.76"/>
                    <torque rpm="6000" torque="0.5"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200"/>
            </motorConfiguration>
        </motorConfigurations>
		
        <exhaustEffects>
            <exhaustEffect node="0>0|8|0" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.4" minRpmScale="0.02" maxRpmScale="0.25"/>
        </exhaustEffects>
		
        <dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm" animName="rpmDisplay" minValueAnim="0" maxValueAnim="7000" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="170" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="NUMBER"    valueType="speed" numbers="0>0|11|5" precision="0" baseColor="BLACK" emitColor="WHITE" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="motorTemperature" animName="loadingBarTemperature" minValueAnim="0" maxValueAnim="120" groups="MOTOR_ACTIVE"/>
        </dashboards>
        <sounds externalSoundFile="$data/sounds/vehicles/engine/lizard_pickup_2014/lizard_pickup_2014.xml"/>
    </motorized>
	
    <animations>
        <animation name="horn2ton">
            <part node="0>0|9|0" startTime="0" endTime="0.01" startTrans="0 -5000 0" endTrans="0 0 0"/>
            <part node="0>0|12|11|0" startTime="0" endTime="0.01" startScale="0 0 0" endScale="1 1 1"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>0|11|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -130" />
        </animation>
        <animation name="speedDisplay">
            <part node="0>0|11|2|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -173"/>
        </animation>
        <animation name="loadingBarTemperature">
            <part node="0>0|11|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 60"/>
        </animation>
        <animation name="loadingBarFuel">
            <part node="0>0|11|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -58"/>
        </animation>
		<animation name="feux_lateraux">
			<part node="0>0|1|10" startTime="0" endTime="0.001" startTrans="-0.68 -5000 0.03" endTrans="-0.68 1.667 0.03"/>
			<part node="0>0|1|11|9" startTime="0" endTime="0.001" startTrans="0 -5000 0" endTrans="0 0 0"/>
			<part node="0>0|12|11|2" startTime="0" endTime="0.001" startScale="0 0 0" endScale="1 1 1"/>
		</animation>
		<animation name="feux_protection1">
			<part node="0>0|5|0" startTime="0" endTime="0.001" startTrans="0 -5000 0" endTrans="0 0 0"/>
			<part node="0>0|12|11|5" startTime="0" endTime="0.001" startScale="0 0 0" endScale="1 1 1"/>
		</animation>
		<animation name="feux_protectionG">
			<part node="0>0|5|1" startTime="0" endTime="0.001" startTrans="0 -5000 0" endTrans="0 0 0"/>
			<part node="0>0|12|11|3" startTime="0" endTime="0.001" startScale="0 0 0" endScale="1 1 1"/>
		</animation>
		<animation name="feux_protectionD">
			<part node="0>0|5|2" startTime="0" endTime="0.001" startTrans="0 -5000 0" endTrans="0 0 0"/>
			<part node="0>0|12|11|4" startTime="0" endTime="0.001" startScale="0 0 0" endScale="1 1 1"/>
		</animation>
    </animations>
	
	<simpleIC outsideInteractionTrigger="0>0|15|1|13" >
    	<animation animationName="feux_protection1" animationSpeed="1" sharedAnimation="true" soundVolumeIncreasePercentage="0.5" >
            <insideTrigger triggerPoint="0>0|6|1" triggerPointSize="0.04" />
        </animation>
		<animation animationName="feux_protectionG" animationSpeed="1" sharedAnimation="true" soundVolumeIncreasePercentage="0.5" >
            <insideTrigger triggerPoint="0>0|6|2" triggerPointSize="0.04" />
        </animation>
		<animation animationName="feux_protectionD" animationSpeed="1" sharedAnimation="true" soundVolumeIncreasePercentage="0.5" >
            <insideTrigger triggerPoint="0>0|6|3" triggerPointSize="0.04" />
        </animation>
		<animation animationName="feux_lateraux" animationSpeed="1" sharedAnimation="true" soundVolumeIncreasePercentage="0.5" >
            <insideTrigger triggerPoint="0>0|6|0" triggerPointSize="0.04" />
        </animation>
    </simpleIC>
	
    <foldable>
        <foldingParts>
            <foldingPart animationName="horn2ton" speedScale="1"/>
        </foldingParts>
    </foldable>
	
    <cylindered>
        <movingTools>
            <movingTool node="0>0|9|0" playSound="false"/>
			<movingTool node="0>0|12|11|0" playSound="false"/>
        </movingTools>
        <sounds>
            <hydraulic template="PICKUP_TRUNK" linkNode="0>"/>
        </sounds>
    </cylindered>
	
    <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>
		<default>
			<dashboard displayType="EMITTER" 	node="0>0|1|11|3" idleValue="0"  intensity="7" 	 groups="MOTOR_ACTIVE" />
			<dashboard displayType="EMITTER" 	node="0>0|11|0"	  idleValue="-1" intensity="0.1" groups="MOTOR_ACTIVE" />
			<dashboard displayType="EMITTER" 	node="0>0|12|10"  groups="MOTOR_ACTIVE" />
			
			<dashboard displayType="EMITTER"    node="0>0|12|4"   baseColor="BLACK" emitColor="RED" groups="MOTOR_STARTING" />
            <dashboard displayType="EMITTER"    node="0>0|12|5"   baseColor="BLACK" emitColor="RED" groups="MOTOR_STARTING" />
            <dashboard displayType="EMITTER"    node="0>0|12|6"   baseColor="BLACK" emitColor="RED" groups="MOTOR_STARTING" />
            <dashboard displayType="EMITTER"    node="0>0|12|7"   baseColor="BLACK" emitColor="RED" groups="MOTOR_STARTING" />
            <dashboard displayType="EMITTER"    node="0>0|12|8"   baseColor="BLACK" emitColor="RED" groups="MOTOR_STARTING" />
        </default>
    </dashboard>
	
    <ai>
        <collisionTrigger node="0>0|13|0"/>
    </ai>
	
    <honk>
        <sound template="HONK_JD8400R"/>
    </honk>
	
    <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="axisFrontLeft" node="0>0|0|0|0"/>
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0|0|0|0"/>
        <i3dMapping id="rim" node="0>0|0|0|0|0|0|0"/>
        <i3dMapping id="steeringBarFrontLeft" node="0>0|0|0|0|1"/>
        <i3dMapping id="axisFrontRight" node="0>0|0|1|0"/>
        <i3dMapping id="wheelFrontRight" node="0>0|0|1|0|0|0"/>
        <i3dMapping id="steeringBarFrontRight" node="0>0|0|1|0|1"/>
        <i3dMapping id="wheelBackLeft" node="0>0|0|2"/>
        <i3dMapping id="wheelBackRight" node="0>0|0|3"/>
		
        <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"/>
    </i3dMappings>
	
</vehicle>
