<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Trabant 601S</name>
        <specs>
            <power>26</power>
			<maxSpeed>80</maxSpeed>
        </specs>
        <functions>
            <function>Trabant heißt die ab 1958 in der DDR im VEB Automobilwerk Zwickau, später VEB Sachsenring Automobilwerke Zwickau, in Serie gebaute Pkw-Baureihe. Trabant 601</function>
        </functions>
        <image>store.dds</image>
        <price>441</price>
        <lifetime>6000</lifetime>
        <rotation>0</rotation>
        <brand>TRABANT</brand>
        <category>cars</category>
    </storeData>
    <base>
        <filename>Trabant.i3d</filename>
        <size width="2.5" length="3.5"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="2650"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="CAR" />
		<sounds filename="Sound/sound.xml" />
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="2.3">
					<wheel mass="0.5"  isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" radius="0.26" restLoad="0.5"  repr="0>0" width="0.30" forcePointRatio="0.5" initialCompression="25" suspTravel="0.19" spring="40" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel mass="0.5"  isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" radius="0.26" restLoad="0.5"  repr="0>1"  width="0.30" forcePointRatio="0.5" initialCompression="25" suspTravel="0.19" spring="40" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel mass="0.5"  isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="0>2" forcePointRatio="0.5" radius="0.29" width="0.30" initialCompression="25" suspTravel="0.14" spring="19" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel mass="0.5"  isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="0>3" forcePointRatio="0.5" radius="0.29" width="0.30" initialCompression="25" suspTravel="0.14" spring="19" damper="50" frictionScale="3"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="45" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <attacherJoints>
        <attacherJoint node="0>50" jointType="trailer" lowerRotLimit="10 80 80" lowerTransLimit="0 0 0" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>50" jointType="trailerLow" lowerRotLimit="10 80 80" lowerTransLimit="0 0 0" allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach file="$data/sounds/vehicles/shared/attach_01.wav">
                <pitch outdoor="1"/>
            </attach>
        </sounds>
    </attacherJoints>
	
	<licensePlates defaultPlacement="BOTH">
        <licensePlate node="0>48" position="FRONT" preferedType="ELONGATED" placementArea="0.10 0.22 0.10 0.22"/>
        <licensePlate node="0>49"  position="BACK"  preferedType="ELONGATED" placementArea="0.05 0.25 0.05 0.25"/>
    </licensePlates>
    
    
    <enterable>
        <exitPoint node="0>51"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>55|0" cameraMinDistance="2.0" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>55|1"/>
            <target ikChain="leftFoot" targetNode="0>55|2"/>
            <target ikChain="rightArm" targetNode="0>38|0|0|1"/>
            <target ikChain="leftArm" targetNode="0>38|0|0|2"/>
        </characterNode>
        <cameras>
            <camera node="0>53|0" rotatable="true" rotateNode="0>53" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="40">
            </camera>
            <camera node="0>54" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
	   </cameras>

		<passengerSeats>
            <passengerSeat node="0>60|0" exitPoint="0>60|0|4" outdoorCameraIndex="1">
                <camera node="0>60|0|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="0>60|0|1" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="0>60|0|5" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="0>60|0|6" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="0>60|0|2" />
                    <target ikChain="rightFoot" targetNode="0>60|0|3" />
                </characterNode>
            </passengerSeat>            
			<passengerSeat node="0>60|1" exitPoint="0>60|1|4" outdoorCameraIndex="1">
                <camera node="0>60|1|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="0>60|1|1" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="0>60|1|5" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="0>60|1|6" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="0>60|1|2" />
                    <target ikChain="rightFoot" targetNode="0>60|1|3" />
                </characterNode>
				</passengerSeat>
			<passengerSeat node="0>60|2" exitPoint="0>60|2|4" outdoorCameraIndex="1">
                <camera node="0>60|2|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="0>60|2|1" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="0>60|2|5" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="0>60|2|6" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="0>60|2|2" />
                    <target ikChain="rightFoot" targetNode="0>60|2|3" />
                </characterNode>
            </passengerSeat>
        </passengerSeats>
    </enterable>
    <motorized>
		<consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="70"  fillType="diesel" />
            </consumerConfiguration>			
        </consumerConfigurations>
		<motorConfigurations>
        <motorConfiguration name="Trabant original" hp="26" price="0">
                <motor torqueScale="0.50" minRpm="850" maxRpm="3200" maxForwardSpeed="80" maxBackwardSpeed="15" brakeForce="1" lowBrakeForceScale="0.000002" dampingRateScale="0.15">
                    <torque normRpm="0.58" torque="0.6"/>
                    <torque normRpm="0.60" torque="0.7"/>
                    <torque normRpm="0.68" torque="0.8"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="1" torque="0.8"/>
                </motor>
				<transmission autoGearChangeTime="0.5" gearChangeTime="0.4" axleRatio="12" startGearThreshold="0.35" name="$l10n_info_transmission_manual">
                    <directionChange useGear="true" useGroup="false" changeTime="0.5"/>
                    <forwardGear gearRatio="2.55" name="1" />
                    <forwardGear gearRatio="2.00" name="2" />
                    <forwardGear gearRatio="1.45" name="3" />
                    <forwardGear gearRatio="1.20" name="4" />
                    <backwardGear gearRatio="3.20" name="R"/>
                </transmission>
            </motorConfiguration>
		</motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="3" wheelIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>57" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.7 0.7 1.5 0.2" maxRpmColor="0.8 0.8 3.5 0.5" minRpmScale="0.05" maxRpmScale="0.4"/>
            <exhaustEffect node="0>56" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.7 0.7 1.5 0.2" maxRpmColor="0.8 0.8 3.5 0.5" minRpmScale="0.05" maxRpmScale="0.4"/>
		</exhaustEffects>
         
		<dashboards>
            <dashboard displayType="ANIMATION" valueType="speed" intensity="0.2" animName="speedDisplay"   groups="MOTOR_ACTIVE"/>
		</dashboards>
    </motorized>
    <drivable>
        <steeringWheel node="0>38|0|0" indoorRotation="210" outdoorRotation="70"/>
    </drivable>
    <animations>
        <animation name="speedDisplay">
            <part node="0>42|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -175 0"/>
        </animation>
		<animation name="rightDoor">
            <part node="0>19" startTime="0" duration="2" startRot="0 0 0" endRot="0 80 0"/>
			<sound file="hang/kilincs.wav" startTime="0.001" direction="1"  volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/becsukfolyamat.wav" startTime="1.8" direction="-1" volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/puff.wav"    startTime="0.001" direction="-1" volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/nyitfolyamat.wav"    startTime="0.2" direction="1"  volumeScale="1.4" pitchScale="1.0"/>
        </animation>
		<animation name="leftDoor">
            <part node="0>21" startTime="0" duration="2" startRot="0 0 0" endRot="0 -80 0"/>
			<sound file="hang/kilincs.wav" startTime="0.001" direction="1"  volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/becsukfolyamat.wav" startTime="1.8" direction="-1" volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/puff.wav"    startTime="0.001" direction="-1" volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/nyitfolyamat.wav"    startTime="0.2" direction="1"  volumeScale="1.4" pitchScale="1.0"/>
        </animation>		
		<animation name="rearDoor">
            <part node="0>13" startTime="0" duration="2" startRot="0 0 0" endRot="95 0 0"/>
           	<part node="0>16"  startTime="0.0" endTime="0.05" visibility="true"  />
			<part node="0>16"  startTime="0.05" endTime="0.10" visibility="false"  />
			<sound file="hang/kilincs.wav" startTime="0.001" direction="1"  volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/becsukfolyamat.wav" startTime="1.8" direction="-1" volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/puff.wav"    startTime="0.001" direction="-1" volumeScale="1.4" pitchScale="1.0"/>
            <sound file="hang/nyitfolyamat.wav"    startTime="0.2" direction="1"  volumeScale="1.4" pitchScale="1.0"/>
        </animation>
    </animations>
	
	<tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="0>73" jointNode="0>" activationTrigger="0>73|3" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="-0.25" defaultOffsetSide="0.1" defaultHeight="2.75" interactionRadius="1.5" totalInteractionRadius="6.5">
                    <tensionBelt startNode="0>73|0" endNode="0>73|0|0"/>
                    <tensionBelt startNode="0>73|2" endNode="0>73|2|0"/>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<lights>

	    <states>
            <state lightTypes="1" />
			<state lightTypes="2" />
        </states>
		
		    <realLights>
            <low>
                <light node="0>44|2" lightTypes="1"/>
                <light node="0>44|0" lightTypes="2"/>
				<light node="0>44|1" lightTypes="2"/>
                <light node="0>47" lightTypes="1 2"/>
				<light node="0>46" lightTypes="1 2"/>
				<turnLightLeft node="0>43|1"/>
                <turnLightRight node="0>43|0"/>
                <brakeLight node="0>45"/>
            </low>
            <high>
                <light node="0>44|2" lightTypes="1"/>
                <light node="0>44|0" lightTypes="2"/>
				<light node="0>44|1" lightTypes="2"/>
                <light node="0>47" lightTypes="1 2"/>
				<light node="0>46" lightTypes="1 2"/>
				<turnLightLeft node="0>43|1"/>
                <turnLightRight node="0>43|0"/>
                <brakeLight node="0>45"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="0>10" lightTypes="1 2"/>
        </defaultLights>
        <turnLights>
		    <turnLightRight shaderNode="0>9"/>
            <turnLightLeft shaderNode="0>8"/>

        </turnLights>
        <brakeLights>
            <brakeLight shaderNode="0>12"/>
        </brakeLights>
		
		
        <beaconLights>
            <beaconLight node="0>59" filename="$data/shared/assets/beaconLights/lizard/beaconLight07.xml"/>
        </beaconLights>
		
        <sounds>
            <toggleLights linkNode="0>" template="SWITCH_01"/>
            <turnLight linkNode="0>" template="SWITCH_TURNLIGHT"/>
        </sounds>
		
    </lights>
	
	<interactiveControl>
        <interactiveControlConfigurations title="$l10n_actionIC_Animation">
            <interactiveControlConfiguration name="$l10n_actionIC_interactive">
                <interactiveControls>
                    <outdoorTrigger node="0>69" />
						<interactiveControl posText="$l10n_motorki" negText="$l10n_motorbe">
						<clickPoint node="0>68" size="0.05" type="INDOOR" iconType="IGNITIONKEY" />
						<function name="MOTOR_START_STOPP" />
						</interactiveControl>
						<interactiveControl posText="$l10n_radioki" negText="$l10n_radiobe">
						<clickPoint node="0>65" size="0.05" type="INDOOR" iconType="TURN_ON" />
						<function name="RADIO_TOGGLE" />
						<animation name="radio" speedScale="2" initTime="0.0" />
						</interactiveControl>
						<interactiveControl posText="$l10n_kovetkezo" negText="$l10n_kovetkezo">
						<clickPoint node="0>66" size="0.05" type="INDOOR" iconType="TURNLIGHT_RIGHT" />
						<function name="RADIO_CHANNEL_NEXT" />
						</interactiveControl>
						<interactiveControl posText="$l10n_vissza" negText="$l10n_vissza">
						<clickPoint node="0>67" size="0.05" type="INDOOR" iconType="TURNLIGHT_LEFT" />
						<function name="RADIO_CHANNEL_PREVIOUS" />
						</interactiveControl>
						<interactiveControl posText="$l10n_balajtocsuk" negText="$l10n_balajtonyit">
						<clickPoint node="0>21|13" size="0.05" type="INDOOR" iconType="CROSS" />
						<clickPoint node="0>21|12" size="0.05" type="OUTDOOR" iconType="CROSS" />
						<animation name="leftDoor" speedScale="2" initTime="0.0" />
						<soundModifier indoorFactor="2.0" delayedSoundAnimationTime="0.1" />
						</interactiveControl>
						<interactiveControl posText="$l10n_jobbajtocsuk" negText="$l10n_jobbajtonyit">
						<clickPoint node="0>19|12" size="0.05" type="INDOOR" iconType="CROSS" />
						<clickPoint node="0>19|13" size="0.05" type="OUTDOOR" iconType="CROSS" />
						<animation name="rightDoor" speedScale="2" initTime="0.0" />
						<soundModifier indoorFactor="2.0" delayedSoundAnimationTime="0.1" />
						</interactiveControl>						
						<interactiveControl posText="$l10n_csomagcsuk" negText="$l10n_csomagnyit">
						<clickPoint node="0>13|2" size="0.05" type="OUTDOOR" iconType="CROSS" />
						<animation name="rearDoor" speedScale="2" initTime="0.0" />
						<soundModifier indoorFactor="2.0" delayedSoundAnimationTime="0.1" />
						</interactiveControl>
				</interactiveControls>
			</interactiveControlConfiguration>
		</interactiveControlConfigurations>
	</interactiveControl>
	
	<baseMaterial>
        <material name="test1" baseNode="0>20">
            <shaderParameter name="colorMat0" value="SHARED_WHITE1" />
        </material>       
		<material name="test2" baseNode="0>19">
            <shaderParameter name="colorMat0" value="SHARED_WHITE1" />
        </material>		
		<material name="test3" baseNode="0>21">
            <shaderParameter name="colorMat0" value="SHARED_WHITE1" />
        </material>		
		<material name="test4" baseNode="0>13|1">
            <shaderParameter name="colorMat0" value="SHARED_WHITE1" />
        </material>		
		<material name="test5" baseNode="0>26">
            <shaderParameter name="colorMat0" value="SHARED_WHITE1" />
        </material>
    </baseMaterial>

    <baseMaterialConfigurations useDefaultColors="true" title="$l10n_configuration_chassisColor">
        <material name="test1" shaderParameter="colorMat0" />
        <material name="test2" shaderParameter="colorMat0" />
        <material name="test3" shaderParameter="colorMat0" />
        <material name="test4" shaderParameter="colorMat0" />
        <material name="test5" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
	
	<honk>
        <sound linkNode="0>" file="Sound/horn.ogg" />
    </honk>
	
		<design2Configurations>
        <design2Configuration name="$l10n_no_beacon" price="0">
            <objectChange node="0>59" visibilityActive="false"/>
        </design2Configuration>
        <design2Configuration name="$l10n_beacon1" price="100">
            <objectChange node="0>59" visibilityActive="true"/>
        </design2Configuration>
    </design2Configurations>
	
	
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="24" unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" showOnHud="true" showInShop="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    <honk>
        <sound file="Sound/Honk.ogg" innerRadius="35">
            <volume outdoor="2"/>
        </sound>
    </honk>
    <ai>
        <collisionTrigger node="0>58"/>
    </ai>

</vehicle>
