<?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 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 Butt"/>
	<bone name="NPC R Butt"/>
	
	<bone name="R Breast01"/>
	<bone name="L Breast01"/>
	<bone name="R Breast02"/>
	<bone name="L Breast02"/>
	<bone name="R Breast03"/>
	<bone name="L Breast03"/>
	
	<bone name="MCTome 0"/>
	
	<bone-default>
    <mass>2</mass>
    <inertia x="15" y="15" z="15"/>
    <centerOfMassTransform>
      <basis x="0" y="0" z="0" w="1"/>
      <origin x="0" y="0" z="0"/>
    </centerOfMassTransform>
    <linearDamping>0.9</linearDamping>
    <angularDamping>0.9</angularDamping>
		<friction>0.1</friction>
		<gravity-factor>0.95</gravity-factor>
		<restitution>0.5</restitution>
  </bone-default>
  
	<bone-default>
		<margin-multiplier>1</margin-multiplier>
	</bone-default>
	
	<bone name="MCTome 1"/>
	
	<bone-default>
		<mass>0.15</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 name="MCTome_L 1"/>
	<bone name="MCTome_L 2"/>
	<bone name="MCTome_L 3"/>
	<bone name="MCTome_R 1"/>
	<bone name="MCTome_R 2"/>
	<bone name="MCTome_R 3"/>

	
	<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.9" y="-0.9" z="-0.3"/>
		<angularUpperLimit x="0.0" y="0.9" z="0.3"/>
		<linearStiffness x="0" y="0" z="0"/>
		<angularStiffness x="0" y="0" z="0"/>
		<linearDamping x="50" y="50" z="50"/>
		<angularDamping x="50" y="50" z="50"/>
		<linearEquilibrium x="0" y="0" z="0"/>
		<angularEquilibrium x="0" y="0" z="0"/>
	</generic-constraint-default>
		
	<constraint-group>
		<generic-constraint bodyA="MCTome 1" bodyB="MCTome 0"/>
	</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" y="-0" z="-0"/>
		<angularUpperLimit x="0" y="0" z="0"/>
		<linearStiffness x="0" y="0" z="0"/>
		<angularStiffness x="0" y="0" z="0"/>
		<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="MCTome_L 0" bodyB="MCTome 1"/>
		
		<generic-constraint bodyA="MCTome_R 0" bodyB="MCTome 1"/>
	</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.2" y="-0.2" z="-0.0" />
		<angularUpperLimit x="0.2" y="0.2" z="0.0" />
		<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>
	
	<constraint-group>
		<generic-constraint bodyA="MCTome_L 1" bodyB="MCTome_L 0"/>
		<generic-constraint bodyA="MCTome_L 2" bodyB="MCTome_L 1"/>
		<generic-constraint bodyA="MCTome_L 3" bodyB="MCTome_L 2"/>
	</constraint-group>
	
	<constraint-group>
		<generic-constraint bodyA="MCTome_R 1" bodyB="MCTome_R 0"/>
		<generic-constraint bodyA="MCTome_R 2" bodyB="MCTome_R 1"/>
		<generic-constraint bodyA="MCTome_R 3" bodyB="MCTome_R 2"/>
	</constraint-group>

	<per-triangle-shape name="VirtualBody">
		<margin>0.2</margin>
		<prenetration>1</prenetration>
		<shared>private</shared>
		<tag>body</tag>
		<can-collide-with-tag>tome</can-collide-with-tag>
		<weight-threshold bone="NPC R Clavicle [RClv]">1</weight-threshold>
		<weight-threshold bone="NPC L Clavicle [LClv]">1</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 Butt">0.3</weight-threshold>
		<weight-threshold bone="NPC R Butt">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>
	</per-triangle-shape>	
	
	<per-vertex-shape name="col_tome">
		<margin>0.3</margin>
		<!-- <prenetration>0</prenetration> -->
		<shared>private</shared>
		<tag>tome</tag>
		<can-collide-with-tag>body</can-collide-with-tag>
		<no-collide-with-tag>tome</no-collide-with-tag>

		<weight-threshold bone="NPC R Clavicle [RClv]">1</weight-threshold>
		<weight-threshold bone="NPC R UpperarmTwist1 [RUt1]">1</weight-threshold>
		<weight-threshold bone="NPC Spine2 [Spn2]">1</weight-threshold>
		
	    <weight-threshold bone="MCTome 1">0.3</weight-threshold>
	    <weight-threshold bone="MCTome_L 1">0.3</weight-threshold>
		<weight-threshold bone="MCTome_L 2">0.3</weight-threshold>
		<weight-threshold bone="MCTome_L 3">0.3</weight-threshold>
		<weight-threshold bone="MCTome_R 1">0.3</weight-threshold>
		<weight-threshold bone="MCTome_R 2">0.3</weight-threshold>
		<weight-threshold bone="MCTome_R 3">0.3</weight-threshold>
	
	</per-vertex-shape>	
	
	<per-vertex-shape name="11_tome_belt">
		<margin>0.1</margin>
		<!-- <prenetration>0</prenetration> -->
		<shared>private</shared>
		<tag>tome</tag>
		<can-collide-with-tag>body</can-collide-with-tag>
		<no-collide-with-tag>tome</no-collide-with-tag>

		<weight-threshold bone="NPC R Clavicle [RClv]">1</weight-threshold>
		<weight-threshold bone="NPC L Clavicle [LClv]">1</weight-threshold>
		<weight-threshold bone="NPC Spine2 [Spn2]">1</weight-threshold>
		<weight-threshold bone="R Breast01">1</weight-threshold>
		<weight-threshold bone="L Breast01">1</weight-threshold>
		<weight-threshold bone="R Breast02">1</weight-threshold>
		<weight-threshold bone="L Breast02">1</weight-threshold>
		<weight-threshold bone="R Breast03">1</weight-threshold>
		<weight-threshold bone="L Breast03">1</weight-threshold>
		
	    <weight-threshold bone="MCTome 1">0.3</weight-threshold>
	
	</per-vertex-shape>	
	

	
</system>