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

    <storeData>
        <name>CanAM 1100XT</name>
        <specs>
            <power>100</power>
            <maxSpeed>120</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.dds</image>
        <price>5000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CanAM</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>CanAM_1100XT.i3d</filename>
        <size width="2.5" length="5"/>
        <components count="1">
            <component centerOfMass="0 0.2 0.35" solverIterationCount="10" mass="900" />
        </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 tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="LF"  radius="0.36" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="25" damper="3" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="RF" radius="0.36" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="25" damper="3" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="LR"   radius="0.36" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="25" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="RR"  radius="0.36" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="25" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
		<ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="60" rotMax="42" rotCenterWheel1="2" rotCenterWheel2="3" />
        </ackermannSteeringConfigurations>

    </wheels>
    <enterable isTabbable="true" >
        <enterReferenceNode node="LB7 Duramax"/>
        <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>

    <attacherJoints>
        <attacherJoint node="trailerAttacherJointBackStock" jointType="trailer" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="ATTACH_01" linkNode="0>" />
        </attacherJoint>
        <attacherJoint node="trailerAttacherJointBackStock" jointType="trailerLow" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="ATTACH_01" linkNode="0>" />
        </attacherJoint>
    </attacherJoints>

     <connectionHoses>
        <target attacherJointIndices="1 2" type="electric" node="0>14" socket="electric"/>
    </connectionHoses>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <steeringWheel node="Steering Wheel" indoorRotation="30" outdoorRotation="30" />

    </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="Stock" hp="50" price="0"  dailyUpkeep="35" >
            <motor torqueScale="1.5" minRpm="1000" maxRpm="5000"  maxForwardSpeed="140" maxBackwardSpeed="20" brakeForce="5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="1.75" maxForwardGearRatio="250" minBackwardGearRatio="50" maxBackwardGearRatio="130">
                  <torque normRpm="0.2" torque="0.2"/>
                  <torque normRpm="0.25" torque="0.4"/>
                  <torque normRpm="0.3" torque="0.5"/>
                  <torque normRpm="0.35" torque="0.6"/>
                  <torque normRpm="0.4" torque="0.5"/>
                   <torque normRpm="0.5" torque="0.4"/>
            </motor>	
                <transmission minForwardGearRatio="10" maxForwardGearRatio="85" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
			<motorConfiguration name="TUNED" hp="75" price="1000"  dailyUpkeep="35" >
            <motor torqueScale="2" minRpm="1000" maxRpm="5000"  maxForwardSpeed="140" maxBackwardSpeed="20" brakeForce="5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="1.75" maxForwardGearRatio="250" minBackwardGearRatio="50" maxBackwardGearRatio="130">
                  <torque normRpm="0.2" torque="0.2"/>
                  <torque normRpm="0.25" torque="0.4"/>
                  <torque normRpm="0.3" torque="0.5"/>
                  <torque normRpm="0.35" torque="0.6"/>
                  <torque normRpm="0.4" torque="0.5"/>
                   <torque normRpm="0.5" torque="0.4"/>
            </motor>	
                <transmission minForwardGearRatio="10" maxForwardGearRatio="75" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="exhaustParticles" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0" maxRpmColor="0 0 0 0" minRpmScale="0.02" maxRpmScale="0.5" />
        </exhaustEffects>

		<sounds externalSoundFile="sounds/mahindra.xml" />
		
    </motorized>

    <suspensions>
        <suspension useCharacterTorso="true" weight="20" 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>
	
	<lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" /> 
        </states>

        <realLights>
            <low>
			    <reverseLight node="reverseLight" />
                <light node="LowBeamLow" lightTypes="0"/>
                <light node="highBeamHigh" lightTypes="1"/>
            </low>
            <high>
			    <reverseLight node="reverseLight" />
			    <light node="LowBeamLow" lightTypes="0"/>
                <light node="highBeamHigh" lightTypes="1"/>
            </high>
        </realLights>

        <defaultLights>	
            <defaultLight node="LowLights" lightTypes="0"/>	
            <defaultLight node="HighLights" lightTypes="1"/>				
        </defaultLights>

        <brakeLights>
            <brakeLight node="brakeLights"/>		
        </brakeLights>

        <turnLights>
            <turnLightLeft node="coronasL" />
            <turnLightRight node="coronasR" />
        </turnLights>
		
		<reverseLights>
            <reverseLight node="reverseLights"/>		
        </reverseLights>

        <sounds>
            <switchLight template="SWITCH_01"  />
            <turnLight template="SWITCH_TURNLIGHT"  />
        </sounds>
    </lights>

    <ai>
        <collisionTrigger node="trafficCollisionTrigger" />
    </ai>
	<honk>
        <sound template="HONK_PICKUP" />
    </honk>
	
    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="180" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
    <i3dMappings>
        <i3dMapping id="LB7 Duramax" node="0>" />
		<i3dMapping id="LF" node="0>0" />
        <i3dMapping id="RF" node="0>1" />
        <i3dMapping id="LR" node="0>2" />
        <i3dMapping id="RR" node="0>3" />
		<i3dMapping id="LowBeamLow" node="0>4|15|0" />
        <i3dMapping id="highBeamHigh" node="0>4|15|1" />
        <i3dMapping id="LowLights" node="0>4|13|0|1" />
        <i3dMapping id="HighLights" node="0>4|13|0|0" />
        <i3dMapping id="brakeLights" node="0>4|13|2" />
        <i3dMapping id="coronasL" node="0>4|13|1|0" />
        <i3dMapping id="coronasR" node="0>4|13|1|1" />
		<i3dMapping id="reverseLights" node="0>4|13|3" />
		<i3dMapping id="reverseLight" node="0>4|15|2" />
        <i3dMapping id="outdoorCameraTarget" node="0>4|0|0" />
        <i3dMapping id="outdoorCamera1" node="0>4|0|0|0" />
        <i3dMapping id="indoorCamera1" node="0>4|0|1" />
        <i3dMapping id="cameraRaycastNode1" node="0>4|0|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>4|0|3" />
        <i3dMapping id="shadowFocusBox" node="0>12" />
        <i3dMapping id="Steering Wheel" node="0>4|2|0" />
        <i3dMapping id="leftArm" node="0>4|2|0|0" />
        <i3dMapping id="rightArm" node="0>4|2|0|1" />
        <i3dMapping id="player_skin" node="0>4|14|0" />
        <i3dMapping id="player_rightFoot" node="0>4|14|1" />
        <i3dMapping id="player_leftFoot" node="0>4|14|2" />
        <i3dMapping id="exitPoint" node="0>4|8" />
        <i3dMapping id="exhaustParticles" node="0>4|7" />
        <i3dMapping id="trailerAttacherJointBackStock" node="0>6|1" />
        <i3dMapping id="trafficCollisionTrigger" node="0>15" />
	</i3dMappings>
</vehicle>
