<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<vehicle type="Greatdane_V1">
 <name><en>GreatDane V1</en></name>
 
 <filename>GreatDane_V1.i3d</filename>

 <wheels autoRotateBackSpeed="2.0">
  <wheel driveMode="0" repr="2>0" radius="0.57" deltaY="0.23" suspTravel="0.25" spring="60" damper="40" mass="1" lateralStiffness="0.1" />
  <wheel driveMode="0" repr="2>1" radius="0.57" deltaY="0.23" suspTravel="0.25" spring="60" damper="40" mass="1" lateralStiffness="0.1" />
  <wheel driveMode="0" repr="2>2" radius="0.57" deltaY="0.23" suspTravel="0.25" spring="60" damper="40" mass="1" lateralStiffness="0.1" />
  <wheel driveMode="0" repr="2>3" radius="0.57" deltaY="0.23" suspTravel="0.25" spring="60" damper="40" mass="1" lateralStiffness="0.1" />
 </wheels>

 <size width="3" length="6" />
 <brakeForce>1</brakeForce>
 <massScale value="1.0" />

 <support animationName="moveSupport" />
	
 <mouseControls>
        <mouseControl iconFilename="Textures/slide.dds" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />      
 </mouseControls>
 
 <playAnimations>
      <animation animName="doors"     inputName="IMPLEMENT_EXTRA2" posHelpText="Open"   negHelpText="Close" />
 </playAnimations>
	
 <components count="3">
  <component1 centerOfMass="0 -0.1 0" solverIterationCount="4" />
  <component2 centerOfMass="0 0 0"    solverIterationCount="4" />
  <component3 centerOfMass="0 0 0"    solverIterationCount="4" />
  <joint component1="0" component2="1" index="0>1|0"  rotLimit="0 0 0" transLimit="0 0 0" />
  <joint component1="0" component2="2" index="0>10|0" rotLimit="0 0 0" transLimit="0 0 0" />
 </components>
	
 <movingTools>
<!-- folding -->
  <movingTool index="0>0|0">
   <dependentPart index="0>0|1" />
  </movingTool>

  <movingTool index="0>0|2">
   <dependentPart index="0>0|3" />
  </movingTool>
<!-- support -->
  <movingTool index="0>1" componentJointIndex="0" anchorActor="0"/>
  
  <movingTool index="0>10" componentJointIndex="1" anchorActor="0" transSpeed="0.6" transAcceleration="6" transMax="-3.4" transMin="-5.6" translationAxis="3" speedFactor="0.6" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL" />
 </movingTools>

 <movingParts>
<!-- main hydraulic -->
  <movingPart index="0>0|1|0" referencePoint="0>0|3|0" referenceFrame="0>">
   <translatingPart index="0>0|1|0|0" />
  </movingPart>
 </movingParts>
	
 <animations>
<!-- Open/Close Door -->
  <animation name="doors">
   <part node="0>0|0" startTime="0" endTime="4.5" startRot="0 0 0" endRot="0 265 0"/>
   <part node="0>0|1" startTime="0" endTime="4.5" startRot="0 0 0" endRot="0 265 0"/>
   <part node="0>0|2" startTime="0" endTime="4.0" startRot="0 0 0" endRot="0 -265 0"/>
   <part node="0>0|3" startTime="0" endTime="4.0" startRot="0 0 0" endRot="0 -265 0"/>
  </animation>
<!-- move support down/up -->
  <animation name="moveSupport">
   <part node="0>1" startTime="0" duration="0.05" startTrans="0 0.35 4.208" endTrans="0 -0.15 4.208" />
  </animation>
  
  <animation name="slideAxle">
   <part node="0>10" startTime="0" duration="5" startTrans="0 0.86 -5.6" endTrans="0 0.86 -3.4" />
  </animation>
 </animations>
     
 <attacherJoint index="2" jointType="semitrailer"/>
 
 <lightCoronas>
	<lightCorona index="0>3|2" />
 </lightCoronas>

 <brakeLights>
    <brakeLight index="0>3|3" />
 </brakeLights>
	
 <lightsaddon lightsStayOn="false">
	<light type="dirLeft" index="0>3|0" />
	<light type="dirRight" index="0>3|1" />
 </lightsaddon>
    
 <dynamicMountAttacherTrigger triggerNode="0>4" rootNode="0>" jointNode="0>" />

<!-- object attacher -->
 <baleCastPoints allowVehicleAttachment="true">
  <baleCastPoint frontRight="0>5|0" backLeft="0>5|2" attacherNode="0>" highOffset="4"/>
  <baleCastPoint frontRight="0>5|1" backLeft="0>5|3" attacherNode="0>" highOffset="4"/>
 </baleCastPoints>
 
 <allowFillFromAir value="false" />
 <allowTipDischarge value="false" />
	
 <wheelParticleSystems file="Textures/wheelParticleSystem.i3d" >
  <wheelParticleSystem node="2>0|1"  />
  <wheelParticleSystem node="2>1|1"  />
  <wheelParticleSystem node="2>1|1"  />
  <wheelParticleSystem node="2>1|1"  />
 </wheelParticleSystems>
	
 <drivingParticles threshold="0.005">
  <drivingParticle position=" 1 0 -2.73" rotation="0 0 0" file="Textures/dustParticleSystem.i3d" wheel="1" minSpeed="10" maxSpeed="140"/>
  <drivingParticle position="-1 0 -2.73" rotation="0 0 0" file="Textures/dustParticleSystem.i3d" wheel="2" minSpeed="10" maxSpeed="140"/>
  <drivingParticle position=" 1 0 -4.55" rotation="0 0 0" file="Textures/dustParticleSystem.i3d" wheel="3" minSpeed="10" maxSpeed="140"/>
  <drivingParticle position="-1 0 -4.55" rotation="0 0 0" file="Textures/dustParticleSystem.i3d" wheel="4" minSpeed="10" maxSpeed="140"/>
 </drivingParticles>

 <schemaOverlay file="$data/vehicles/schemas/implementSchema.png" fileSelected="$data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>
</vehicle>