bevy_xpbd
bevy_xpbd copied to clipboard
Joint entities rotations
trafficstars
Objective
- Allow to set the local rotation of the connected entities in
RevoluteJoint(in 3D only) and inSphericalJoint
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_rotation1andlocal_rotation2(analogous tolocal_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