Jump to content

Belly physic problem


MadFred80

Recommended Posts

Posted

Hello, please help with the abdominal physics settings, I tried to change something on my own, but I'm too dumb to do anything properly.

The problem is that my character's stomach twitches non-stop every time and then starts either falling down, stretching the texture indefinitely, or when I move it starts to stretch in the direction of the character. That's how I wrote: 

    <bone name="Belly">
        <mass>0</mass>
        <inertia x="0" y="0" z="0"/>
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="1"/>
        </centerOfMassTransform>
        <linearDamping>0.1</linearDamping>
        <angularDamping>0.1</angularDamping>
        <gravity-factor>0</gravity-factor>
        <friction>0</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0</restitution>
    </bone>
    
    <bone name="HDT Belly">
        <mass>0.2000</mass> 
        <inertia x="1" y="1" z="1"/> 
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="0"/>
        </centerOfMassTransform>
        <linearDamping>2.5</linearDamping> 
        <angularDamping>2.0</angularDamping>
        <friction>0.8</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0.01</restitution>
    </bone>
  
    <bone name="NPC Belly">
        <mass>1</mass> 
        <inertia x="1.5" y="1.5" z="1.5"/> 
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="1"/>
        </centerOfMassTransform>
        <linearDamping>3.0</linearDamping> 
        <angularDamping>2.5</angularDamping>
        <gravity-factor>0.5</gravity-factor> 
        <friction>0.9</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0.01</restitution> 
    </bone>
    
    <generic-constraint bodyA="HDT Belly" bodyB="Belly">
        <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="-1.0" z="0"/> 
        <linearUpperLimit x="0" y="1.0" z="0"/>
        <angularLowerLimit x="0" y="0" z="0"/>
        <angularUpperLimit x="0" y="0" z="0"/>
<!--    <linearStiffness x="20" y="30" z="20"/>
        <angularStiffness x="100" y="100" z="100"/>
        <linearDamping x="0" y="10" z="10"/>
        <angularDamping x="0" y="0" z="0"/>
        <linearEquilibrium x="0" y="0" z="0"/>
        <angularEquilibrium x="0" y="0" z="0"/>-->
        <linearStiffness x="600" y="800" z="600"/> 
        <angularStiffness x="500" y="500" z="500"/>
        <linearDamping x="2.5" y="3.0" z="2.5"/> 
        <angularDamping x="1.0" y="1.0" z="1.0"/>
        <linearEquilibrium x="0" y="0" z="-2"/>
        <angularEquilibrium x="0" y="0" z="0"/>
        <linearBounce x="0.1" y="0.1" z="0.1"/> 
        <angularBounce x="0.1" y="0.1" z="0.1"/>
    </generic-constraint>
  
    <generic-constraint bodyA="NPC Belly" bodyB="HDT Belly">
        <frameInB>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="0"/>
        </frameInB>
        <useLinearReferenceFrameA>false</useLinearReferenceFrameA>
        <linearLowerLimit x="-0.05" y="-0.8" z="-1.5"/> 
        <linearUpperLimit x="0.05" y="0.8" z="1.5"/>
        <angularLowerLimit x="0" y="-0.02" z="0"/>
        <angularUpperLimit x="0" y="0.02" z="0"/>
<!--    <linearStiffness x="20" y="30" z="20"/>
        <angularStiffness x="100" y="100" z="100"/>
        <linearDamping x="0" y="10" z="10"/>
        <angularDamping x="0" y="0" z="0"/>
        <linearEquilibrium x="0" y="0" z="0"/>
        <angularEquilibrium x="0" y="0" z="0"/>-->
        <linearStiffness x="500" y="700" z="500"/> 
        <angularStiffness x="500" y="500" z="500"/>
        <linearDamping x="2.8" y="3.5" z="2.8"/>
        <angularDamping x="1.0" y="1.0" z="1.0"/>
        <linearEquilibrium x="0" y="0" z="-2"/>
        <angularEquilibrium x="0" y="0" z="0"/>
        <linearBounce x="0.1" y="0.1" z="0.1"/> 
        <angularBounce x="0.1" y="0.1" z="0.1"/>
    </generic-constraint>

It seems to me that I am writing everything wrong and with errors. I wanted my stomach to sway when I was moving because my character has a big belly. 

Posted
29 minutes ago, MadFred80 said:

Hello, please help with the abdominal physics settings,

Apparently , from the problem, missing bones/nodes within the xml. Or, there are duplicates preventing proper function

 

