<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="ferry">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Oil Barge</name>
        <specs>
            <power>4350</power>
            <maxSpeed>40</maxSpeed>
        </specs>
        <functions>
            <function>Ferry</function>
        </functions>
        <image>store/store_oil.dds</image>
        <price>2000000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>RGC</brand>
        <category>miscDrivables</category>
        <vertexBufferMemoryUsage>321456</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>44226</indexBufferMemoryUsage>
        <textureMemoryUsage>14499984</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>Ferry</typeDesc>
        <filename>oilBarge.i3d</filename>
        <size width="6" length="18"/>
        <components>
            <component centerOfMass="0 4.5 0" solverIterationCount="40" mass="50000"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
        </schemaOverlay>
		<tailwaterDepth warning="15.0" threshold="20.0"/>
		<mapHotspot type="HARVESTER" />
    </base>
    <wheels>
        <wheelConfigurations>
             <wheelConfiguration name="2019 Ram Aluminum" price="0">
                <wheels autoRotateBackSpeed="2.8">
					<wheel isLeft="true"  hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="1" restLoad="10"  repr="0>0|0"  	forcePointRatio="0.5" initialCompression="50" radius="1.5" radiusSea="1" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.55" frictionScale="1.0"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
					<wheel isLeft="false" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="1" restLoad="10"  repr="0>0|1"  	forcePointRatio="0.5" initialCompression="50" radius="1.5" radiusSea="1" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.55" frictionScale="1.0"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
					<wheel isLeft="true"  hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="0" restLoad="6"   repr="0>0|2"  	forcePointRatio="0.5" initialCompression="50" radius="1.5" radiusSea="1" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.55" frictionScale="1.0"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
					<wheel isLeft="false" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="0" restLoad="6"   repr="0>0|3"  	forcePointRatio="0.5" initialCompression="50" radius="1.5" radiusSea="1" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.55" frictionScale="1.0"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
                   	<wheel isLeft="true"  hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="-1" restLoad="12" repr="0>0|4"  	forcePointRatio="0.5" initialCompression="50" radius="1.5" radiusSea="1" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.7"  frictionScale="1.6"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="-1" restLoad="12" repr="0>0|5"  	forcePointRatio="0.5" initialCompression="50" radius="1.5" radiusSea="1" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.7"  frictionScale="1.6"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="40" rotCenterWheel1="2" rotCenterWheel2="3"/>
        </ackermannSteeringConfigurations>
    </wheels>
	
<!--     <speedRotatingParts>
        <speedRotatingPart node="0>1|13|0|0|0" radius="0.3"/>
        <speedRotatingPart node="0>1|13|0|1|0" radius="0.3"/>
    </speedRotatingParts> -->
	
	
	<lights>
        <sharedLight linkNode="0>1|11|0|0" lightTypes="1" />
        <sharedLight linkNode="0>1|11|0|1" lightTypes="1" />
		
		<states>
            <state lightTypes="0" />
            <state lightTypes="0 1"/>
        </states>

        <realLights>
            <low>
                <light node="0>1|11|1|0" lightTypes="1"/>
                <light node="0>1|11|1|1" lightTypes="1"/>
            </low>
            <high>
                <light node="0>1|11|1|0" lightTypes="1"/>
                <light node="0>1|11|1|1" lightTypes="1"/>
            </high>
        </realLights>
		
<!--         <dashboards>
            <dashboard displayType="EMITTER" valueType="lightState" node="0>1|16" intensity="10" lightTypes="0" />
            <dashboard displayType="EMITTER" valueType="lightState" node="0>1|17" intensity="10" lightTypes="0" />
        </dashboards> -->
    </lights>
 
