<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="wheelLoader">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Weidemann 4270 CX100 T</en>
        <de>Weidemann 4270 CX100 T</de>
    </name>
    <filename>data/vehicles/steerable/weidemann/weidemann4270CX100T.i3d</filename>

    <size width="3.0" length="6.0" />

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="0" driveMode="2" repr="0"   radius="0.5" deltaY="-0.05" suspTravel="0.1" spring="250" damper="30" mass="0.42" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="2" repr="1"   radius="0.5" deltaY="-0.05" suspTravel="0.1" spring="250" damper="30" mass="0.42" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1>0" radius="0.5" deltaY="0.05" suspTravel="0.1" spring="100" damper="30" mass="0.3"  longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1>1" radius="0.5" deltaY="0.05" suspTravel="0.1" spring="100" damper="30" mass="0.3"  longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
    <motor minRpm="100" maxRpm="1030 1365 2140 690" maxTorques="-1 -1 -1 -1" brakeForce="13.5" lowBrakeForceScale="0.4" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="22.5" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="100" torque="1"/>
		<torque rpm="2140" torque="1"/>

		<backwardTorque rpm="650" torque="1.1"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.4" deceleration="0.6" backwardDeceleration="0.7" />
    <fuelCapacity>102</fuelCapacity>
    <fuelUsage>0.001</fuelUsage>
    <downForce>7</downForce>
	<bunkerSiloCompacter compactingScale="1"/>

    <cameras count="2">
        <camera1 index="0>2|0|0" rotatable="true" rotateNode="0>2|0" limit="true" rotYSteeringRotSpeed="22.5" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="18" >
			<raycastNode index="0>14|0"/>
			<raycastNode index="0>14|1"/>
		</camera1>
        <camera2 index="0>2|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
    </cameras>

	<lights>
        <light realLight="1>5" fakeLight="1>6" decoration="1>7" lightType="0"/>
		<light decoration="0>12" lightType="0"/>
		<light realLight="0>7" decoration="0>21" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>22" />
	</brakeLights>

	<beaconLights>
		<beaconLight index="0>13|0" speed="0.016" />
	</beaconLights>

    <steering index="0>8|0" rotationSpeed="10"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="0>6" />

    <trailerAttacherJoints>
        <trailerAttacherJoint index="0>20" />
    </trailerAttacherJoints>

    <attacherJoints>
        <attacherJoint jointType="telehandler" index="1>4|0|0|1|1" allowsJointLimitMovement="false" allowsLowering="false" rootNode="1>" />
    </attacherJoints>

    <mouseControls>
        <mouseControl iconFilename="dataS2/menu/mouseControlsHelp/tool_weidemann_arm1.png" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="dataS2/menu/mouseControlsHelp/tool_weidemann_arm2.png" axis="AXIS_FRONTLOADER_ARM2" />
        <mouseControl iconFilename="dataS2/menu/mouseControlsHelp/tool_weidemann_tool.png" axis="AXIS_FRONTLOADER_TOOL" />
    </mouseControls>

    <movingTools>
        <movingTool index="1>4|0" componentJointIndex="1" anchorActor="0" rotSpeed="20" rotAcceleration="300" rotMax="30" rotMin="-55" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" invertMouseAxis="true" speedFactor="0.7">
            <dependentPart index="1>4|0|1" />
			<dependentPart index="1>4|0|2" />
			<dependentPart index="1>4|0|0" />
            <dependentMovingTool index="1>4|0|0|1" rotSpeedScale="-1"/>
        </movingTool>
		<movingTool index="1>9|0|0|0" rotSpeed="20" rotAcceleration="300" rotMax="40" rotMin="-45" rotationAxis="3" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" invertMouseAxis="false" speedFactor="0.7">
        </movingTool>
		<movingTool index="1>4|0|0" componentJointIndex="2" transSpeed="0.7" transAcceleration="40" transMax="2.813" transMin="1.577" translationAxis="3" axis="AXIS_FRONTLOADER_ARM2" invertAxis="false" invertMouseAxis="true" speedFactor="0.7">
			<dependentPart index="1>4|0|0|0|0" />
			<dependentPart index="1>4|0|0|1" />
		</movingTool>
		<movingTool index="1>4|0|0|1" attacherJointIndices="0" anchorActor="0" rotSpeed="45" rotAcceleration="500" rotMax="110" rotMin="-5" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" invertMouseAxis="false" speedFactor="0.7">
            <dependentPart index="1>4|0|0|0|0" />
			<dependentPart index="1>4|0|0|2" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="1>4|0|1" referencePoint="1>4|1" referenceFrame="0>">
            <translatingPart index="1>4|0|1|0" />
        </movingPart>
		<movingPart index="1>4|0|2" referencePoint="1>4|5" referenceFrame="0>">
            <translatingPart index="1>4|0|2|0" />
        </movingPart>

        <movingPart index="1>4|0|0|2" referencePoint="1>4|0|0|0|0|1" referenceFrame="0>">
            <translatingPart index="1>4|0|0|2|0" />
        </movingPart>

		<movingPart index="1>4|0|0|0|0" referencePoint="1>4|0|0|1|0" localReferencePoint="1>4|0|0|0|0|0" referenceFrame="1>4|0|0|3">
			<dependentPart index="1>4|0|0|0|0|0" />
			<dependentPart index="1>4|0|0|2" />
        </movingPart>
		<movingPart index="1>4|0|0|0|0|0" referencePoint="1>4|0|0|1|0" referenceFrame="1>4|0|0|4">
        </movingPart>

        <movingPart index="0>16" referencePoint="1>4|3" referenceFrame="0>" isActiveDirty="true" playSound="false">
            <translatingPart index="0>16|0" />
        </movingPart>
		<movingPart index="0>17" referencePoint="1>4|4" referenceFrame="0>" isActiveDirty="true" playSound="false">
            <translatingPart index="0>17|0" />
        </movingPart>
		<movingPart index="0>18" referencePoint="1>4|2" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false">
        </movingPart>
    </movingParts>

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/weidemann/weidemann4270_start.wav" pitchOffset="0.9" volume="2" />
    <motorSound file="data/vehicles/steerable/weidemann/weidemann4270_idle.wav" pitchOffset="0.9" pitchScale="0.02" pitchMax="1.25" volume="2" radius="35" innerRadius="15" />
    <motorSoundRun file="data/vehicles/steerable/weidemann/weidemann4270_run.wav" pitchOffset="0.5" pitchScale="0.025" pitchMax="1.05" volume="0.8" />
    <motorStopSound file="data/vehicles/steerable/weidemann/weidemann4270_stop.wav" pitchOffset="0.95" />
    <reverseDriveSound file="data/vehicles/steerable/deutz/reverseDrivingBeep.wav" volume="0.35" />
	<cylinderedHydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.65" volume="0.72" />

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>10" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

	<honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <characterNode index="0>9" cameraMinDistance="1.5" />

    <aiTrafficCollisionTrigger index="1>8" />

	<articulatedAxis componentJointIndex="0" anchorActor="0" rotSpeed="45" rotMax="33" rotMin="-33">
		<dependentPart index="0>16" />
		<dependentPart index="0>17" />
		<dependentPart index="0>18" />
	</articulatedAxis>

    <skinnedNodes>
        <skinnedNode index="1>10" />
    </skinnedNodes>

    <components count="4">
        <component1 centerOfMass="0 0.2 -1.14" solverIterationCount="35" />
        <component2 centerOfMass="0 -1.3 1.14" solverIterationCount="35" />
        <component3 centerOfMass="0 -1.7 0" solverIterationCount="20" />
		<component4 centerOfMass="0 -1.7 0" solverIterationCount="20" />
		<joint component1="0" component2="1" index="0>19" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="2" index="1>4|0"   rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="3" index="1>4|0|0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <collisionPair component1="2" component2="3" enabled="false"/>
    </components>

    <schemaOverlay file="data/vehicles/schemas/vehicleSchema.png" fileSelected="data/vehicles/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="0 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