In Skyrim data\SKS\Plugins, you should have a log of HDTSkinnedMeshes , this will tell you what is not working and, just run the appropriate fixes to fix the problem

 

Or, even simpler, put your XML here and we will see if there is anything wrong with it

Posted
20 hours ago, Dorabella said:

Apparently , from the problem, missing bones/nodes within the xml. Or, there are duplicates preventing proper function

 

In Skyrim data\SKS\Plugins, you should have a log of HDTSkinnedMeshes , this will tell you what is not working and, just run the appropriate fixes to fix the problem

 

Or, even simpler, put your XML here and we will see if there is anything wrong with it

 

SMMB.txt

Posted
Spoiler

 <bone name="Belly">
        <mass>0</mass>
        <inertia x="0" y="0" z="0"/>
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="0"/>
        </centerOfMassTransform>
        <linearDamping>0</linearDamping>
        <angularDamping>0</angularDamping>
        <friction>0</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0</restitution>
    </bone>

    <bone name="NPC Belly">
        <mass>0.20000</mass>
        <inertia x="5" y="5" z="5"/>
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="-1"/>
        </centerOfMassTransform>
        <linearDamping>0</linearDamping>
        <angularDamping>0</angularDamping>
        <friction>0</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0</restitution>
    </bone>    

    <generic-constraint bodyA="NPC Belly" bodyB="Belly">
        <frameInB>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="0"/>
        </frameInB>
        <useLinearReferenceFrameA>false</useLinearReferenceFrameA>        
        <linearLowerLimit x="-0.1" y="-3" z="-5"/>
        <linearUpperLimit x="0.1" y="2" z="5"/>
        <angularLowerLimit x="0" y="-0.0" z="0"/>
        <angularUpperLimit x="0" y="0" z="0"/>
        <linearStiffness x="70" y="70" z="70"/>
        <angularStiffness x="3" y="3" z="3"/>
        <linearDamping x="2" y="30" z="0.5"/>
        <angularDamping x="2" y="2" z="2"/>
        <linearEquilibrium x="0" y="2.7" z="2"/>
        <angularEquilibrium x="0" y="0" z="0"/>
        <linearBounce x="0.1" y="0.1" z="0.1"/>
        <angularBounce x="0.1" y="0.1" z="0.1"/>
    </generic-constraint>

 

try with this setting

Posted
55 minutes ago, Dorabella said:
  Reveal hidden contents

 <bone name="Belly">
        <mass>0</mass>
        <inertia x="0" y="0" z="0"/>
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="0"/>
        </centerOfMassTransform>
        <linearDamping>0</linearDamping>
        <angularDamping>0</angularDamping>
        <friction>0</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0</restitution>
    </bone>

    <bone name="NPC Belly">
        <mass>0.20000</mass>
        <inertia x="5" y="5" z="5"/>
        <centerOfMassTransform>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="-1"/>
        </centerOfMassTransform>
        <linearDamping>0</linearDamping>
        <angularDamping>0</angularDamping>
        <friction>0</friction>
        <rollingFriction>0</rollingFriction>
        <restitution>0</restitution>
    </bone>    

    <generic-constraint bodyA="NPC Belly" bodyB="Belly">
        <frameInB>
            <basis x="0" y="0" z="0" w="1"/>
            <origin x="0" y="0" z="0"/>
        </frameInB>
        <useLinearReferenceFrameA>false</useLinearReferenceFrameA>        
        <linearLowerLimit x="-0.1" y="-3" z="-5"/>
        <linearUpperLimit x="0.1" y="2" z="5"/>
        <angularLowerLimit x="0" y="-0.0" z="0"/>
        <angularUpperLimit x="0" y="0" z="0"/>
        <linearStiffness x="70" y="70" z="70"/>
        <angularStiffness x="3" y="3" z="3"/>
        <linearDamping x="2" y="30" z="0.5"/>
        <angularDamping x="2" y="2" z="2"/>
        <linearEquilibrium x="0" y="2.7" z="2"/>
        <angularEquilibrium x="0" y="0" z="0"/>
        <linearBounce x="0.1" y="0.1" z="0.1"/>
        <angularBounce x="0.1" y="0.1" z="0.1"/>
    </generic-constraint>

 

try with this setting

Oh, it helped, the texture of the stomach doesn't stretch anymore, but the stomach still twitches

Posted

At the bottom, you will find 2 files

Acting on 1 at a time, download them and, copy/paste in Skyrim data/SKSE/Plugins. Back up your files . This should solve the problem

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...