feat: rename JointAxesMask::X/Y/Z by ::LIN_X/LIN_Y/LIN_Z and JointAxis::X/Y/Z by ::LinX/LinY/LinZ

This commit is contained in:
Sébastien Crozet
2024-05-26 18:12:26 +02:00
committed by Sébastien Crozet
parent 5c44d936f7
commit c785ea4996
7 changed files with 61 additions and 59 deletions

View File

@@ -18,9 +18,9 @@ fn create_coupled_joints(
colliders.insert_with_parent(ColliderBuilder::cuboid(1.0, 1.0, 1.0), body1, bodies);
let joint1 = GenericJointBuilder::new(JointAxesMask::empty())
.limits(JointAxis::X, [-3.0, 3.0])
.limits(JointAxis::Y, [0.0, 3.0])
.coupled_axes(JointAxesMask::Y | JointAxesMask::Z);
.limits(JointAxis::LinX, [-3.0, 3.0])
.limits(JointAxis::LinY, [0.0, 3.0])
.coupled_axes(JointAxesMask::LIN_Y | JointAxesMask::LIN_Z);
if use_articulations {
multibody_joints.insert(ground, body1, joint1, true);
@@ -416,13 +416,13 @@ fn create_spherical_joints_with_limits(
let joint1 = SphericalJointBuilder::new()
.local_anchor2(Point::from(-shift))
.limits(JointAxis::X, [-0.2, 0.2])
.limits(JointAxis::Y, [-0.2, 0.2]);
.limits(JointAxis::LinX, [-0.2, 0.2])
.limits(JointAxis::LinY, [-0.2, 0.2]);
let joint2 = SphericalJointBuilder::new()
.local_anchor2(Point::from(-shift))
.limits(JointAxis::X, [-0.3, 0.3])
.limits(JointAxis::Y, [-0.3, 0.3]);
.limits(JointAxis::LinX, [-0.3, 0.3])
.limits(JointAxis::LinY, [-0.3, 0.3]);
if use_articulations {
multibody_joints.insert(ground, ball1, joint1, true);