Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ellipse swing limit for IK sub-system. #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Silverlan
Copy link

Implements a IK swing limit which allows you to specify separate x and y angles.

The implementation is a combination of the IKSwingLimit and the EllipseSwingLimit from the physics sub-system.

I don't quite understand the math behind the calculation of the error value, so I'm not sure if this part is quite correct:
https://github.com/Silverlan/bepuphysics1/blob/b276b8a5bb3d66519ed5a2757bcb782c5482d3d6/BEPUik/IKEllipseSwingLimit.cs#L143
I have not noticed any issues in my tests, however.

@RossNordby
Copy link
Member

The ellipse swing limit has some iffy behavior in some corner cases which is part of the reason I didn't bring it forward to bepuphysics2, but if it keeps working well across your use cases for a while longer I'll pull this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants