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

Joint entities rotations #511

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

exoexo-dev
Copy link
Contributor

Objective

  • Allow to set the local rotation of the connected entities in RevoluteJoint (in 3D only) and in SphericalJoint

Solution

  • The rotation of the entities is controlled by the joints, which forces you to nest the connected entities inside another transform in order to change their rotation relative to the joints axes
  • This PR adds local_rotation1 and local_rotation2 (analogous to local_anchors) that are being added to the rotations synced from the entities transforms
  • These fields allow to set additional rotations of the entities relative to the joints axes

}

#[cfg(feature = "3d")]
impl std::ops::MulAssign for Rotation {
Copy link
Contributor Author

@exoexo-dev exoexo-dev Sep 8, 2024

Choose a reason for hiding this comment

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

this impl is not needed for this PR, but it probably doesn't hurt to have it

@Jondolf Jondolf added C-Enhancement New feature or request A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants