pafuhana1213 / KawaiiPhysics

KawaiiPhysics : Simple fake Physics for UnrealEngine4 & 5
MIT License
1.92k stars 287 forks source link

Bone trembles while using large gravity #51

Closed WXGopher closed 2 months ago

WXGopher commented 2 years ago

We've found that large gravity parameter (z = -5000 for example) will cause bone trembling/shaking.

We wonder if anyone would have any ideas/inputs on this.

Thanks!

Here is the setup: image

1

P.S. I think this is what was causing the trembling:

Bone.Location += (BaseLocation - Bone.Location) *  (1.0f - FMath::Pow(1.0f - Bone.PhysicsSettings.Stiffness, Exponent));

When the FPS fluctuates, even if we stand still, we still have the simulated bone pulling in/out of bone pose location (which is given by the animation pose).

pafuhana1213 commented 2 months ago

I added a new mechanism for gravity in v1.6, and this problem does not occur again when using it. Therefore, I will close this thread for now.