<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="FunnyCar">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	<storeData>
        <name>Funny Car</name>
        <specs>
            <power>1500</power>
            <maxSpeed>1020</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store/Funny_Car.dds</image>
        <price>85000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MOTORSPORTS</brand>
        <category>cars</category>
        <shopTranslationOffset>0 0.04 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1804740</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>433242</indexBufferMemoryUsage>
        <textureMemoryUsage>15379440</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>i3d/Funny_Car.i3d</filename>
		<sounds filename="sounds/DragCar.xml" volumeFactor="1.0"/>
        <size width="2.5" length="6"/>
		<speedLimit value="15" />
        <components count="1">
            <component centerOfMass="0 .35 .8" solverIterationCount="10" mass="1000" />
        </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 hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.8" repr="wheelFrontLeft"  radius="0.40" mass="0.01"  width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="20" frictionScale="20" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.8" repr="wheelFrontRight" radius="0.40" mass="0.01"  width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="20" frictionScale="20" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="3.25" repr="wheelBackLeft"   radius="0.60" mass="0.01"  width="0.27" forcePointRatio="0.5" initialCompression="35" suspTravel="0.10" spring="30" damper="30" frictionScale="20" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="3.25" repr="wheelBackRight"  radius="0.60" mass="0.01"  width="0.27" forcePointRatio="0.5" initialCompression="35" suspTravel="0.10" spring="30" damper="30" frictionScale="20" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="45" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4" />
        </ackermannSteeringConfigurations>
    </wheels>
	
	<enterable isTabbable="true" >
        <enterReferenceNode node="main"/>
        <exitPoint node="exit"/>

        <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>

        <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>
    </enterable>
	
	<dashboard>
        <groups>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="120" >
				    <exactFillRootNode node="0>5|3" />
					</fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="0" 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="Drag Tuned" hp="10000" price="10000"  dailyUpkeep="35" >
            <motor torqueScale="25" minRpm="10500" maxRpm="12500" maxForwardSpeed="2000001" maxBackwardSpeed="60" brakeForce="13" lowBrakeForceScale="0.22" rotInertia="0.0015">
                    <torque rpm="10500" torque="1"/>
                    <torque rpm="12500" torque="1"/>
                </motor>
            <transmission minForwardGearRatio="6" maxForwardGearRatio="4" minBackwardGearRatio="20" maxBackwardGearRatio="30" />
            </motorConfiguration>
		</motorConfigurations>
		
		<exhaustFlap node="engine" maxRot=".3" />

        <exhaustEffects>
            <exhaustEffect node="exhaust_1" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_2" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_3" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_4" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_5" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_6" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_7" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
			<exhaustEffect node="exhaust_8" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.100" maxRpmScale="0.30"/>
		</exhaustEffects>
		
	
    </motorized>
	
	 <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts requiresPower="false">
                    <foldingPart animationName="body_lift" speedScale="0.85" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
	<animations>
		<animation name="body_lift">
			<part node="body" startTime="0" duration="1.5" startRot="0 0 0" endRot="-34 0 0"/>
		</animation>
    </animations>
	
	
	<suspensions>
        <suspension useCharacterTorso="true" weight="90" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1" />
    </suspensions>

	<honk>
        <sound template="honkCar"  />
    </honk>

	<baseColorConfigurations useDefaultColors="true" defaultColorMaterialTemplateName="calibratedMetallicPaint">
		<baseColorConfiguration name="SHOW BLUE" color="0 1 1" price="0"/>	
		<baseColorConfiguration name="OFF WHITE" color="0.8 0.7 0.62" price="0"/>	
		<baseColorConfiguration name="CREAM" color="0.4 0.38 0.22" price="0"/>		
		<baseColorConfiguration name="SILVER" color="SHARED_GREY2" price="0"/>	
		<baseColorConfiguration name="CHARCOAL" color="SHARED_GREY5" price="0"/>		
		<baseColorConfiguration name="BLACK" color="0.02 0.02 0.02" price="0"/>
        <baseColorConfiguration name="DARK BLACK" color="0 0 0" price="0"/>
		<baseColorConfiguration name="BRIGHT RED" color="0.3 0 0" price="0"/>		
		<baseColorConfiguration name="MEDIUM RED" color="0.1 0 0" price="0"/>	
        <baseColorConfiguration name="BURGUNDY" color="0.076 0.00 0.012" price="0"/>	
		<baseColorConfiguration name="MAROON" color="0.086 0 0" price="0"/>					
		<baseColorConfiguration name="VIOLET" color="0.1 0 0.03" price="0"/>		
		<baseColorConfiguration name="PURPLE" color="0.056 0.004 0.084" price="0"/>	
		<baseColorConfiguration name="BURPLE" color="0.08 0 .8" price="0"/>
		<baseColorConfiguration name="SLATE BLUE" color="0.043 0.071 0.098" price="0"/>
		<baseColorConfiguration name="PALE BLUE" color="0.353 0.584 0.569" price="0"/>	
		<baseColorConfiguration name="LIGHT BLUE" color="NEWHOLLAND_BLUE1" price="0"/>
		<baseColorConfiguration name="MEDIUM BLUE" color="0 0.051 0.349" price="0"/>	
		<baseColorConfiguration name="BRIGHT BLUE" color="0 0 0.8" price="0"/>		
		<baseColorConfiguration name="DARK BLUE" color="0 0 0.02" price="0"/>	
		<baseColorConfiguration name="TIFFANY BLUE" color="0.031 0.584 0.569" price="0"/>		
		<baseColorConfiguration name="TURQUOISE BLUE" color="0 0.3 0.3" price="0"/>	
		<baseColorConfiguration name="MINT GREEN" color="0 0.15 0.1" price="0"/>
		<baseColorConfiguration name="BRIGHT GREEN" color="0.184 0.491 0.026" price="0"/>
		<baseColorConfiguration name="MEDIUM GREEN" color="0 0.058 0.012" price="0"/>
		<baseColorConfiguration name="DARK GREEN" color="0 0.03 0.01" price="0"/>	
		<baseColorConfiguration name="BRIGHT YELLOW" color="JOHNDEERE_YELLOW1"	price="0"/>
		<baseColorConfiguration name="MEDIUM YELLOW" color="0.8 0.4 0" price="0"/>
		<baseColorConfiguration name="MEDIUM ORANGE" color="0.947 0.05 0.008" price="0"/>		
		<baseColorConfiguration name="BURNT ORANGE" color="0.6 0.03 0" price="0"/>	
		<baseColorConfiguration name="BEIGE" color="0.25 0.22 0.2" price="0"/>
		<baseColorConfiguration name="TAN" color="0.25 0.2 0.15" price="0"/>		   
	    <baseColorConfiguration name="LIGHT BROWN" color="0.08 0.06 0.04" price="0"/>
	    <baseColorConfiguration name="MEDIUM BROWN" color="SHARED_BROWN1" price="0"/>			
		<baseColorConfiguration name="DARK BROWN" color="0.05 0.025 0.01" price="0"/>			
		<baseColorConfiguration name="ICONIK BLUE" color="FENDT_VIOLET1" price="0"/>		
        <material materialSlotName="body"/>
    </baseColorConfigurations>
	
	  <designColorConfigurations price="1000" useDefaultColors="true" defaultColorMaterialTemplateName="calibratedMetallicPaint" title="Chassis">	
		<designColorConfiguration materialTemplateName="RIM_CONFIGURATION_CHROME" price="1000"/>
		<designColorConfiguration materialTemplateName="EXP_CHROME" price="0"/>
		<designColorConfiguration materialTemplateName="SHOW_CHROME" price="0"/>
		<designColorConfiguration materialTemplateName="RIM_BLACK_CHROME" price="0"/>
		<designColorConfiguration materialTemplateName="RIM_SILVER" price="0"/>
		<designColorConfiguration materialTemplateName="RIM_NSILVER" price="0"/>	
		<designColorConfiguration materialTemplateName="RIM_ALU" price="0"/>	
		<designColorConfiguration materialTemplateName="RIM_DARK_STEEL" price="0"/>	
		<designColorConfiguration name="WHITE" color="SHARED_WHITE2" price="0"/>	
		<designColorConfiguration name="OFF WHITE" color="0.8 0.7 0.62" price="0"/>	
		<designColorConfiguration name="CREAM" color="0.4 0.38 0.22" price="0"/>		
		<designColorConfiguration name="SILVER" color="SHARED_GREY2" price="0"/>	
		<designColorConfiguration name="CHARCOAL" color="SHARED_GREY5" price="0"/>		
		<designColorConfiguration name="BLACK" color="0.02 0.02 0.02" price="0"/>
        <designColorConfiguration name="DARK BLACK" color="0 0 0" price="0"/>
		<designColorConfiguration name="BRIGHT RED" color="0.3 0 0" price="0"/>		
		<designColorConfiguration name="MEDIUM RED" color="0.1 0 0" price="0"/>	
        <designColorConfiguration name="BURGUNDY" color="0.076 0.00 0.012" price="0"/>	
		<designColorConfiguration name="MAROON" color="0.086 0 0" price="0"/>					
		<designColorConfiguration name="VIOLET" color="0.1 0 0.03" price="0"/>		
		<designColorConfiguration name="PURPLE" color="0.056 0.004 0.084" price="0"/>	
		<designColorConfiguration name="BURPLE" color="0.08 0 .8" price="0"/>
		<designColorConfiguration name="SLATE BLUE" color="0.043 0.071 0.098" price="0"/>
		<designColorConfiguration name="PALE BLUE" color="0.353 0.584 0.569" price="0"/>	
		<designColorConfiguration name="LIGHT BLUE" color="NEWHOLLAND_BLUE1" price="0"/>
		<designColorConfiguration name="MEDIUM BLUE" color="0 0.051 0.349" price="0"/>	
		<designColorConfiguration name="BRIGHT BLUE" color="0 0 0.8" price="0"/>		
		<designColorConfiguration name="DARK BLUE" color="0 0 0.02" price="0"/>	
		<designColorConfiguration name="TIFFANY BLUE" color="0.031 0.584 0.569" price="0"/>		
		<designColorConfiguration name="TURQUOISE BLUE" color="0 0.3 0.3" price="0"/>	
		<designColorConfiguration name="MINT GREEN" color="0 0.15 0.1" price="0"/>
		<designColorConfiguration name="BRIGHT GREEN" color="0.184 0.491 0.026" price="0"/>
		<designColorConfiguration name="MEDIUM GREEN" color="0 0.058 0.012" price="0"/>
		<designColorConfiguration name="DARK GREEN" color="0 0.03 0.01" price="0"/>	
		<designColorConfiguration name="BRIGHT YELLOW" color="JOHNDEERE_YELLOW1"	price="0"/>
		<designColorConfiguration name="MEDIUM YELLOW" color="0.8 0.4 0" price="0"/>
		<designColorConfiguration name="MEDIUM ORANGE" color="0.947 0.05 0.008" price="0"/>		
		<designColorConfiguration name="BURNT ORANGE" color="0.6 0.03 0" price="0"/>	
		<designColorConfiguration name="BEIGE" color="0.25 0.22 0.2" price="0"/>
		<designColorConfiguration name="TAN" color="0.25 0.2 0.15" price="0"/>		   
	    <designColorConfiguration name="LIGHT BROWN" color="0.08 0.06 0.04" price="0"/>
	    <designColorConfiguration name="MEDIUM BROWN" color="SHARED_BROWN1" price="0"/>			
		<designColorConfiguration name="DARK BROWN" color="0.05 0.025 0.01" price="0"/>			
		<designColorConfiguration name="ICONIK BLUE" color="FENDT_VIOLET1" price="0"/>	
        <material materialSlotName="cage"/>			
    </designColorConfigurations>
	
	<vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="CASE" price="0" vehicleType="FunnyCar">
            <objectChange node="CASE" visibilityActive="true" />
		</vehicleTypeConfiguration> 
		
		<vehicleTypeConfiguration name="Remington" price="200" vehicleType="FunnyCar">
            <objectChange node="Remington" visibilityActive="true" />
		</vehicleTypeConfiguration>
		
		<vehicleTypeConfiguration name="dearjohn" price="100" vehicleType="FunnyCar">
            <objectChange node="dearjohn" visibilityActive="true" />
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
	<trailer>
        <trailerConfigurations title="Chute">
            <trailerConfiguration name="No" price="0" />
			
			<trailerConfiguration name="Yes" price="1500">
				<objectChange node="chute" visibilityActive="true" visibilityInactive="false" />
			</trailerConfiguration>
		</trailerConfigurations>	
	</trailer>
	
	<tensionBeltObject>
		<meshNodes>
			<meshNode node="strap_it"/>
		</meshNodes>
	</tensionBeltObject>
	
	<foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-3" maxZ="3" yOffset="0.3" />
    </foliageBending>

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

    <i3dMappings>
        <i3dMapping id="main" node="0>" />
		
        <i3dMapping id="wheelFrontLeft" node="0>0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|2" />
        <i3dMapping id="wheelBackRight" node="0>0|3" />
		
        
		
        <i3dMapping id="outdoorCameraTarget" node="0>2|0" />
        <i3dMapping id="outdoorCamera1" node="0>2|0|0" />
        <i3dMapping id="indoorCamera1" node="0>2|1" />
        <i3dMapping id="cameraRaycastNode1" node="0>2|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>2|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>2|4" />
        <i3dMapping id="shadowFocusBox" node="0>2|5" />
		
        <i3dMapping id="player_skin" node="0>3|0|0" />
        <i3dMapping id="player_rightFoot" node="0>3|0|1" />
        <i3dMapping id="player_leftFoot" node="0>3|0|2" />
		
        <i3dMapping id="steering_wheel" node="0>3|1|0|0" />
        <i3dMapping id="player_leftHand" node="0>3|1|0|0|0" />
        <i3dMapping id="player_rightHand" node="0>3|1|0|0|1" />
		
		<i3dMapping id="body" node="0>4|0" />
		<i3dMapping id="cage" node="0>4|1|2" />
		
		<i3dMapping id="CASE" node="0>4|0|0|0" />
		<i3dMapping id="Remington" node="0>4|0|0|1" />
		<i3dMapping id="dearjohn" node="0>4|0|0|2" />
		
		<i3dMapping id="chute" node="0>4|0|1" />
		<i3dMapping id="engine" node="0>4|2" />
		
		
		<i3dMapping id="exhaust_1" node="0>4|2|1|0" />
		<i3dMapping id="exhaust_2" node="0>4|2|1|1" />
		<i3dMapping id="exhaust_3" node="0>4|2|1|2" />
		<i3dMapping id="exhaust_4" node="0>4|2|1|3" />
		<i3dMapping id="exhaust_5" node="0>4|2|1|4" />
		<i3dMapping id="exhaust_6" node="0>4|2|1|5" />
		<i3dMapping id="exhaust_7" node="0>4|2|1|6" />
		<i3dMapping id="exhaust_8" node="0>4|2|1|7" />
		
		<i3dMapping id="exit" node="0>5|0" />
        <i3dMapping id="aiCollisionTrigger" node="0>5|1" />
		<i3dMapping id="strap_it" node="0>5|2" />
    </i3dMappings>
</vehicle>
