<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="ursus_c360">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Ursus C360</en>
        <de>Ursus C360</de>
    </name>
    <filename>C360.i3d</filename>

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

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="1" restLoad="1.3" repr="0>28|0" driveNode="0>28|0|3|0" radius="0.68" initialCompression="20" suspTravel="0.15" spring="25" damper="10" mass="0.099" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="1" restLoad="1.3" repr="0>29|0" driveNode="0>29|0|4|0" radius="0.68" initialCompression="20" suspTravel="0.15" spring="25" damper="10" mass="0.099" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="0" restLoad="1.0" repr="0>0|0" radius="0.85" initialCompression="50" suspTravel="0.09" spring="35" damper="25" mass="0.18" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="0" restLoad="1.0" repr="0>1|0" radius="0.85" initialCompression="50" suspTravel="0.09" spring="35" damper="25" mass="0.18" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
    </wheels>

    <dynamicallyLoadedParts>
        <!--<dynamicallyLoadedPart node="0" linkNode="0>28|0|3|0" filename="C360.i3d" />-->
        <!--<dynamicallyLoadedPart node="1" linkNode="0>29|0|4|0" filename="C360.i3d" />-->
        <dynamicallyLoadedPart node="2"    linkNode="0>0|0" 	 filename="Wheels.i3d" />
        <dynamicallyLoadedPart node="3"    linkNode="0>1|0" 	 filename="Wheels.i3d" />
    </dynamicallyLoadedParts>

    <ackermannSteering rotSpeed="60" rotMax="35" rotCenterWheel1="2" rotCenterWheel2="3" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <motor torqueScale="0.598" minRpm="500" maxRpm="2250" maxBackwardSpeed="15" brakeForce="2.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="19.7" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.45" torque="0.9"/>
        <torque normRpm="0.5" torque="0.97"/>
        <torque normRpm="0.59" torque="1"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="0.88"/>
        <torque normRpm="1" torque="0.72"/>
    </motor>

    <fuelCapacity>120</fuelCapacity>
    <fuelUsage>13</fuelUsage>

    <cameras count="2">
        <camera1 index="0>27|2|0" rotatable="true" rotateNode="0>27|2" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" >
            <raycastNode index="0>10"/>
            <raycastNode index="0>11"/>
        </camera1>
        <camera2 index="0>27|3" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.8" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

    <lights>
        <light realLight="0>18|0|0" decoration="0>18|0" lightType="0"/>
        <light realLight="0>18|1|0" decoration="0>18|1" lightType="1"/>
    </lights>

    <brakeLights>
        <brakeLight index="0>19|2" />
    </brakeLights>

    <beaconLights>
        <beaconLight index="0>20|0" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d" />
    </beaconLights>
<!--
    <turnSignals>
        <turnSignalLeft index="0>35|0" />
        <turnSignalRight index="0>35|1" />
    </turnSignals>
-->
<!--
    <mirrors>
        <mirror index="0>36|0" />
        <mirror index="0>36|1" />
        <mirror index="0>36|2" />
    </mirrors>
