<?xml version="1.0" encoding="UTF-8"?>
<system xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="description.xsd">
	<!-- ground -->
	<per-triangle-shape name="VirtualGround">
		<margin>1</margin>
		<prenetration>4</prenetration>
		<tag>ground</tag>
	</per-triangle-shape>
	
	<!-- body -->
	<bone name="NPC L Thigh [LThg]"/>
	<bone name="NPC R Thigh [RThg]"/>
	<bone name="NPC L Calf [LClf]"/>
	<bone name="NPC R Calf [RClf]"/>
	<bone name="NPC L Foot [Lft ]"/>
	<bone name="NPC R Foot [Rft ]"/>
	<bone name="NPC Spine [Spn0]"/>
	<bone name="NPC Spine2 [Spn2]"/>
	<bone name="NPC Spine1 [Spn1]"/>
	<bone name="NPC Pelvis [Pelv]"/>
	<bone name="NPC L Clavicle [LClv]"/>
	<bone name="NPC R Clavicle [RClv]"/>
	<bone name="NPC L Forearm [LLar]"/>
	<bone name="NPC R Forearm [RLar]"/>
	<bone name="NPC L ForearmTwist1 [LLt1]"/>
	<bone name="NPC R ForearmTwist1 [RLt1]"/>
	<bone name="NPC L ForearmTwist2 [LLt2]"/>
	<bone name="NPC R ForearmTwist2 [RLt2]"/>
	<bone name="NPC L UpperArm [LUar]"/>
	<bone name="NPC R UpperArm [RUar]"/>
	<bone name="NPC L UpperarmTwist1 [LUt1]"/>
	<bone name="NPC R UpperarmTwist1 [RUt1]"/>
	<bone name="NPC L UpperarmTwist2 [LUt2]"/>
	<bone name="NPC R UpperarmTwist2 [RUt2]"/>
	<bone name="NPC L Hand [LHnd]"/>
	<bone name="NPC R Hand [RHnd]"/>

	<bone name="H00"/>

	
	
	<!-- Hat -->
	<bone-default>
		<mass>5.0</mass>
		<inertia x="5" y="5" z="5" />
		<centerOfMassTransform>
			<basis x="0" y="0" z="0" w="1" />
			<origin x="0" y="0" z="0" />
		</centerOfMassTransform>
		<linearDamping>0.1</linearDamping>
		<angularDamping>0.1</angularDamping>
		<friction>0.1</friction>
		<!-- <gravity-factor>0.94</gravity-factor> -->
		<restitution>0.5</restitution>
	</bone-default>
	<bone-default>
		<margin-multiplier>5</margin-multiplier>
	</bone-default>
	
	<bone name="H01"/>


	

	<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="1.1" y="1.1" z="1.1" />

		<angularLowerLimit x="-0.16" y="-0.16" z="-0.24" />
		<angularUpperLimit x="1.08" y="1.08" z="1.08" />

		<linearStiffness x="0" y="0" z="0"/>
		<angularStiffness x="0" y="0" z="0"/>
		<linearEquilibrium x="0" y="0" z="0"/>
		<angularEquilibrium x="0" y="0" z="0"/>
	</generic-constraint-default>
	
		<!-- Hat -->
		<generic-constraint bodyA="H01" bodyB="H00"/>

 
		
	<per-triangle-shape name="">                                                                                                                                                        
		<margin>0.2</margin>
		<priority>100</priority>
		<prenetration>1</prenetration>
		<shared>private</shared>
		<tag>body</tag>
		<can-collide-with-tag>cloak</can-collide-with-tag>
		<no-collide-with-tag>body</no-collide-with-tag>
		<no-collide-with-tag>ground</no-collide-with-tag>
		<weight-threshold bone="NPC L Clavicle [LClv]">0.3</weight-threshold>
		<weight-threshold bone="NPC R Clavicle [RClv]">0.3</weight-threshold>
		<weight-threshold bone="NPC L Forearm [LLar]">0.3</weight-threshold>
		<weight-threshold bone="NPC R Forearm [RLar]">0.3</weight-threshold>
		<weight-threshold bone="NPC L ForearmTwist1 [LLt1]">1</weight-threshold>
		<weight-threshold bone="NPC R ForearmTwist1 [RLt1]">1</weight-threshold>
		<weight-threshold bone="NPC L ForearmTwist2 [LLt2]">1</weight-threshold>
		<weight-threshold bone="NPC R ForearmTwist2 [RLt2]">1</weight-threshold>
		<weight-threshold bone="NPC L Hand [LHnd]">1</weight-threshold>
		<weight-threshold bone="NPC R Hand [RHnd]">1</weight-threshold>
		<weight-threshold bone="NPC L Foot [Lft ]">0.3</weight-threshold>
		<weight-threshold bone="NPC R Foot [Rft ]">0.3</weight-threshold>
		<weight-threshold bone="NPC L UpperArm [LUar]">0.3</weight-threshold>
		<weight-threshold bone="NPC R UpperArm [RUar]">0.3</weight-threshold>
		<weight-threshold bone="NPC L UpperarmTwist1 [LUt1]">0.3</weight-threshold>
		<weight-threshold bone="NPC R UpperarmTwist1 [RUt1]">0.3</weight-threshold>
		<weight-threshold bone="NPC L UpperarmTwist2 [LUt2]">0.3</weight-threshold>
		<weight-threshold bone="NPC R UpperarmTwist2 [RUt2]">0.3</weight-threshold>
		<weight-threshold bone="NPC Spine [Spn0]">0.3</weight-threshold>
		<weight-threshold bone="NPC Spine2 [Spn2]">0.3</weight-threshold>
		<weight-threshold bone="NPC Spine1 [Spn1]">0.3</weight-threshold>
		<weight-threshold bone="NPC Pelvis [Pelv]">0.3</weight-threshold>
		<weight-threshold bone="NPC L Thigh [LThg]">0.3</weight-threshold>
		<weight-threshold bone="NPC R Thigh [RThg]">0.3</weight-threshold>
		<weight-threshold bone="NPC L Calf [LClf]">0.3</weight-threshold>
		<weight-threshold bone="NPC R Calf [RClf]">0.3</weight-threshold>
	</per-triangle-shape>
	
	<per-vertex-shape name="">		
		<margin>0.2</margin>
		<priority>1</priority>		
		<shared>private</shared>
		<tag>cloak</tag>
		<can-collide-with-tag>body</can-collide-with-tag>
		<can-collide-with-tag>ground</can-collide-with-tag>
		<no-collide-with-tag>cloakmat</no-collide-with-tag>

		<weight-threshold bone="NPC Pelvis [Pelv]">1</weight-threshold>
		<weight-threshold bone="NPC Spine [Spn0]">1</weight-threshold>
		<weight-threshold bone="NPC Spine1 [Spn1]">1</weight-threshold>
		
	    <weight-threshold bone="S11">0.5</weight-threshold>		
	    <weight-threshold bone="S12">0.3</weight-threshold>	
	    <weight-threshold bone="S13">0.5</weight-threshold>	
	    <weight-threshold bone="S14">0.3</weight-threshold>	
	    <weight-threshold bone="S15">0.5</weight-threshold>	
		
	    <weight-threshold bone="S21">0.5</weight-threshold>		
	    <weight-threshold bone="S22">0.3</weight-threshold>	
	    <weight-threshold bone="S23">0.5</weight-threshold>	
	    <weight-threshold bone="S24">0.3</weight-threshold>	
	    <weight-threshold bone="S25">0.5</weight-threshold>	

		</per-vertex-shape>	
	
	
</system>
		