aboutsummaryrefslogtreecommitdiff
path: root/examples3d/joints3.rs
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-05-26 18:12:26 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-06-09 12:09:58 +0200
commitc785ea49965aa151e942feb3da0fb4ba03768441 (patch)
tree2bbe82ce435bb9e6a87175ed78fefcb82e722967 /examples3d/joints3.rs
parent5c44d936f7449e7925b124681cfbfd64cb031123 (diff)
downloadrapier-c785ea49965aa151e942feb3da0fb4ba03768441.tar.gz
rapier-c785ea49965aa151e942feb3da0fb4ba03768441.tar.bz2
rapier-c785ea49965aa151e942feb3da0fb4ba03768441.zip
feat: rename JointAxesMask::X/Y/Z by ::LIN_X/LIN_Y/LIN_Z and JointAxis::X/Y/Z by ::LinX/LinY/LinZ
Diffstat (limited to 'examples3d/joints3.rs')
-rw-r--r--examples3d/joints3.rs14
1 files changed, 7 insertions, 7 deletions
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);