<?xml version="1.0" encoding="UTF-8"?>

<system xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="description.xsd">

	<bone name="NPC Head [Head]"/>
	
	<bone name="MCHat_A 0"/>
	<bone name="MCHat_B 0"/>
	<bone name="MCHat_C 0"/>
	<bone name="MCHat_D 0"/>
	<bone name="MCHat_E 0"/>
	
	<bone name="MCHat_Ribbon 0"/>
	
	<bone name="MCHat_Top 0"/>
	
	
	<bone-default>
	<mass>0.8</mass>
	<inertia x="3" y="3" z="3"/>
	<centerOfMassTransform>
	<basis x="0" y="0" z="0" w="1"/>
	<origin x="0" y="0" z="-1"/>
	</centerOfMassTransform>
	<linearDamping>0</linearDamping>
	<angularDamping>0.01</angularDamping>
	<friction>0</friction>
	<gravity-factor>0.20</gravity-factor>
	<rollingFriction>0</rollingFriction>
	<restitution>0</restitution>
	</bone-default>

	<bone name="MCHat_A 1"/>
	<bone name="MCHat_B 1"/>
	<bone name="MCHat_C 1"/>
	<bone name="MCHat_D 1"/>
	<bone name="MCHat_E 1"/>
	
	<bone name="MCHat_A 2"/>
	<bone name="MCHat_B 2"/>
	<bone name="MCHat_C 2"/>
	<bone name="MCHat_D 2"/>
	<bone name="MCHat_E 2"/>
	
	<bone name="MCHat_A 3"/>
	<bone name="MCHat_B 3"/>
	<bone name="MCHat_C 3"/>
	<bone name="MCHat_D 3"/>
	<bone name="MCHat_E 3"/>

		<bone-default>
	<mass>0.15</mass>
	<inertia x="15" y="15" z="15"/>
	<centerOfMassTransform>
	<basis x="0" y="0" z="0" w="1"/>
	<origin x="0" y="0" z="-1"/>
	</centerOfMassTransform>
	<linearDamping>0</linearDamping>
	<angularDamping>0.01</angularDamping>
	<friction>0</friction>
	<gravity-factor>0.20</gravity-factor>
	<rollingFriction>0</rollingFriction>
	<restitution>0</restitution>
	</bone-default>
	
	<bone name="MCHat_Top 1"/>
	<bone name="MCHat_Top 2"/>
	<bone name="MCHat_Top 3"/>
	<bone name="MCHat_Top 4"/>
	<bone name="MCHat_Top 5"/>
	<bone name="MCHat_Top 6"/>
	
	<bone-default>
		<mass>0.2</mass>
		<inertia x="20" y="20" z="20" />
		<centerOfMassTransform>
			<basis x="0" y="0" z="0" w="1" />
			<origin x="0" y="0" z="0" />
		</centerOfMassTransform>
		<linearDamping>0.8</linearDamping>
		<angularDamping>0.8</angularDamping>
		<friction>0.1</friction>
		<gravity-factor>0.99</gravity-factor>
		<restitution>0.5</restitution>
	</bone-default>

	<bone-default>
		<margin-multiplier>0.2</margin-multiplier>
	</bone-default>
	
	<bone name="MCHat_Ribbon 1"/>
	<bone name="MCHat_Ribbon 2"/>
	<bone name="MCHat_Ribbon 3"/>
	<bone name="MCHat_Ribbon 4"/>

	<generic-constraint-default>
	<frameInA>
	<basis x="0" y="0" z="0" w="1"/>
	<origin x="0" y="0" z="0"/>
	</frameInA>
	<useLinearReferenceFrameA>false</useLinearReferenceFrameA>
	<linearLowerLimit x="0" y="0" z="0"/>
	<linearUpperLimit x="0" y="0" z="0"/>
	<angularLowerLimit x="-0.0" y="-0.3" z="-0.01"/>
	<angularUpperLimit x="0.2" y="0.3" z="0.01"/>
	<linearStiffness x="0" y="0" z="0"/>
	<angularStiffness x="40" y="40" z="40"/>
	<linearDamping x="0" y="0" z="0"/>
	<angularDamping x="0" y="0" z="0"/>
	<linearEquilibrium x="0" y="0" z="0"/>
	<angularEquilibrium x="0" y="0" z="0"/>
	</generic-constraint-default>

	<constraint-group>
		<generic-constraint bodyA="MCHat_A 1" bodyB="MCHat_A 0"/>
		<generic-constraint bodyA="MCHat_A 2" bodyB="MCHat_A 1"/>
		<generic-constraint bodyA="MCHat_A 3" bodyB="MCHat_A 2"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_B 1" bodyB="MCHat_B 0"/>
		<generic-constraint bodyA="MCHat_B 2" bodyB="MCHat_B 1"/>
		<generic-constraint bodyA="MCHat_B 3" bodyB="MCHat_B 2"/>
	</constraint-group>

	<constraint-group>
		<generic-constraint bodyA="MCHat_C 1" bodyB="MCHat_C 0"/>
		<generic-constraint bodyA="MCHat_C 2" bodyB="MCHat_C 1"/>
		<generic-constraint bodyA="MCHat_C 3" bodyB="MCHat_C 2"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_D 1" bodyB="MCHat_D 0"/>
		<generic-constraint bodyA="MCHat_D 2" bodyB="MCHat_D 1"/>
		<generic-constraint bodyA="MCHat_D 3" bodyB="MCHat_D 2"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_E 1" bodyB="MCHat_E 0"/>
		<generic-constraint bodyA="MCHat_E 2" bodyB="MCHat_E 1"/>
		<generic-constraint bodyA="MCHat_E 3" bodyB="MCHat_E 2"/>
	</constraint-group>
	
	<generic-constraint-default>
	<frameInA>
	<basis x="0" y="0" z="0" w="1"/>
	<origin x="0" y="0" z="0"/>
	</frameInA>
	<useLinearReferenceFrameA>false</useLinearReferenceFrameA>
	<linearLowerLimit x="0" y="0" z="0"/>
	<linearUpperLimit x="0" y="0" z="0"/>
	<angularLowerLimit x="-0.0" y="-0.1" z="-0.1"/>
	<angularUpperLimit x="0.2" y="0.1" z="0.1"/>
	<linearStiffness x="0" y="0" z="0"/>
	<angularStiffness x="40" y="40" z="40"/>
	<linearDamping x="0" y="0" z="0"/>
	<angularDamping x="0" y="0" z="0"/>
	<linearEquilibrium x="0" y="0" z="0"/>
	<angularEquilibrium x="0" y="0" z="0"/>
	</generic-constraint-default>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_Top 1" bodyB="MCHat_Top 0"/>
		<generic-constraint bodyA="MCHat_Top 2" bodyB="MCHat_Top 1"/>
		<generic-constraint bodyA="MCHat_Top 3" bodyB="MCHat_Top 2"/>
		<generic-constraint bodyA="MCHat_Top 4" bodyB="MCHat_Top 3"/>
		<generic-constraint bodyA="MCHat_Top 5" bodyB="MCHat_Top 4"/>
		<generic-constraint bodyA="MCHat_Top 6" bodyB="MCHat_Top 5"/>
	</constraint-group>
	
	<generic-constraint-default>
		<frameInLerp>
			<translationLerp>0</translationLerp>
			<rotationLerp>0</rotationLerp>
		</frameInLerp>
		<linearLowerLimit x="-1" y="-1" z="-1"/>
		<linearUpperLimit x="1" y="1" z="1"/>
		<angularLowerLimit x="-2" y="-2" z="-2"/>
		<angularUpperLimit x="2" y="2" z="2"/>
		<linearStiffness x="0" y="0" z="0"/>
		<angularStiffness x="0" y="0" z="0"/>
    </generic-constraint-default>
  
	<constraint-group>
		<generic-constraint bodyA="MCHat_A 1" bodyB="MCHat_B 1"/>
		<generic-constraint bodyA="MCHat_A 2" bodyB="MCHat_B 2"/>
		<generic-constraint bodyA="MCHat_A 3" bodyB="MCHat_B 3"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_B 1" bodyB="MCHat_C 1"/>
		<generic-constraint bodyA="MCHat_B 2" bodyB="MCHat_C 2"/>
		<generic-constraint bodyA="MCHat_B 3" bodyB="MCHat_C 3"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_C 1" bodyB="MCHat_D 1"/>
		<generic-constraint bodyA="MCHat_C 2" bodyB="MCHat_D 2"/>
		<generic-constraint bodyA="MCHat_C 3" bodyB="MCHat_D 3"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCHat_D 1" bodyB="MCHat_E 1"/>
		<generic-constraint bodyA="MCHat_D 2" bodyB="MCHat_E 2"/>
		<generic-constraint bodyA="MCHat_D 3" bodyB="MCHat_E 3"/>
	</constraint-group>
	

	<generic-constraint-default>
		<frameInB>
			<basis x="0" y="0" z="0" w="1" />
			<origin x="0" y="0" z="0" />
		</frameInB>
		<useLinearReferenceFrameA>false</useLinearReferenceFrameA>
		<linearLowerLimit x="0" y="0" z="0" />
		<linearUpperLimit x="0" y="0" z="0" />
		<angularLowerLimit x="-0.3" y="-0.5" z="-0.1" />
		<angularUpperLimit x="0.3" y="0.5" z="0.1" />
		<linearStiffness x="0" y="0" z="0" />
		<angularStiffness x="0" y="0" z="0" />
		<linearDamping x="5" y="5" z="5" />
		<angularDamping x="5" y="5" z="5" />
		<linearEquilibrium x="0" y="0" z="0" />
		<angularEquilibrium x="0" y="0" z="0" />
	</generic-constraint-default>
	
		<generic-constraint bodyA="MCHat_Ribbon 1" bodyB="MCHat_Ribbon 0"/>
		<generic-constraint bodyA="MCHat_Ribbon 2" bodyB="MCHat_Ribbon 1"/>
		<generic-constraint bodyA="MCHat_Ribbon 3" bodyB="MCHat_Ribbon 2"/>
		<generic-constraint bodyA="MCHat_Ribbon 4" bodyB="MCHat_Ribbon 3"/>
		
</system>