<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="livestockTrailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Boiadeiro Toco</name>
        <functions>
            <function>$l10n_function_livestockTrailer</function>
        </functions>
        <image>gaiola.dds</image>
        <price>2000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
       <brand customIcon="BRAND.dds" imageOffset="0.060">FM</brand>
        <category>FMveiculos</category>
        <shopTranslationOffset>0 0.022 0</shopTranslationOffset>
        <shopRotationOffset>0.081 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1971456</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>303616</indexBufferMemoryUsage>
        <textureMemoryUsage>1048576</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_livestockTrailer</typeDesc>
        <filename>gaiola.i3d</filename>
        <size width="7.5" height="6.8" length="8.2"/>
        <components>
            <component centerOfMass="0 0 0"  solverIterationCount="20" mass="780"/>
			<component solverIterationCount="10" mass="10"/>
			<joint component1="1" component2="2" node="joint corda" rotLimit="30 0 10" />
        </components>
        <mapHotspot type="TRAILER" />
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

    <baseMaterial>
		<material name="Gaiola" baseNode="0>0|2">
            <shaderParameter name="colorMat0" value="0 0.12 0.38 14"/>
        </material>
		<material name="portaT" baseNode="0>0|2|3|0">
            <shaderParameter name="colorMat0" value="0 0.12 0.38 14"/>
        </material>
		<material name="tabuasL" baseNode="0>0|2|2">
            <shaderParameter name="colorMat1" value="0 0.12 0.38 14"/>
        </material>
    </baseMaterial>
    <baseMaterialConfigurations useDefaultColors="true" defaultColorIndex="4">
        <material name="Gaiola" shaderParameter="colorMat0"/>
		<material name="portaT" shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>
    <designMaterialConfigurations useDefaultColors="true" defaultColorIndex="7">        		
        <material name="tabuasL" shaderParameter="colorMat1"/>
		
    </designMaterialConfigurations>
    

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="boiadeiro" jointType="trailerLow" attacherHeight="0.58" />
        </inputAttacherJoints>
        <brakeForce force="0.8" />
        <support animationName="moveSupport" />
    </attachable>

    <animations>
		<animation name="moveSupport">
            <part node="cavalete" startTime="0" endTime="0.1" startScale="0.01 0.01 0.01" endScale="1 1 1"/>
            <part node="" startTime="0.1" endTime="0.2" startTrans="0 0.65 0" endTrans="0 0 0"/>
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="1.4" pitchScale="0.8" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.4" direction="1" volumeScale="2.5" pitchScale="0.8" linkNode="attacherJoint"/>           
        </animation>

        <animation name="porta">
            <part node="portaT" startTime="0" endTime="1" endTrans="0 0 0" startTrans="0 1.645 0" />
            <part node="porta M" startTime="0" endTime="1" endTrans="0 0 0" startTrans="0 1.645 0" />
            <part node="rolete1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 900"/>
			<part node="rolete2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 900"/>
        </animation>    
    </animations>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration >
               <foldingParts startMoveDirection="1" turnOnFoldMaxLimit="0.1" turnOnFoldMinLimit="0">
                    <foldingPart animationName="porta" speedScale="0.3" />
                </foldingParts>
                
            </foldingConfiguration>
           
        </foldingConfigurations>
    </foldable>


    <livestockTrailer>
        <animal type="sheep" node="0>0|1|1" numSlots="8" />
        <animal type="pig"   node="0>0|1|2"   numSlots="8" />
        <animal type="cow"   node="0>0|1|0"   numSlots="5" />
        <animal type="horse"   node="0>0|1|3"   numSlots="4" />
        <animal type="chicken"   node="0>0|1|4"   numSlots="24" />
    </livestockTrailer>

    <ai>
        <allowTurnBackward value="false" />
        <agentAttachment jointNode="0>0|0|0" width="2" height="4.8" length="4.2" lengthOffset="0.55" />
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	
	<designColorConfigurations useDefaultColors="true" defaultColorIndex="6" title="madeira">
        <designColorConfiguration color="INTERNATIONAL_RED1"/>       
        <material materialSlotName="madeira_mat"/>		
    </designColorConfigurations>
    <designColor2Configurations useDefaultColors="true" defaultColorIndex="6" title="gaiola">
        <designColor2Configuration color="INTERNATIONAL_RED1"/>       
        <material materialSlotName="gaiola_mat"/>		
    </designColor2Configurations>
  <i3dMappings>
  <i3dMapping id="gaiola_0" node="0>" />
  <i3dMapping id="gaiola_1" node="0>0" />
  <i3dMapping id="engates" node="0>0|0" />
  <i3dMapping id="attacherJoint" node="0>0|0|0" />
  <i3dMapping id="animals" node="0>0|1" />
  <i3dMapping id="cows" node="0>0|1|0" />
  <i3dMapping id="cow01" node="0>0|1|0|0" />
  <i3dMapping id="cow02" node="0>0|1|0|1" />
  <i3dMapping id="cow03" node="0>0|1|0|2" />
  <i3dMapping id="cow04" node="0>0|1|0|3" />
  <i3dMapping id="cow05" node="0>0|1|0|4" />
  <i3dMapping id="sheeps" node="0>0|1|1" />
  <i3dMapping id="sheep01" node="0>0|1|1|0" />
  <i3dMapping id="sheep02" node="0>0|1|1|1" />
  <i3dMapping id="sheep03" node="0>0|1|1|2" />
  <i3dMapping id="sheep04" node="0>0|1|1|3" />
  <i3dMapping id="sheep05" node="0>0|1|1|4" />
  <i3dMapping id="sheep06" node="0>0|1|1|5" />
  <i3dMapping id="sheep07" node="0>0|1|1|6" />
  <i3dMapping id="sheep08" node="0>0|1|1|7" />
  <i3dMapping id="pigs" node="0>0|1|2" />
  <i3dMapping id="pig01" node="0>0|1|2|0" />
  <i3dMapping id="pig02" node="0>0|1|2|1" />
  <i3dMapping id="pig03" node="0>0|1|2|2" />
  <i3dMapping id="pig04" node="0>0|1|2|3" />
  <i3dMapping id="pig05" node="0>0|1|2|4" />
  <i3dMapping id="pig06" node="0>0|1|2|5" />
  <i3dMapping id="pig07" node="0>0|1|2|6" />
  <i3dMapping id="pig08" node="0>0|1|2|7" />
  <i3dMapping id="horses" node="0>0|1|3" />
  <i3dMapping id="horse01" node="0>0|1|3|0" />
  <i3dMapping id="horse02" node="0>0|1|3|1" />
  <i3dMapping id="horse03" node="0>0|1|3|2" />
  <i3dMapping id="horse04" node="0>0|1|3|3" />
  <i3dMapping id="chickens" node="0>0|1|4" />
  <i3dMapping id="chiken01_0" node="0>0|1|4|0" />
  <i3dMapping id="chiken01_1" node="0>0|1|4|1" />
  <i3dMapping id="chiken01_2" node="0>0|1|4|2" />
  <i3dMapping id="chiken01_3" node="0>0|1|4|3" />
  <i3dMapping id="chiken01_4" node="0>0|1|4|4" />
  <i3dMapping id="chiken01_5" node="0>0|1|4|5" />
  <i3dMapping id="chiken01_6" node="0>0|1|4|6" />
  <i3dMapping id="chiken01_7" node="0>0|1|4|7" />
  <i3dMapping id="chiken01_8" node="0>0|1|4|8" />
  <i3dMapping id="chiken01_9" node="0>0|1|4|9" />
  <i3dMapping id="chiken01_10" node="0>0|1|4|10" />
  <i3dMapping id="chiken01_11" node="0>0|1|4|11" />
  <i3dMapping id="chiken01_12" node="0>0|1|4|12" />
  <i3dMapping id="chiken01_13" node="0>0|1|4|13" />
  <i3dMapping id="chiken01_14" node="0>0|1|4|14" />
  <i3dMapping id="chiken01_15" node="0>0|1|4|15" />
  <i3dMapping id="chiken01_16" node="0>0|1|4|16" />
  <i3dMapping id="chiken01_17" node="0>0|1|4|17" />
  <i3dMapping id="chiken01_18" node="0>0|1|4|18" />
  <i3dMapping id="chiken01_19" node="0>0|1|4|19" />
  <i3dMapping id="5" node="0>0|1|4|20" />
  <i3dMapping id="chiken01_20" node="0>0|1|4|21" />
  <i3dMapping id="chiken01_21" node="0>0|1|4|22" />
  <i3dMapping id="chiken01_22" node="0>0|1|4|23" />
  <i3dMapping id="Gaiola" node="0>0|2" />
  <i3dMapping id="prisilhas" node="0>0|2|0" />
  <i3dMapping id="tabuas" node="0>0|2|1" />
  <i3dMapping id="tabuasL" node="0>0|2|2" />
  <i3dMapping id="porta T anin" node="0>0|2|3" />
  <i3dMapping id="portaT" node="0>0|2|3|0" />
  <i3dMapping id="ponta 1" node="0>0|2|3|0|0" />
  <i3dMapping id="porta M anin" node="0>0|2|4" />
  <i3dMapping id="porta M" node="0>0|2|4|0" />
  <i3dMapping id="corda b_0" node="0>0|2|5" />
  <i3dMapping id="corda b_1" node="0>0|2|5|0" />
  <i3dMapping id="corda" node="0>0|2|5|1" />
  <i3dMapping id="rolamentos" node="0>0|2|6" />
  <i3dMapping id="rolete1" node="0>0|2|6|0" />
  <i3dMapping id="rolete2" node="0>0|2|6|1" />
  <i3dMapping id="boiadeiro" node="0>0|3" />
  <i3dMapping id="cavalete" node="0>1" />
  <i3dMapping id="pilar4" node="0>1|0" />
  <i3dMapping id="pilar" node="0>1|0|0" />
  <i3dMapping id="corda1_0" node="0>1|0|0|0" />
  <i3dMapping id="supportCol_0" node="0>1|0|1" />
  <i3dMapping id="supportCol_1" node="0>1|0|2" />
  <i3dMapping id="pilar3" node="0>1|1" />
  <i3dMapping id="cavalete01" node="0>1|1|0" />
  <i3dMapping id="corda1_1" node="0>1|1|0|0" />
  <i3dMapping id="supportCol_2" node="0>1|1|1" />
  <i3dMapping id="supportCol_3" node="0>1|1|2" />
  <i3dMapping id="coll" node="0>2" />
  <i3dMapping id="joint corda" node="0>3" />
  <i3dMapping id="cordacomp" node="1>" />
  <i3dMapping id="ponta 2" node="1>0" />
</i3dMappings>
</vehicle>
