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

<vehicle type="Greatdane_V2">
 <name><en>GreatDane V2</en></name>
 
 <filename>GreatDane_V2.i3d</filename>

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

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

 <support animationName="moveSupport" />
	
 <playAnimations>
        <animation animName="doors"     inputName="IMPLEMENT_EXTRA2" posHelpText="Open"   negHelpText="Close" />
 </playAnimations>
	
 <components count="2">
  <component1 centerOfMass="0 0 0" solverIterationCount="4" />
  <component2 solverIterationCount="8" />
  <joint component1="0" component2="1" index="0>7|0" rotLimit="0 0 0" transLimit="0 0 0" />
 </components>
	
 <movingTools>
<!-- folding -->
  <movingTool index="0>6|0">
   <dependentPart index="0>6|1" />
  </movingTool>

  <movingTool index="0>6|2">
   <dependentPart index="0>6|3" />
  </movingTool>
<!-- support -->
  <movingTool index="0>7" componentJointIndex="0" anchorActor="0"/>
 </movingTools>

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

 <lightCoronas>
    <lightCorona index="0>9|2" />
 </lightCoronas>

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

<!-- object attacher -->
 <baleCastPoints allowVehicleAttachment="true">
  <baleCastPoint frontRight="0>11|0" backLeft="0>11|2" attacherNode="0>" highOffset="4"/>
  <baleCastPoint frontRight="0>11|1" backLeft="0>11|3" attacherNode="0>" highOffset="4"/>
 </baleCastPoints>
  
 <allowFillFromAir value="false" />
 <allowTipDischarge value="false" />
	
 <wheelParticleSystems file="Textures/wheelParticleSystem.i3d" >
  <wheelParticleSystem node="0>0|1"  />
  <wheelParticleSystem node="0>1|1"  />
  <wheelParticleSystem node="0>2|1"  />
  <wheelParticleSystem node="0>3|1"  />
  <wheelParticleSystem node="0>4|1"  />
  <wheelParticleSystem node="0>5|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"/>
  <drivingParticle position=" 1 0 -6.35" rotation="0 0 0" file="Textures/dustParticleSystem.i3d" wheel="5" minSpeed="10" maxSpeed="140"/>
  <drivingParticle position="-1 0 -6.35" rotation="0 0 0" file="Textures/dustParticleSystem.i3d" wheel="6" 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>