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

No way to check angle of joint #496

Closed
jonathankittel opened this issue Apr 23, 2024 · 3 comments
Closed

No way to check angle of joint #496

jonathankittel opened this issue Apr 23, 2024 · 3 comments
Labels
A-Integration very bevy specific D-Medium P-Low question Further information is requested S-not-started Work has not started

Comments

@jonathankittel
Copy link

I want to check the angle of a revolute joint. Through impulsejoint.data I can get many details, local_anchor, local_axis, local_basis, etc. But not the actual angle of the joint.

@Vrixyz
Copy link
Contributor

Vrixyz commented May 21, 2024

I'm a bit confused, are you using a RevoluteJoint or an ImpulseJoint ?

Do you want to know the current angle of the joint (at the time you're calling the method) ?
If yes, The data will not be enough as this contains only the configuration of the joint, you'll want to consolidate this information (local anchor + axis probably ?) with its entity transform.

@Vrixyz Vrixyz added question Further information is requested D-Medium P-Low S-not-started Work has not started A-Integration very bevy specific labels May 21, 2024
@jonathankittel
Copy link
Author

jonathankittel commented May 22, 2024 via email

@Vrixyz
Copy link
Contributor

Vrixyz commented Jul 5, 2024

With rapier 0.20 there are some helper functions ; #530 attempts to bring an easier API around it

@Vrixyz Vrixyz closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Integration very bevy specific D-Medium P-Low question Further information is requested S-not-started Work has not started
Projects
None yet
Development

No branches or pull requests

2 participants