<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
            <en>Homemade Log Trailer</en>
            <de>Selbstgebauter Holzanhänger</de>
        </name>
        <functions>
            <function>$l10n_function_forestryTransport</function>
        </functions>
        <image>store_smallHomemadeLogTrailer.png</image>
        <price>2000</price>
        <lifetime>300</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>woodTransport</category>
        <shopTranslationOffset>0 0.1 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>226816</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>74496</indexBufferMemoryUsage>
        <textureMemoryUsage>589824</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_timberTrailer</typeDesc>
        <filename>logtrailer/homemadeLogTrailer.i3d</filename>
        <size width="2.3" length="4.65" lengthOffset="0.13"/>
        <components>
            <component centerOfMass="0 0.6 -0.355" solverIterationCount="15" mass="100" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="150" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="150" />
            <joint component1="1" component2="2" node="axisLeftJoint" rotLimit="10 0 0"/>
            <joint component1="1" component2="3" node="axisRightJoint" rotLimit="10 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/10_80R12.xml" isLeft="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="wheelFrontLeft"   forcePointRatio="0.5" initialCompression="10" suspTravel="0.15" spring="55" damper="50" frictionScale="1" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/10_80R12.xml" isLeft="false" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.0" repr="wheelFrontRight"  forcePointRatio="0.5" initialCompression="10" suspTravel="0.15" spring="55" damper="50" frictionScale="1" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/10_80R12.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="wheelBackLeft"    forcePointRatio="0.5" initialCompression="10" suspTravel="0.15" spring="55" damper="50" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/10_80R12.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.0" repr="wheelBackRight"   forcePointRatio="0.5" initialCompression="10" suspTravel="0.15" spring="55" damper="50" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.20 0.15 0.15" />
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false" scale="0.20 0.15 0.15" />
            <hub linkNode="wheelBackLeft"   filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.20 0.15 0.15" />
            <hub linkNode="wheelBackRight"  filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false" scale="0.20 0.15 0.15" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailerCar" attacherHeight="0.55" />
        </inputAttacherJoints>
    </attachable>

    <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" rootNode="mainComponent" jointNode="mainComponent" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="-0.45" defaultOffsetSide="0.1" defaultHeight="3" interactionRadius="1.75" totalInteractionRadius="3.5" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="tensionBeltStart1" endNode="tensionBeltEnd1"/>
                    <tensionBelt startNode="tensionBeltStart2" endNode="tensionBeltEnd2"/>
                    <tensionBelt startNode="tensionBeltStart3" endNode="tensionBeltEnd3"/>
					<tensionBelt startNode="tensionBeltStart4" endNode="tensionBeltEnd4"/>
                    <sounds>
                        <addBelt template="beltOpen" />
                        <removeBelt template="beltClose" />
                    </sounds>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.6" height="2" length="5" lengthOffset="0.13"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.048" maxX="0.048" minZ="-1.964" maxZ="2.468" yOffset="0.28" />
        <bendingNode minX="-0.658" maxX="0.658" minZ="-1.946" maxZ="-2.055" yOffset="0.28" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
	
    <baseColorConfigurations useDefaultColors="true" defaultColorMaterialTemplateName="calibratedMetallicPaint">
        <baseColorConfiguration materialTemplateName="AEBI_RED1"/>

        <material materialSlotName="base_mat"/>
        <material materialSlotName="attacher_mat"/>
    </baseColorConfigurations>
	
	<rimColorConfigurations defaultColorIndex="0" useDefaultColors="true" price="0">
        <rimColorConfiguration name="$l10n_configuration_valueDefault" color="SHARED_WHITE1"  material="18" price="0"/>
    </rimColorConfigurations>

    <i3dMappings>
        <i3dMapping id="mainComponent" node="0>" />
        <i3dMapping id="axisLeft" node="1>0" />
        <i3dMapping id="wheelFrontLeft" node="1>0|0" />
        <i3dMapping id="wheelBackLeft" node="1>0|1" />
        <i3dMapping id="axisRight" node="2>0" />
        <i3dMapping id="wheelFrontRight" node="2>0|0" />
        <i3dMapping id="wheelBackRight" node="2>0|1" />
		<i3dMapping id="attacherJoint" node="0>0|1|0" />
		<i3dMapping id="axisLeftJoint" node="0>0|3" />
		<i3dMapping id="axisRightJoint" node="0>0|4" />
		<i3dMapping id="tensionBelts" node="0>0|5" />
		<i3dMapping id="tensionBeltStart1" node="0>0|5|0" />
		<i3dMapping id="tensionBeltEnd1" node="0>0|5|0|0" />
		<i3dMapping id="tensionBeltStart2" node="0>0|5|1" />
		<i3dMapping id="tensionBeltEnd2" node="0>0|5|1|0" />
		<i3dMapping id="tensionBeltStart3" node="0>0|5|2" />
		<i3dMapping id="tensionBeltEnd3" node="0>0|5|2|0" />
		<i3dMapping id="tensionBeltStart4" node="0>0|5|3" />
		<i3dMapping id="tensionBeltEnd4" node="0>0|5|3|0" />
		<i3dMapping id="beltActivationTrigger" node="0>0|5|4" />
		<i3dMapping id="attacher" node="0>0|1" />
    </i3dMappings>
</vehicle>
