From c785ea49965aa151e942feb3da0fb4ba03768441 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 26 May 2024 18:12:26 +0200 Subject: feat: rename JointAxesMask::X/Y/Z by ::LIN_X/LIN_Y/LIN_Z and JointAxis::X/Y/Z by ::LinX/LinY/LinZ --- examples3d/joints3.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples3d/joints3.rs') diff --git a/examples3d/joints3.rs b/examples3d/joints3.rs index 73f48ae..24303d1 100644 --- a/examples3d/joints3.rs +++ b/examples3d/joints3.rs @@ -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); -- cgit