<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="GreenbaseWinch">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>40 Eco</name>
        <specs>
            <workingWidth>2.2</workingWidth>
            <neededPower>70</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_logsWinch</function>
        </functions>
        <image>store/greenbase_eco.dds</image>
        <price>2348,99</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Greenbase</brand>
        <category>wood</category>
        <shopTranslationOffset>0 0.05 0</shopTranslationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_logsWinch</typeDesc>
        <filename>Seilwinde_final.i3d</filename>
        <size width="3" length="1.5" />
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="15" mass="410" />
			<component centerOfMass="0.346 0.432 -0.134" solverIterationCount="15" mass="60" />
			<joint component1="1" component2="2" node="1>"          rotLimit="0 0 0" 	transLimit="0 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>

    <powerConsumer maxPtoRpm="700" neededMaxPtoPower="30"/>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" detachNode="0>7|1" inputNode="0>7|0" aboveAttacher="true" filename="$data/shared/assets/powerTakeOffs/walterscheidW.xml" />
    </powerTakeOffs>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>7|2" rootNode="0>" jointType="implement" isControllable="true" isDefaultLowered="true" topReferenceNode="0>7|3" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" lowerRotLimitScale="0 0 0" rotLimitForceLimit="1 1 1">
            	<distanceToGround lower="0.35" upper="0.95" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" startMoveDirection="-1" />
    </attachable>

    <attacherJointControl maxTiltAngle="25">
        <control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_HYDRAULICATTACHER1" invertControlAxis="true" mouseSpeedFactor="0.5" iconName="IMPLEMENT_ATTACHER_TRANS" />
        <control controlFunction="controlAttacherJointTilt" controlAxis="AXIS_HYDRAULICATTACHER2" invertControlAxis="true" mouseSpeedFactor="0.5" iconName="IMPLEMENT_ATTACHER_ROTX" />
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJointControl>
	
	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="attacherBallLeft" filename="$data/vehicles/johnDeere/weightSetBall.i3d"/>
        <dynamicallyLoadedPart node="1" linkNode="attacherBallRight" filename="$data/vehicles/johnDeere/weightSetBall.i3d"/>
    </dynamicallyLoadedParts>

    <cylindered>
   		<movingTools>
			<movingTool node="0>2|2|0">
			</movingTool>        
	    </movingTools>
   	</cylindered>
	
	<designConfigurations>
		<designConfiguration name="Seil + Kette" price="0">
			<objectChange node="0>3" visibilityActive="true"/>
			<objectChange node="1>" visibilityActive="true"/>
		</designConfiguration>
		<designConfiguration name="Seil" price="0">
			<objectChange node="0>3" visibilityActive="true"/>
			<objectChange node="1>" visibilityActive="false"/>
		</designConfiguration>
		<designConfiguration name="Kette" price="0">
			<objectChange node="0>3" visibilityActive="false"/>
			<objectChange node="1>" visibilityActive="true"/>
		</designConfiguration>
		<designConfiguration name="Nichts" price="0">
			<objectChange node="0>3" visibilityActive="false"/>
			<objectChange node="1>" visibilityActive="false"/>
		</designConfiguration>		
	</designConfigurations>

	<animations>
        <!-- move support wheel down/up -->
		<animation name="moveSupport">
            <part node="0>1" startTime="0" endTime="0.01" startTrans="0 0.215 0.237"     endTrans="0 0.01 0.237" />
            <part node="0>6|0"   startTime="0" endTime="0.01" startTrans="0 0.125 0" endTrans="0 -0.06 0" />
        </animation>

    </animations>

    <logsWinch jointRefNode="0>2|0" ropeRefNode="0>2|2|0|0" ropeMesh="0>2|2|0|0|0|21" ropeEndMeshLength="0.18" chainMesh="0>2|1" pulleyMesh="0>2|2|0" winchingSpeed="0.005" winchingSpeedup="4" winchingPtoRpm="450"  speedupWinchingPtoRpm="700" maxWinchingMass="8" ropeLength="60" maxChainLength="15" >
        <ropesUVScroll>
 <!--           <rope1 index="0>1|2" />   -->
            <rope2 index="0>9" />
        </ropesUVScroll>
        <skinnedRope jointsParentNode="0>2|2|0|0|0" jointsCount="20" ropeBias="0.05" />
        <dynamicChain i3dFilename="chainMaterialHolder.i3d" materialHolderNode="0|0" hookNode="0|2" chainWidth="0.05" />
        <removableTrailerHook index="0>8" switchAnimation="removeHook" />
        <!--
        <overridenInputAttacher lowerRotationOffset="12" upperRotationOffset="-15" rotSaturation="0.5" />
        -->
        <sounds>
            <winching file="sounds/transmissionOld.ogg">
                <volume indoor="0.5" outdoor="1.0">
                    <modifier type="WINCHING_LOAD" value="0.00" modifiedValue="0.5" />
                    <modifier type="WINCHING_LOAD" value="0.50" modifiedValue="0.75" />
                    <modifier type="WINCHING_LOAD" value="1.00" modifiedValue="0.85" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="WINCHING_LOAD" value="0.00" modifiedValue="0.8" />
                    <modifier type="WINCHING_LOAD" value="0.50" modifiedValue="0.61" />
                    <modifier type="WINCHING_LOAD" value="1.00" modifiedValue="0.58" />
                </pitch>
            </winching>
            <chainAttach file="sounds/chainAttach.ogg">
                <volume indoor="1.0" outdoor="1.5" />
            </chainAttach>
            <chainDetach file="sounds/chainDetach.ogg" volume="1.2">
                <volume indoor="1.0" outdoor="1.2" />
            </chainDetach>
        </sounds>
    </logsWinch>

    <foliageBending>
        <bendingNode minX="-1.1" maxX="1.1" minZ="-0.4" maxZ="0.3" yOffset="0.0" />
    </foliageBending>
    
    <wearable wearDuration="480" workMultiplier="10" />
	<washable dirtDuration="90" washDuration="1" workMultiplier="4" />

	<i3dMappings>
		<i3dMapping id="attacherBallRight"		node="0>7|5" />
		<i3dMapping id="attacherBallLeft"		node="0>7|4" />
    </i3dMappings>


</vehicle>
