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

Feature/add extra joint methods #149

Merged
merged 5 commits into from
Jul 6, 2022

Conversation

Chargeuk
Copy link
Contributor

Added a few joint method that exist within Rapier, but are not yet exposed within Rapier.js. Specifically:

  • Setting the joint's anchor points
  • Setting a joint's limits

@Chargeuk Chargeuk marked this pull request as ready for review June 27, 2022 08:36
@jcyuan
Copy link
Contributor

jcyuan commented Jul 1, 2022

PR changes will be reviewed by Seb later, usually end of a month.
that code looks fine though.

Copy link
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!

max: f32,
) {
self.map_mut(handle, |j| {
j.data.set_limits(JointAxis::from(axis).into(), [min, max]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
j.data.set_limits(JointAxis::from(axis).into(), [min, max]);
j.data.set_limits(axis.into(), [min, max]);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sebcrozet - this change has now been made. Thanks

@Chargeuk Chargeuk requested a review from sebcrozet July 6, 2022 07:38
@sebcrozet sebcrozet merged commit ca25e80 into dimforge:master Jul 6, 2022
@sebcrozet
Copy link
Member

Thanks!

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.

3 participants