<?xml version="1.0"?>

<!--
    Copyright Wayne Bragg
    c172p-detailed, April 2018
    License: GPL_V2+
-->

<PropertyList>

    <path>mooringharness.ac</path>
    <nopreview/>

    <animation>
        <type>select</type>
        <object-name>anchorharness</object-name>
        <condition>
            <and>
                <property>fdm/jsbsim/mooring/anchor-length</property>
                <property>fdm/jsbsim/mooring/rope-visible</property>
            </and>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>anchorharnessrelaxed</object-name>
        <condition>
            <and>
                <property>fdm/jsbsim/mooring/anchor-length</property>
                <not>
                    <property>fdm/jsbsim/mooring/rope-visible</property>
                </not>
            </and>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>anchorrope</object-name>
        <condition>
            <and>
                <property>fdm/jsbsim/mooring/mooring-connected</property>
                <property>fdm/jsbsim/mooring/rope-visible</property>
            </and>
        </condition>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>anchorrope</object-name>
        <property>fdm/jsbsim/mooring/rope-yaw</property>
        <offset-deg>180</offset-deg>
        <center>
            <x-m>-2.08172</x-m>
            <y-m>-0.00119</y-m>
            <z-m>-1.68437</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>1</z>
        </axis>
    </animation>
    <animation>
        <type>rotate</type>
        <object-name>anchorrope</object-name>
        <property>orientation/pitch-deg</property>
        <factor>-1</factor>
        <center>
            <x-m>-2.08172</x-m>
            <y-m>-0.00119</y-m>
            <z-m>-1.68437</z-m>
        </center>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
    </animation>

</PropertyList>