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

    <storeData>
        <name>Land-Rover</name>
        <specs>
            <power>183</power>
            <maxSpeed>90</maxSpeed>
        </specs>
        <functions>
            <function>VLHR : Véhicule de Liaison Hors Route</function>
        </functions>
        <image>Store.png</image>
        <price>10000</price>
        <dailyUpkeep>20</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DEFENDER</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>700976</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>130434</indexBufferMemoryUsage>
        <textureMemoryUsage>21321312</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <filename>land_rover.i3d</filename>

    <size width="2.5" length="6"/>

   	<wheels autoRotateBackSpeed="2.2">
		<wheel rotSpeed="1" repr="1>0|0" driveNode="1>0|0" radius="0.45"  frictionScale="3" restLoad="0.9" initialCompression="40" suspTravel="0.15" spring="5" damper="2" maxLatStiffness="173" hasTireTracks="true" tireTrackAtlasIndex="1" type="offRoad" mass="0.6" hasParticles="true"/>
     	<wheel rotSpeed="1" repr="1>0|1" driveNode="1>0|1" radius="0.45"  frictionScale="3" restLoad="0.9" initialCompression="40" suspTravel="0.15" spring="5" damper="2" maxLatStiffness="173" hasTireTracks="true" tireTrackAtlasIndex="1" type="offRoad" mass="0.6" hasParticles="true"/>
     	<wheel rotSpeed="0" repr="2>0|0"                   radius="0.45"  frictionScale="3" restLoad="0.7" initialCompression="40" suspTravel="0.15" spring="5" damper="2" maxLatStiffness="173" hasTireTracks="true" tireTrackAtlasIndex="1" type="offRoad" mass="0.6" hasParticles="true"/>
     	<wheel rotSpeed="0" repr="2>0|1"                   radius="0.45"  frictionScale="3" restLoad="0.7" initialCompression="40" suspTravel="0.15" spring="5" damper="2" maxLatStiffness="173" hasTireTracks="true" tireTrackAtlasIndex="1" type="offRoad" mass="0.6" hasParticles="true"/>
   	</wheels>
	
	<differentialConfigurations>
        <differentials>
            <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
            <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
            <differential torqueRatio="0.1" maxSpeedRatio="1.6" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
        </differentials>
    </differentialConfigurations>
	
	<ackermannSteeringConfigurations>
        <ackermannSteering rotSpeed="80" rotMax="42" rotCenterWheel1="2" rotCenterWheel2="3" />
    </ackermannSteeringConfigurations>

    <motorConfigurations>
        <motorConfiguration name="$l10n_configuration_valueDefault" hp="306" price="0">
            <motor torqueScale="0.424" minRpm="1500" maxForwardSpeed="123" maxRpm="2800" maxBackwardSpeed="40" brakeForce="2.0" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.0005" minForwardGearRatio="5.8" maxForwardGearRatio="250" minBackwardGearRatio="20" maxBackwardGearRatio="250">
                <torque normRpm="0.45" torque="0.4"/>
                <torque normRpm="0.5"  torque="0.47"/>
                <torque normRpm="0.59" torque="0.5"/>
                <torque normRpm="0.72" torque="0.5"/>
                <torque normRpm="0.86" torque="0.58"/>
                <torque normRpm="1"    torque="0.42"/>
            </motor>
        </motorConfiguration>
    </motorConfigurations>
	
    <fuelCapacity>60</fuelCapacity>

    <cameras count="2">
		<camera1 index="0>1|0" rotatable="true" rotateNode="0>1" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
        </camera1>
        <camera2 index="0>2" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
	</cameras>
	
	 <lights>
        <low>
            <light                        decoration="0>10|0|0"  lightTypes="0 3" /> <!--Decoration for FrontLights and Highbeams-->
            <light realLight="0>10|0|2"                          lightTypes="0" excludedLightTypes="3" /> <!--FrontLights-->
            <light                        decoration="0>10|0|0"  lightTypes="0 1"/> <!--BackLights-->
            <light realLight="0>10|6|1"   decoration="0>10|6|0"  lightTypes="1"/> <!--WorklightBack-->
        </low>
        <high>
            <light                        decoration="0>10|0|0"  lightTypes="0 3" /> <!--Decoration for FrontLights and Highbeams-->
            <light realLight="0>10|0|1"                          lightTypes="0" excludedLightTypes="2 3" /> <!--FrontLights-->
            <light realLight="0>10|0|3"   decoration="0>10|0|0"  lightTypes="0 3" /> <!--BackLights--> 
			<light realLight="0>10|6|1"   decoration="0>10|6|0"  lightTypes="1"/> <!--WorklightBack-->
        </high>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
        </states>
    </lights>
	
    <brakeLights>
        <brakeLight realLight="0>10|1|1" decoration="0>10|1|0" />
    </brakeLights>
	
	<turnLights>
        <turnLightLeft  realLight="0>10|3|0|1"  decoration="0>10|3|0|0" />
        <turnLightRight realLight="0>10|3|1|1"  decoration="0>10|3|1|0" />
    </turnLights>

    <reverseLights>
        <reverseLight realLight="0>10|2|1" decoration="0>10|2|0" />
    </reverseLights>
	
	<beaconLights>
        <beaconLight index="0>10|4" speed="0.015" filename="gyro/beaconLight02.i3d" />
    </beaconLights>
	
	<LightAddon drlAllwaysOn="false">
		<strobe decoration="0>10|5|0" realLight="0>10|5|0|9" isBeacon="true" name="Gyrophare" sequence="120 90 120" 	invert="true" />
        <strobe decoration="0>10|5|1" realLight="0>10|5|1|9" isBeacon="true" name="Gyrophare" sequence="120 90 120" 	invert="true" />
    </LightAddon>
		
	<attacherJoints>
        <attacherJoint index="0>12" jointType="trailerLow" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
    </attacherJoints>
	 	
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>3"/>
	
	<steering index="0>4|0" indoorRotation="540" outdoorRotation="50" />

    <characterNode index="0>6|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100" >
        <target ikChain="rightFoot" targetNode="0>6|1" />
        <target ikChain="leftFoot"  targetNode="0>6|2" />
        <target ikChain="rightArm"  targetNode="0>4|0|0" setDirty="true"/>
        <target ikChain="leftArm"   targetNode="0>4|0|1" setDirty="true" />
    </characterNode>

    <ai>
       <trafficCollisionTrigger index="0>7" />
    </ai>
	
	<motorStartDuration>1500</motorStartDuration>

    <motorStartSound file="$data/vehicles/steerable/lizard/lizardPickupTT_start.wav"   volume="1.00"   pitchOffset="1.00"                   indoorVolumeFactor="0.50" indoorLowpassGain="0.90" />
    <motorSound      file="$data/vehicles/steerable/lizard/lizardPickupTT_idle.wav"    volume="1.00"   pitchOffset="1.00"  pitchMax="1.60"  indoorVolumeFactor="0.50" indoorLowpassGain="0.90" volumeMin="0.25" volumeMinSpeed="90" />
    <motorStopSound  file="$data/vehicles/steerable/lizard/lizardPickupTT_stop.wav"    volume="1.00"   pitchOffset="1.00"                   indoorVolumeFactor="0.65" indoorLowpassGain="0.9" />
    <motorSoundRun   file="$data/vehicles/steerable/lizard/lizardPickupRodeo_run.wav"  volume="1.00"   pitchOffset="0.55"  pitchMax="1.15"  indoorVolumeFactor="0.50" indoorLowpassGain="0.90" />
    <gearboxSound    file="$data/sounds/transmission/transmissionOld.wav"              volume="0.20"   pitchOffset="0.55"  pitchMax="1.00"  indoorVolumeFactor="0.65" indoorLowpassGain="0.9"  volumeMax="0.20"  reverseVolumeMax="0.30" />
    <retarderSound   file="$data/sounds/transmission/transmissionOmega.wav"            volume="0.10"   pitchOffset="0.85"  pitchMax="2.00"  indoorVolumeFactor="0.65" indoorLowpassGain="0.9"  volumeMax="0.17"  minSpeed="2" />
    <honkSound       file="$data/sounds/hornCar.wav"                                   volume="1.00"                                        indoorVolumeFactor="0.65" indoorLowpassGain="0.9"                                                                                    radius="70" innerRadius="10" />
    <attachSound     file="$data/sounds/attach.wav"                                    volume="1.00"   pitchOffset="1" />
    <honkSound       file="Sounds/2ton.wav"                                            volume="1.5"    pitchOffset="1.0"                    indoorVolumeFactor="0.65" radius="70" innerRadius="10" />
	
	<exhaustEffects>
        <exhaustEffect index="0>8" 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.05" maxRpmScale="0.5" xzRotationsOffset="0 0" xzRotationsForward="-250 0" xzRotationsBackward="50 0" xzRotationsLeft="0 100" xzRotationsRight="0 -100" />
    </exhaustEffects>
	
	<i3dAnims>		
	   <anim rootnode="0>11" clipname="Horn_P" inputBinding="Horn" helptext="Horn" helpTextOn="Horn Ein" helpTextOff="Horn Aus" speed="1" inside="true" outside="false" maxDist="1.8"/>
	</i3dAnims>
	
	<designConfigurations>
		 <designConfiguration name="stantard" price="0">
            <objectChange node="0>14"   visibilityActive="true" visibilityInactive="false"/>           
        </designConfiguration>
        <designConfiguration name="Lot de Sauvetage" price="1000">
            <objectChange node="0>13"   visibilityActive="true" visibilityInactive="false"/>           
        </designConfiguration>
    </designConfigurations>
	
    <components count="6">
		<component1 centerOfMass="-0.05 1 0" solverIterationCount="4" />
        <component2 centerOfMass="0 0 0"     solverIterationCount="10" />
        <component3 centerOfMass="0 0 0"     solverIterationCount="10" />
        <component4 centerOfMass="0 0 0"     solverIterationCount="10" />
        <component5 centerOfMass="0 0 0"     solverIterationCount="10" />
        <component6 centerOfMass="0 0 0"     solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>0|0"     rotLimit="0 0 4500"   transLimit="0 0 0" maxRotDriveForce="0 0 50" rotDriveRotation="- - 0" rotDriveSpring="0 0 5" rotDriveDamping="0 0 5" breakable="false"/>
        <joint component1="0" component2="2" index="0>0|1"     rotLimit="0 0 4500"   transLimit="0 0 0" maxRotDriveForce="0 0 50" rotDriveRotation="- - 0" rotDriveSpring="0 0 5" rotDriveDamping="0 0 5" breakable="false"/>
		<joint component1="0" component2="3" index="0>15"      rotLimit="0 0 0"      transLimit="0.03 0 0.03" />
		<joint component1="0" component2="4" index="0>16"      rotLimit="0 0 0"      transLimit="0.03 0 0.03" />
		<joint component1="0" component2="5" index="0>17"      rotLimit="0 0 0"      transLimit="0.03 0 0.03" />
    </components>
	
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0" />

</vehicle>

