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

    <storeData>
        <name>BETIMAX RDS 7500 ITR</name>
        <functions>
            <function>$l10n_function_livestockTrailer</function>
        </functions>
        <image>store/rds7500.dds</image>
        <price>24000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOSKIN</brand>
        <category>animals</category>
        <vertexBufferMemoryUsage>1253384</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>171408</indexBufferMemoryUsage>
        <textureMemoryUsage>12932688</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_livestockTrailer</typeDesc>
    <filename>itRunner/joskinBetimaxRDS7500ITR.i3d</filename>

    <size width="3" length="10" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel restLoad="1.0" repr="0>0" radius="0.085" initialCompression="50" suspTravel="0.05" spring="300" damper="100" frictionScale="0.35" mass="0.02" maxLatStiffness="300" maxLatStiffnessLoad="3"/>
        <wheel restLoad="1.0" repr="0>1" radius="0.085" initialCompression="50" suspTravel="0.05" spring="300" damper="100" frictionScale="0.35" mass="0.02" maxLatStiffness="300" maxLatStiffnessLoad="3"/>
    </wheels>

    <brakeForce>0.4</brakeForce>

    <fillUnits>
        <fillUnit fillTypes="pig sheep cow" capacity="0" unit="$l10n_unit_pieces" />
    </fillUnits>

    <livestockTrailer>
        <animal type="sheep" index="0>2|2|0" filename="$dataS2/character/sheep/sheepLoaded.i3d" />
        <animal type="pig"   index="0>2|2|1" filename="$dataS2/character/pig/pigLoaded.i3d" />
        <animal type="cow"   index="0>2|2|2" filename="$dataS2/character/cow/cowLoaded.i3d" />
    </livestockTrailer>

    <lights>
        <low>
            <light decoration="0>2|3|0|0" lightTypes="0 3" /> <!--BackLights-->
        </low>
        <high>
            <light realLight="0>2|3|0|1" decoration="0>2|3|0|0" lightTypes="0 3" /> <!--BackLights-->
        </high>
    </lights>

    <brakeLights>
        <brakeLight realLight="0>2|3|0|1" decoration="0>2|3|2|0" />
    </brakeLights>

    <turnLights>
        <turnLightLeft realLight="0>2|3|1|0|1" decoration="0>2|3|1|0|0" />
        <turnLightRight realLight="0>2|3|1|1|1" decoration="0>2|3|1|1|0" />
    </turnLights>

    <reverseLights>
        <reverseLight realLight="0>2|3|3|1" decoration="0>2|3|3|0" />
    </reverseLights>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>5" jointType="hookLift" allowsJointRotLimitMovement="false" upperRotationOffset="0" forceSelectionOnAttach="false"/>
    </inputAttacherJoints>

    <cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav"  pitchOffset="0.8" volume="1.0" indoorVolumeFactor="0.45" />

    <movingTools>
        <movingTool index="0>2|1|0" playSound="true" />
        <movingTool index="0>2|1|0|0" playSound="true" />
        <movingTool index="0>2|1|0|0|0" playSound="true" />
        <movingTool index="0>2|1|1" playSound="true" />
        <movingTool index="0>2|1|1|0" playSound="true" />
    </movingTools>
	
    <fillMassNode index="0>" />

    <movingParts>
		<movingPart index="0>2|1|0" referencePoint="0>2|1|2" referenceFrame="0>"/>
	</movingParts>

	<hydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="1.00"  volume="0.45" indoorVolumeFactor="0.25" indoorLowpassGain="0.90" />
	
    <foldingParts startMoveDirection="-1" foldInputButton="LOWER_IMPLEMENT" posDirectionText="unfold_fence" negDirectionText="retract_fence" >
        <foldingPart animationName="folding" speedScale="1.0" />
    </foldingParts>

    <animations>
        <!-- folding -->
        <animation name="folding">
            <part node="0>2|1|0" startTime="0" endTime="7.0" startTrans="0 1.75 0.491" endTrans="0 1.75 -4.39" />
            <part node="0>2|1|0|0|0" startTime="2.5" endTime="8.0" startRot="0 0 0" endRot="0 90 0" />
            <part node="0>2|1|0|0|1" startTime="2.5" endTime="8.0" startRot="0 0 0" endRot="0 -90 0" />
            <part node="0>2|1|0|0|0|0" startTime="6.0" endTime="9.0" startRot="0 0 0" endRot="0 0 -180" />
            <part node="0>2|1|0|0|1|0" startTime="6.0" endTime="9.0" startRot="0 0 0" endRot="0 0 180" />
            <part node="0>2|1|0|0" startTime="7.5" endTime="10.0" startTrans="0 0 0" endTrans="0 -0.75 0" />
			
            <part node="0>2|1|1" startTime="4.0" endTime="8.0" startRot="4.1 0 0" endRot="-120 0 0" />
            <part node="0>2|1|1|0|0" startTime="4.0" endTime="8.0" startRot="-1.72 0 0" endRot="180 0 0" />
            <part node="0>2|1|1|0" startTime="8.0" endTime="11.0" startTrans="0 0.014 -0.06" endTrans="0 0.88 -0.06" />
            <part node="0>2|1|1|0|0|0" startTime="8.0" endTime="11.0" startTrans="0 0.049 -0.04" endTrans="0 -0.76 -0.04" />
			
            <part node="0>2|1|2|0" startTime="10.0" endTime="12.0" startRot="0 0 0" endRot="0 180 0" />
            <part node="0>2|1|2|1" startTime="10.0" endTime="12.0" startRot="0 0 0" endRot="0 -180 0" />
        </animation>
        <!-- cover -->
        <animation name="toggleCover">
            <part node="0>2|4" startTime="0"    endTime="0.05" visibility="false" />
            <part node="0>2|4" startTime="0.05" endTime="0.1"  visibility="true" />
        </animation>
    </animations>

    <cover animationName="toggleCover" />

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <tipOcclusionAreas>
        <tipOcclusionArea start="0>4|0" width="0>4|1" height="0>4|2" />
    </tipOcclusionAreas>

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

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0" />

</vehicle>
