aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-07-08 14:08:04 +0200
committerGitHub <noreply@github.com>2022-07-08 14:08:04 +0200
commit30f6dc47ec93e497f42d1c7363c75503e15b531c (patch)
tree88af26693348b4dc680c9183e7a9ca5b4941b579 /examples3d
parent949573dd100ab2ae69402300794937f83daabeb1 (diff)
parent72c2da55546e741489816f960b58fb6072f01730 (diff)
downloadrapier-30f6dc47ec93e497f42d1c7363c75503e15b531c.tar.gz
rapier-30f6dc47ec93e497f42d1c7363c75503e15b531c.tar.bz2
rapier-30f6dc47ec93e497f42d1c7363c75503e15b531c.zip
Merge pull request #363 from dimforge/rename-restrict-rotations
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);