<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="ferry">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>            <en>Grain Barge</en>
        </name>
        <specs>
            <power>4350</power>
            <maxSpeed>25</maxSpeed>
        </specs>
        <functions>
            <function>Grain Barge</function>
        </functions>
        <image>store/store_grain.dds</image>
        <price>1000000</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>Barge</typeDesc>
        <filename>grainBarge.i3d</filename>
        <size width="13" length="40"/>
        <components>
            <component centerOfMass="0 1.6 0" solverIterationCount="20" mass="100000"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0"/>
        <tailwaterDepth warning="5.0" threshold="10.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="2.5" radiusSea="2" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.5" 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="2.5" radiusSea="2" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.5" 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="2.5" radiusSea="2" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.5" 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="2.5" radiusSea="2" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.5" 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="2.5" radiusSea="2" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.8" 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="2.5" radiusSea="2" width="0.5" mass="0.85" tireType="mud" suspTravel="0.8" spring="10" damper="16" brakeFactor="0.8" frictionScale="1.6"/>
                        <tire tireTrackAtlasIndex="0"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="40" rotCenterWheel1="2" rotCenterWheel2="3"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <enterable>
        <exitPoint node="0>1|1|0"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>1|12|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>1|12|1"/>
            <target ikChain="leftFoot" targetNode="0>1|12|2"/>
            <target ikChain="rightArm" targetNode="0>1|12|3"/>
            <target ikChain="leftArm" targetNode="0>1|12|4"/>
        </characterNode>
        <cameras>
            <camera node="0>1|3|0|0" rotatable="true" rotateNode="0>1|3|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="70">
                <raycastNode node="0>1|3|2"/>
                <raycastNode node="0>1|3|3"/>
            </camera>
            <camera node="0>1|3|1|0" 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="25600" maxForwardSpeed="40" maxBackwardSpeed="20" brakeForce="50" lowBrakeForceScale="0.12" lowBrakeForceSpeedLimit="1" rotInertia="0.002">
                    <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>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="3" usage="1000" fillType="diesel"/>
                <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>
        <sounds>
            <motor file="sound/ShipEngine.ogg" linkNode="0>1|8" innerRadius="200.0" outerRadius="1000.0">
                <volume indoor="1" outdoor="10">
                    <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>
    </motorized>
    <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|2" playSound="true">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="1" iconName="DRAWBAR_ROTATE_X"/>
                <translation transSpeed="1" transAcceleration="5" transMax="25" transMin="-10" translationAxis="2"/>
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="hingeMedium" pitchScale="0.7" volumeScale="0.5" linkNode="0>1|2" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="0>1|2"/>
            <actionSound template="clackVar6" pitchScale="1" volumeScale="0.6" linkNode="0>1|2" actionNames="TOOL_MOVE_END_POS_LIMIT " nodes="0>1|2"/>
            <actionSound template="sheetImp02" pitchScale="0.5" volumeScale="0.5" linkNode="0>1|2" actionNames="TOOL_MOVE_END_POS_LIMIT " nodes="0>1|2"/>
            <actionSound template="clackVar6" pitchScale="0.8" volumeScale="0.5" linkNode="0>1|2" actionNames="TOOL_MOVE_END_NEG_LIMIT " nodes="0>1|2"/>
        </sounds>
    </cylindered>
    <drivable/>
    <animations>
        <animation name="tipAnimationFront">
            <part node="0>1|4|0" startTime="0" endTime="2" startRot="0 0 0" endRot="359 0 0"/>
        </animation>
        <animation name="tipAnimationBack">
            <part node="0>1|4|1" startTime="0" endTime="2" startRot="0 0 0" endRot="359 0 0"/>
        </animation>
        <animation name="toggleCover">
            <part node="0>1|6" startTime="0" endTime="4" startRot="0 0 0" endRot="0 0 165"/>
            <part node="0>1|7" startTime="0" endTime="4" startRot="0 0 0" endRot="0 0 -165"/>
            <part node="0>1|8" startTime="0" endTime="4" startRot="0 0 0" endRot="0 0 165"/>
            <part node="0>1|9" startTime="0" endTime="4" startRot="0 0 0" endRot="0 0 -165"/>
        </animation>
    </animations>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="BULK" capacity="2500000" updateMass="false">
                        <exactFillRootNode node="0>1|0|2"/>
                        <autoAimTargetNode node="0>1|0|4" startZ="5.791" endZ="0.760" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="BULK" capacity="2500000" updateMass="false">
                        <exactFillRootNode node="0>1|0|3"/>
                        <autoAimTargetNode node="0>1|0|5" startZ="-0.382" endZ="-5.570" invert="false" fillUnitIndex="2" startPercentage="25"/>
                    </fillUnit>
                    <fillUnit capacity="4000" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showOnHud="false" showInShop="true">
					<exactFillRootNode node="0>1|0|6"/>
					</fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>1|0|0" maxDelta="0.04" maxAllowedHeapAngle="22" fillUnitIndex="1"/>
                    <volume node="0>1|0|1" maxDelta="0.04" maxAllowedHeapAngle="18" fillUnitIndex="2"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>
    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideFront" dischargeNodeIndex="1">
                        <animation name="tipAnimationFront" speedScale="1.0" startTipTime="0.8"/>
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="2">
                        <animation name="tipAnimationBack" speedScale="1.0" startTipTime="0.8"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
    <dischargeable>
        <dischargeNode node="0>1|2|0" emptySpeed="50000" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.5" length="0.5"/>
            <effects>
                <effectNode effectNode="0>1|5|1|0" materialType="unloading" materialTypeId="1" fadeTime="0.5" useDistance="false"/>
            </effects>
        </dischargeNode>
        <dischargeNode node="0>1|2|1" emptySpeed="50000" fillUnitIndex="2" unloadInfoIndex="2">
            <info width="1.5" length="0.5"/>
            <effects>
                <effectNode effectNode="0>1|5|0|0" materialType="unloading" materialTypeId="2" fadeTime="0.5" useDistance="false"/>
            </effects>
        </dischargeNode>
    </dischargeable>
    <honk>
        <sound file="sound/foghorn.ogg" innerRadius="200.0" outerRadius="1000.0">
            <volume indoor="1" outdoor="20"/>
            <pitch outdoor="0.94"/>
            <lowpassGain indoor="0.90"/>
        </sound>
    </honk>
    <cover>
        <coverConfigurations>
            <coverConfiguration openCoverWhileTipping="true">
                <cover openAnimation="toggleCover" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>
</vehicle>
