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

Adding ±90 Degree Rotation Limits to JointData.spherical #290

Open
okamototomoyuki opened this issue Aug 13, 2024 · 1 comment
Open

Adding ±90 Degree Rotation Limits to JointData.spherical #290

okamototomoyuki opened this issue Aug 13, 2024 · 1 comment

Comments

@okamototomoyuki
Copy link

okamototomoyuki commented Aug 13, 2024

I have created ragdoll joints using JointData.spherical, but I am facing an issue where the joints rotate infinitely in the twist direction.
According to the API documentation, it seems that rotation limits can only be applied to JointData.prismatic.
Is there any way to restrict the rotation range for JointData.spherical as well, not just for JointData.prismatic?

@okamototomoyuki
Copy link
Author

The Rust version has a method like the one below:
https://docs.rs/rapier3d/0.22.0/rapier3d/dynamics/struct.SphericalJoint.html#method.set_limits
It seems that it would be good if we could configure the same in JavaScript, but is this not available on the JavaScript side?

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

No branches or pull requests

1 participant