<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Сзап 8357</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
		<specs>
            <neededPower>170</neededPower>
        </specs>
        <image>store_Pr.dds</image>
        <price>12000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KAMAZ</brand>
        <category>trailers</category>
    </storeData>
    <base>
        <filename>Czap.i3d</filename>
        <size width="4" length="9" lengthOffset="0.5"/>
        <components>
            <component centerOfMass="0 1 0" solverIterationCount="10" mass="2793"/>
            <component solverIterationCount="10" mass="250"/>
            <component solverIterationCount="10" mass="250"/>
            <joint component1="1" component2="2" node="1>2" rotLimit="0 120 0" transLimit="0 0 0"/>
            <joint component1="2" component2="3" node="2>0" rotLimit="20 0 0" transLimit="0 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>
    <baseColorConfigurations useDefaultColors="true" price="1600">
        <baseColorConfiguration color="0.051 0.157 0 1"/>
		<baseColorConfiguration color="0.0072 0.2758 0.0528 1"/>
        <baseColorConfiguration color="0.8879 0.1878 0.0037 1"/>
        <baseColorConfiguration color="0 0.25 0.25 1"/>
        <baseColorConfiguration color="0.8 0 1 1"/>
        <baseColorConfiguration color="0.25 0.8 0.01 1"/>
        <baseColorConfiguration color="0 0.2 0.3 1"/>
        <baseColorConfiguration color="0 0.27 0.59 1"/>
        <baseColorConfiguration color="0.80 0.35 0.068 1"/>
        <colorNode node="0>2|0|0|0|0"/>
        <colorNode node="0>2|0|0|0|2"/>
        <colorNode node="0>2|0|0|0|3"/>
        <colorNode node="0>5|3"/>
    </baseColorConfigurations>
   
  <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.7">
                    <wheel filename="wheels/wheels.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.6"  repr="0>0|0"  transRatio="1" forcePointRatio="0.5" initialCompression="22" suspTravel="0.4" spring="20" damper="12" frictionScale="3" />
                    </wheel>
                    <wheel filename="wheels/wheels.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.6"  repr="0>1|0" transRatio="1" forcePointRatio="0.5" initialCompression="22" suspTravel="0.4" spring="20" damper="12" frictionScale="3" />
                    </wheel>
                    <wheel filename="wheels/wheels.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.6"  repr="1>0|0"  transRatio="1" forcePointRatio="0.5" initialCompression="22" suspTravel="0.4" spring="20" damper="12" frictionScale="3" />
                    </wheel>
                    <wheel filename="wheels/wheels.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.6"  repr="1>1|0" transRatio="1"  forcePointRatio="0.5" initialCompression="22" suspTravel="0.4" spring="20" damper="12" frictionScale="3" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        
		
    </wheels>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="2>0|0" rootNode="2>" jointType="trailer" attacherHeight="0.068"/>
        </inputAttacherJoints>
        <brakeForce>0.8</brakeForce>
    </attachable>
    
	<attacherJoints>
         <sounds>
            <attach file="$data/sounds/vehicles/shared/truck_attach_01.wav">
                <volume indoor="0.45" outdoor="1.00"/>
                <pitch outdoor="0.90"/>
                <lowpassGain indoor="0.90"/>
            </attach>
        </sounds>
    </attacherJoints>
    
	<lights>
     <states>
          <state lightTypes="0" />
     </states>
        <realLights>
            <low>
			   <light node="0>6|3" lightTypes="0"/>
                <brakeLight node="0>6|4" />
                <turnLightLeft node="0>6|5" />
				<turnLightRight node="0>6|6" />
				<reverseLight node="0>6|2" />
            </low>
            <high>
                <light node="0>6|3" lightTypes="0"/>
                <brakeLight node="0>6|4" />
                <turnLightLeft node="0>6|5" />
				<turnLightRight node="0>6|6" />
				<reverseLight node="0>6|2" />
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="0>6|1|4"          lightTypes="0" intensity="4" />
			<defaultLight shaderNode="0>6|1|5"          lightTypes="0" intensity="4" />
            <defaultLight shaderNode="0>6|1|6"          lightTypes="0" intensity="4" />
		    <defaultLight shaderNode="0>6|1|7"          lightTypes="0" intensity="4" />
        </defaultLights>
        
		<turnLights>
            <turnLightLeft shaderNode="0>6|1|0" intensity="5" />
            <turnLightRight shaderNode="0>6|1|1" intensity="5" />
		   
        </turnLights>
        
		<brakeLights>
            <brakeLight shaderNode="0>6|1|8" intensity="10" />
			<brakeLight shaderNode="0>6|1|9" intensity="10" />
        </brakeLights>
        
		<reverseLights>
            <reverseLight shaderNode="0>6|1|10" intensity="4" />
		    <reverseLight shaderNode="0>6|1|11" intensity="4" />
		</reverseLights>
        
		<sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
    </lights>
    
	<animations>
        <animation name="tipAnimationLeft">
            <part node="0>2|0|0|0|0" startTime="0" endTime="0.8" startRot="0 0 0" endRot="0 0 -170"/>
            <part node="0>2|0|0|0|7|0|0|0" startTime="0.1" endTime="1" startRot="0 0 7.153" endRot="0 0 7.153"/>
            <part node="0>2|0|0|0|7|0|0|2" startTime="0.1" endTime="1" startRot="0 0 7.153" endRot="0 0 7.153"/>
            <part node="0>2|0|0|0|7|0|0|3" startTime="0.1" endTime="1" startRot="0 0 7.153" endRot="0 0 7.153"/>
            <part node="0>2|0|0|0|7|0|1|0" startTime="0.1" endTime="1" startRot="0 0 0" endRot="0 0 0"/>
        
		     <part node="0>2|3" startTime="15" endTime="0" visibility="false" />
            <part node="0>2|3" startTime="15" endTime="0.001" visibility="true" />
		    
			<part node="0>2|3|0|0|0" startTime="15" endTime="16" startRot="0 0 0" endRot="0 20 0"/>
		    <part node="0>2|3|0|1|0" startTime="15" endTime="16" startRot="0 0 0" endRot="0 50 0"/>
		  
		    <part node="0>2|3|0|0|0" startTime="16" endTime="17" startRot="0 20 0" endRot="0 0 0"/>
		    <part node="0>2|3|0|1|0" startTime="16" endTime="17" startRot="0 50 0" endRot="0 0 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="17" endTime="18" startRot="0 0 0" endRot="0 20 0"/>
		    <part node="0>2|3|0|1|0" startTime="17" endTime="18" startRot="0 0 0" endRot="0 50 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="18" endTime="19" startRot="0 20 0" endRot="0 0 0"/>
		    <part node="0>2|3|0|1|0" startTime="18" endTime="19" startRot="0 50 0" endRot="0 0 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="19" endTime="20" startRot="0 0 0" endRot="0 20 0"/>
		    <part node="0>2|3|0|1|0" startTime="19" endTime="20" startRot="0 0 0" endRot="0 50 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="20" endTime="21" startRot="0 20 0" endRot="0 0 0"/>
		    <part node="0>2|3|0|1|0" startTime="20" endTime="21" startRot="0 50 0" endRot="0 0 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="21" endTime="22" startRot="0 0 0" endRot="0 20 0"/>
		    <part node="0>2|3|0|1|0" startTime="21" endTime="22" startRot="0 0 0" endRot="0 50 0"/>
		
		
		    <part node="0>2|3|0|0|0" startTime="22" endTime="23" startRot="0 20 0" endRot="0 0 0"/>
		    <part node="0>2|3|0|1|0" startTime="22" endTime="23" startRot="0 50 0" endRot="0 0 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="23" endTime="24" startRot="0 0 0" endRot="0 20 0"/>
		    <part node="0>2|3|0|1|0" startTime="23" endTime="24" startRot="0 0 0" endRot="0 50 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="24" endTime="25" startRot="0 20 0" endRot="0 0 0"/>
		    <part node="0>2|3|0|1|0" startTime="24" endTime="25" startRot="0 50 0" endRot="0 0 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="25" endTime="26" startRot="0 0 0" endRot="0 20 0"/>
		    <part node="0>2|3|0|1|0" startTime="25" endTime="26" startRot="0 0 0" endRot="0 50 0"/>
		
		    <part node="0>2|3|0|0|0" startTime="26" endTime="27" startRot="0 20 0" endRot="0 0 0"/>
		    <part node="0>2|3|0|1|0" startTime="26" endTime="27" startRot="0 50 0" endRot="0 0 0"/>
		</animation>
       
    
	    <animation name="tent">
            <part node="0>2|0|0|0|16|0" startTime="0" endTime="0.05" visibility="false"/>
            <part node="0>2|0|0|0|16|0" startTime="0.05" endTime="0.1" visibility="true"/>
        </animation>
	
	      <animation name="alignStoiki">
            <part componentJointIndex="1" startTime="0.0" endTime="0.15" startRotLimit="0 45 0" endRotLimit="0 0 0"/>
        </animation>
	</animations>
    
	<simpleIC outsideInteractionTrigger="0>9|0">
        <animation animationName="tent" animationSpeed="1" sharedAnimation="false" soundVolumeIncreasePercentage="1">
             <outsideTrigger triggerPoint="0>9|1" triggerPointSize="0.08"/>
        </animation>
	</simpleIC>
 
    <foldable>
        <foldingParts startMoveDirection="1" foldInputButton="alignStoikiButton" posDirectionText="lockStoiki" negDirectionText="unlockStoiki">
            <foldingPart animationName="alignStoiki" speedScale="1.1" />
        </foldingParts>
    </foldable>
	
	<cylindered>
        
    </cylindered>
   
  <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="20000">
                        <exactFillRootNode node="0>3"/>
                        <fillRootNode node="0>"/>
                        <fillMassNode node="0>"/>
                        <autoAimTargetNode node="0>4"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
   
   <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>2|0|0|0|8|0" maxDelta="0.12" maxAllowedHeapAngle="12"  fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        
		<unloadInfos>
            <unloadInfo>
                <node node="0>2|0|0|0|14|0" width="0.3" length="2.3" minHeight="0.5" priority="2"/>
                <node node="0>2|0|0|0|14|1" width="0.3" length="2.3" minHeight="0.5" priority="2"/>
                <node node="0>2|0|0|0|14|3" width="2.0" length="2.3"/>
                <node node="0>2|0|0|0|14|2" width="2.0" length="2.3"/>
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
    
	<fillVolumes>
        <heightNodes>
            <heightNode fillVolumeIndex="1" >
                <refNode node="0>2|0|0|0|15|0"/>
                <refNode node="0>2|0|0|0|15|1"/>
                <node node="0>2|0|0|0|15|2" baseScale="1 1 1" transAxis="0 1 0" transMax="0 0.1 0" fillUnitIndex="1" />
            </heightNode>
        </heightNodes>
    </fillVolumes>
    
	<dischargeable>
        <dischargeNode node="0>2|2|0" emptySpeed="800" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.5" length="0.5" zOffset="0.5"/>
            <effects>
                <effectNode effectNode="0>2|0|0|0|7|0|0|0" materialType="unloading" materialTypeId="3" fadeTime="0.5" extraDistanceNode="0>2|2|0" extraDistance="1.2"/>
                <effectNode effectNode="0>2|0|0|0|7|0|0|1" materialType="smoke" materialTypeId="1" fadeTime="0.5"/>
                <effectNode effectNode="0>2|0|0|0|7|0|0|2" materialType="unloading" materialTypeId="3" fadeTime="0.5" extraDistanceNode="0>2|2|0" extraDistance="1.2"/>
                <effectNode effectNode="0>2|0|0|0|7|0|0|3" materialType="unloading" materialTypeId="3" fadeTime="0.5" extraDistanceNode="0>2|2|0" extraDistance="1.2"/>
                <effectNode effectNode="0>2|0|0|0|7|0|1|0" effectClass="ParticleEffect"/>
            </effects>
        </dischargeNode>
    </dischargeable>
   
  <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipAnimationLeft" speedScale="1.0" startTipTime="0.02"/>
                    </tipSide>
                  <!--   <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipAnimationRight" speedScale="1.0" startTipTime="0.02"/>
                    </tipSide> -->
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
    
	
	 
	<connectionHoses>
	    <!--Front -->
        <hose inputAttacherJointIndices="1 2 3" type="electric" node="0>7|0" length="1.6" diameter="0.009" straighteningFactor="0.3"/>
		<hose inputAttacherJointIndices="1 2 3" type="hydraulicIn"  node="0>7|1"  length="1.6" diameter="0.02" straighteningFactor="0.3"/>
		<hose inputAttacherJointIndices="1 2 3" type="hydraulicIn"  node="0>7|2"  length="1.6" diameter="0.02" straighteningFactor="0.3"/>
		<hose inputAttacherJointIndices="1 2 3" type="airDoubleRed"  node="0>7|3"  length="1.6" diameter="0.02" straighteningFactor="0.3"/>
        <hose inputAttacherJointIndices="1 2 3" type="airDoubleYellow"  node="0>7|4"  length="1.6" diameter="0.02" straighteningFactor="0.3"/>
        <!--Front -->
	</connectionHoses>
	
	<washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
   
</vehicle>