<!--     <attacherJoints>
		 <attacherJoint node="0>1|29" jointType="trailer">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>1|30" jointType="trailer">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints> -->

    <enterable>
        <exitPoint node="0>1|1|0"/>
        <enterReferenceNode node="0>"/>
           
        <cameras>
            <camera node="0>1|2|0|0" rotatable="true" rotateNode="0>1|2|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="100">
                <raycastNode node="0>1|2|2"/>
                <raycastNode node="0>1|2|3"/>
            </camera>
            <camera node="0>1|2|1|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="false" isInside="true"/>
			<camera node="0>1|2|0|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="false" isInside="true"/>
        </cameras>
    </enterable>

    <motorized>
        <motorConfigurations>
            <motorConfiguration name="Standard" price="0">
                <motor torqueScale="10.912" minRpm="850" maxRpm="10200" maxForwardSpeed="40" maxBackwardSpeed="20" brakeForce="50" lowBrakeForceScale="0.2" lowBrakeForceSpeedLimit="1" rotInertia="0.001">
                    <torque normRpm="0.25" torque="0.2"/>
                    <torque normRpm="0.5" torque="0.3"/>
                    <torque normRpm="0.6" torque="0.4"/>
                    <torque normRpm="0.72" torque="0.6"/>
                    <torque normRpm="0.86" torque="0.8"/>
                    <torque normRpm="1" torque="1"/>
                </motor>
                <transmission minForwardGearRatio="42" maxForwardGearRatio="300" minBackwardGearRatio="32" maxBackwardGearRatio="300"/>
            </motorConfiguration>
        </motorConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <!-- <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="1" wheelIndex2="2"/> -->
                    <!-- <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="3" wheelIndex2="4"/> -->
                    <!-- <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="1" differentialIndex2="2"/> -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="5" wheelIndex2="6"/>
                    <!-- <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="3" differentialIndex2="4"/> -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
		
           <exhaustEffects>
            <exhaustEffect node="0>1|3" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0 0 0 3" minRpmScale="0.05" maxRpmScale="1" xzRotationsOffset="0 0" xzRotationsForward="-150 0" xzRotationsBackward="150 0" xzRotationsLeft="0 100" xzRotationsRight="0 -100"/>
			<exhaustEffect node="0>1|12" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0 0 0 3" minRpmScale="0.05" maxRpmScale="1" xzRotationsOffset="0 0" xzRotationsForward="-150 0" xzRotationsBackward="150 0" xzRotationsLeft="0 100" xzRotationsRight="0 -100"/>
        </exhaustEffects>

        <sounds>   
    <motor file="sound/ShipEngine.ogg" linkNode="0>1|7" innerRadius="200.0" outerRadius="500.0" >
        <volume indoor="1" outdoor="2" >
            <modifier type="SPEED" value="0.00" modifiedValue="0.00" />
            <modifier type="SPEED" value="18.0" modifiedValue="1.00" />
        </volume>
        <pitch indoor="1.0" outdoor="1.0" >
            <modifier type="SPEED" value="0.00" modifiedValue="0.25" />
            <modifier type="SPEED" value="50.0" modifiedValue="0.45" />           			
        </pitch>
    </motor>
	</sounds>
		
		<consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="300" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
             </consumerConfiguration>
        </consumerConfigurations>
    </motorized>

<!--     <drivable>
        <steeringWheel node="0>1|13|1|0" indoorRotation="1" outdoorRotation="-50"/>
    </drivable> -->
		
    <cylindered>
        <movingTools>	
		<movingTool node="0>1">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseSpeedFactor="0.6" />
                <translation transSpeed="0.7" transAcceleration="80" translationAxis="2" transMax="10" transMin="1" startTrans="2.2" />
            </movingTool>
	     <movingTool node="0>1|9" playSound="true">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="1" iconName="DRAWBAR_ROTATE_X" />
                <translation transSpeed="1" transAcceleration="5" transMax="25" transMin="-1" translationAxis="2"/>			
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="hingeMedium" pitchScale="0.7" volumeScale="0.5" linkNode="0>1|9" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="0>1|9"/>
            <actionSound template="clackVar6"   pitchScale="1"   volumeScale="0.6" linkNode="0>1|9" actionNames="TOOL_MOVE_END_POS_LIMIT "    nodes="0>1|9"/>
            <actionSound template="sheetImp02"  pitchScale="0.5" volumeScale="0.5" linkNode="0>1|9" actionNames="TOOL_MOVE_END_POS_LIMIT "    nodes="0>1|9"/>
            <actionSound template="clackVar6"   pitchScale="0.8" volumeScale="0.5" linkNode="0>1|9" actionNames="TOOL_MOVE_END_NEG_LIMIT "    nodes="0>1|9"/>
        </sounds>
    </cylindered>


    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
					<fillUnit capacity="5680" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showInShop="false" showOnHud="false">
					<exactFillRootNode node="0>1|13"/> </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="200000" updateMass="false">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
            <fillUnitConfiguration name="$l10n_configuration_valueExtension" price="0" >
                <fillUnits>
					<fillUnit capacity="5680" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showInShop="false" showOnHud="false">
					<exactFillRootNode node="0>1|13"/> </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="5000000"  updateMass="false">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
            <fillUnitConfiguration name="$l10n_configuration_valueExtension" price="0" >
                <fillUnits>
					<fillUnit capacity="5680" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showInShop="false" showOnHud="false">
					<exactFillRootNode node="0>1|13"/> </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="2000000"  updateMass="false">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_valueExtension" price="0" >
                <fillUnits>
					<fillUnit capacity="5680" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showInShop="false" showOnHud="false">
					<exactFillRootNode node="0>1|13"/> </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="5000000"  updateMass="false">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
						<fillUnitConfiguration name="$l10n_configuration_valueExtension" price="0" >
                <fillUnits>
					<fillUnit capacity="5680" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showInShop="false" showOnHud="false">
					<exactFillRootNode node="0>1|13"/> </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="10000000"  updateMass="false">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="100000" fillUnitIndex="2" canDischargeToGround="false">
            <info width="4.0" length="2" zOffset="0.4"/>
            <trigger node="dischargeTrigger"/>
        </dischargeNode>
    </dischargeable>

    <honk>
        <sound file="sound/foghorn.ogg" innerRadius="150.0" outerRadius="300.0" >
            <volume indoor="1" outdoor="5"/>
            <pitch outdoor="0.94"/>
            <lowpassGain indoor="0.90"/>
        </sound>
    </honk>

	 <i3dMappings>       
        <i3dMapping id="exactFillRootNode" node="0>1|8"/>
		<i3dMapping id="dischargeNode" node="0>1|9"/>
        <i3dMapping id="dischargeTrigger" node="0>1|10"/> 
    </i3dMappings>
</vehicle>