-->
    <indoorHud>
        <rpm animName="rpmDisplay" />
    </indoorHud>
    
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>5"/>
	
	<movingTools>
        <!-- attacher joint back bottom-->
        <movingTool index="0>17|1|0|2">
            <!-- cylinder 1 -->
            <dependentPart index="0>17|3" />
        </movingTool>
			<!-- steering -->
		<movingTool index="0>26"></movingTool>
    </movingTools>
	
	<movingParts>
		<!-- steering -->
        <movingPart index="0>26|2" referencePoint="0>29|0|1" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true" />
		<movingPart index="0>28|0|2" referencePoint="0>29|0|3" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true" />
		<!-- cylinder -->
		<movingPart index="0>17|3|0|0|0" referencePoint="0>17|1|0|1" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true" />
	</movingParts>
	

    <attacherJoints>
        <attacherJoint index="17|0|0|0" rotationNode="17|0" maxRot="-15 0 0" rotationNode2="17|0|0" maxRot2="15 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2.5" shaft="14" >
            <bottomArm rotationNode="17|1" translationNode="17|1|0" referenceNode="17|1|0|0" zScale="-1" />
            <topArm rotationNode="17|2" translationNode="17|2|0" referenceNode="17|2|0|0" zScale="-1" />
        </attacherJoint>
        <!-- trailer attacher -->
        <attacherJoint index="23" jointType="trailer" transNode="23" transMinYHeight="0.62" transMaxYHeight="1.1" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false"/>
		<attacherJoint index="22" jointType="trailer" transNode="22" transMinYHeight="0.925" transMaxYHeight="0.925" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>14" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
        <attacherJoint index="24"   jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="0>14" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d"/>
    </attacherJoints>

    <attacherJointLowerCombo duration="2">
        <attacherJoint index="2" time="0" />
        <attacherJoint index="1" time="1" />
        <attacherJoint index="3" time="1" />
        <attacherJoint index="4" time="1" />
    </attacherJointLowerCombo>

    <steering index="0>16|29|0|0|0" indoorRotation="240" outdoorRotation="250" />

    <animations>
        <animation name="rpmDisplay">
            <part node="0>16|19|0|0" startTime="0" endTime="2" startRot="0 0 0" endRot="0 90 0" />
			<part node="0>16|19|0" startTime="1" endTime="5" startRot="-180 0 0" endRot="-180 -90 0" />
        </animation>
		<!--<animation name="Sponge_Anim">
            <part node="0>16|11" startTime="0" endTime="4" startRot="0 0 -175.036" endRot="0 0 0" />
        </animation>
		<animation name="Roof_Anim">
            <part node="0>16|24" startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 37" />
			<part node="0>16|24|0|0" startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 -70" />
			<part node="0>16|21" startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 -5" />
        </animation>
		<animation name="RightDoor_Anim">
            <part node="0>16|22|0" startTime="2" endTime="4" startRot="0 0 0" endRot="0 90 0" />
			<part node="0>16|22|0|0" startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 50" />
			<part node="0>16|22|0|0" startTime="2" endTime="3" startRot="0 0 50" endRot="0 0 0" />
			<part node="0>16|22|0|1|0" startTime="2" endTime="4" startRot="180 41 -175" endRot="0 0 -3" />
			<part node="0>16|20|0" startTime="2" endTime="4" startTrans="0.755 3.393 -1.438" endTrans="0.263 3.393 -1.438" />
        </animation>
		<animation name="LeftDoor_Anim">
            <part node="0>16|23|0" startTime="2" endTime="4" startRot="0 0 0" endRot="0 90 0" />
			<part node="0>16|23|0|0" startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 50" />
			<part node="0>16|23|0|0" startTime="2" endTime="3" startRot="0 0 50" endRot="0 0 0" />
			<part node="0>16|23|0|1" startTime="2" endTime="4" startRot="180 -41 -175" endRot="0 0 -3" />
			<part node="0>16|20|1" startTime="2" endTime="4" startTrans="0.755 3.393 1.438" endTrans="0.263 3.393 1.438" />
        </animation>
		<animation name="BackWindow_Anim">
            <part node="0>16|25" startTime="0.5" endTime="2" startRot="0 0 0" endRot="0 0 23" />
			<part node="0>16|25|0" startTime="0" endTime="0.5" startRot="0 0 0" endRot="0 0 -50" />
        </animation>
		<animation name="Mask_Anim">
            <part node="0>16|27|0" startTime="0" endTime="2" startRot="0 0 0" endRot="0 0 23" />
        </animation>
		<animation name="Key_Anim">
            <part node="0>16|27|0" startTime="0" endTime="2" startTrans="0 0 0" endTrans="-80 0 0" />
        </animation>-->
    </animations>
	
	<interactiveComponents>
	<!--<windows>
			<window name="Sponge" 	  mark="0>30"  	  	 size="0.2" animName="Sponge_Anim" 	   onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Roof"   	  mark="0>16|21|0"   size="0.2" animName="Roof_Anim" 	   onMessage="ic_component_open" offMessage="ic_component_close"/>
		    <window name="RightDoor"  mark="0>16|22|0|2" size="0.2" animName="RightDoor_Anim"  onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="LeftDoor"   mark="0>16|23|0|2" size="0.2" animName="LeftDoor_Anim"   onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="BackWindow" mark="0>16|32" 	 size="0.2" animName="BackWindow_Anim" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Mask"  	  mark="0>16|27|0|0" size="0.2" animName="Mask_Anim" 	   onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Key"  	  mark="0>16|16|1"   size="0.2" animName="Key_Anim" 	   onMessage="key_open"			 offMessage="key_close"/>
		</windows>-->
		<windows count="7">
			<window1 name="Sponge" 	   mark="0>30"  	  size="0.2" index="0>16|11"   speedScale="1" clip="GabkaClipSource" />
			<window2 name="Roof"   	   mark="0>16|21|0"   size="0.2" index="0>16|24"   speedScale="1" clip="DachClipSource" />
		    <window3 name="RightDoor"  mark="0>16|22|0|2" size="0.2" index="0>16|22|0" speedScale="1" clip="DrzwiPClipSource" />
			<window4 name="LeftDoor"   mark="0>16|23|0|2" size="0.2" index="0>16|23|0" speedScale="1" clip="DrzwiLClipSource" />
			<window5 name="BackWindow" mark="0>16|32" 	  size="0.2" index="0>16|25"   speedScale="1" clip="SzybaClipSource" />
			<window6 name="Mask"  	   mark="0>16|27|0|0" size="0.2" index="0>16|27|0" speedScale="1" clip="MaskaClipSource" />
			<window7 name="Key"  	   mark="0>16|16|1"   size="0.2" index="0>16|1"    speedScale="1" clip="StartClipSource" />
			
			<!--<window1 name="WarntafelRechts" mark="21|10|0|1" size="0.05" index="21|10|0|0" speedScale="1" clip="WarntafelRechtsClipsource" />
			<window2 name="WarntafelLinks" mark="21|10|1|1" size="0.05" index="21|10|1|0" speedScale="1" clip="WarntafelLinksClipsource" />-->
		</windows>
	</interactiveComponents>
	 
	<characterNode index="0>7" cameraMinDistance="2.0"></characterNode>

    <aiTrafficCollisionTrigger index="0>8" />

    <exhaustEffects>
        <exhaustEffect index="0>9" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.4" forwardXRotations="-250 0 250" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="120 0 -50" />
    </exhaustEffects>

    <motorStartDuration>5000</motorStartDuration>
    <attachSound file="sounds/attach.wav" pitchOffset="1" />
    <motorStartSound file="sounds/start.wav" pitchOffset="1" />
    <motorSound file="sounds/silnik.wav" pitchOffset="1" pitchScale="0.025" pitchMax="2" volume="1" />
    <motorSoundRun file="sounds/obroty.wav" pitchOffset="0.5" pitchScale="0.025" pitchMax="2.5" volume="1" />
    <motorStopSound file="sounds/stop.wav" pitchOffset="1" />
    <compressedAirSound file="$data/vehicles/shared/brakeOld.wav" pitchOffset="1" volume="2"/>
    <compressionSound file="$data/vehicles/shared/compressorWork.wav" pitchOffset="1" volume="1.5"/>

    <honkSound file="$dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
    </driveGroundParticleSystems>

    <components count="1">
        <component1 centerOfMass="0 0.8 0.4" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="0 0" rotation="0" invertX="true" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>
</vehicle>
