aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-07-08 11:48:31 +0200
committerSébastien Crozet <developer@crozet.re>2022-07-08 11:48:31 +0200
commitefaf16aaea745a9b489a38f39bbe2db5fb85dcd1 (patch)
treed63ffc46534b0c640d87641788b9ba7ea9c94b09 /examples3d
parent949573dd100ab2ae69402300794937f83daabeb1 (diff)
downloadrapier-efaf16aaea745a9b489a38f39bbe2db5fb85dcd1.tar.gz
rapier-efaf16aaea745a9b489a38f39bbe2db5fb85dcd1.tar.bz2
rapier-efaf16aaea745a9b489a38f39bbe2db5fb85dcd1.zip
Rename restrict_translation/rotation to set_allowed_translation/rotation
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/locked_rotations3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/locked_rotations3.rs b/examples3d/locked_rotations3.rs
index c8d2a5d..67a3070 100644
--- a/examples3d/locked_rotations3.rs
+++ b/examples3d/locked_rotations3.rs
@@ -30,7 +30,7 @@ pub fn init_world(testbed: &mut Testbed) {
let rigid_body = RigidBodyBuilder::dynamic()
.translation(vector![0.0, 3.0, 0.0])
.lock_translations()
- .restrict_rotations(true, false, false);
+ .allowed_rotations(true, false, false);
let handle = bodies.insert(rigid_body);
let collider = ColliderBuilder::cuboid(0.2, 0.6, 2.0);
colliders.insert_with_parent(collider, handle, &mut bodies);