naelstrof / UnityJigglePhysics

A unity addon for adding stretchy bouncy physics to bones and meshes.
MIT License
281 stars 33 forks source link

[Question] Is there a way to constrain or limit the amount of rotation for a joint? #23

Open DawarAlvi opened 10 months ago

DawarAlvi commented 10 months ago

I would like to know if we can limit the amount a joint can rotate per axis, similar to a Configurable Joint Angular Limit options. image An option on the JiggleRigbuilder that affects only the root or on the Jiggle Settings that affect all the joints in the chain (except for the ignored transforms) would work really well. image image

naelstrof commented 10 months ago

There's no such option unfortunately, however you can get very similar results by doing things like-- if you want a 90 degree limit you could set Blend to 0.5.

Every time I feel like I need an angle limit, I can get what I want by playing with the settings. This gets more difficult depending on how varied the forces are on your characters though.