aboutsummaryrefslogtreecommitdiff
path: root/examples3d/debug_prismatic3.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-05-30 18:24:46 +0200
committerSébastien Crozet <developer@crozet.re>2022-05-30 18:29:18 +0200
commitab8833f275ea5576ef2c1a3039459e81fcdb6f4d (patch)
tree58704d3d5668222931a65a5e3574e14b014f06cd /examples3d/debug_prismatic3.rs
parent6ce26f3818492682a8572c895264f1e63f94b9d5 (diff)
downloadrapier-ab8833f275ea5576ef2c1a3039459e81fcdb6f4d.tar.gz
rapier-ab8833f275ea5576ef2c1a3039459e81fcdb6f4d.tar.bz2
rapier-ab8833f275ea5576ef2c1a3039459e81fcdb6f4d.zip
Add the option to automatically wake-up rigid-bodies a new joint is attached to
Diffstat (limited to 'examples3d/debug_prismatic3.rs')
-rw-r--r--examples3d/debug_prismatic3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/debug_prismatic3.rs b/examples3d/debug_prismatic3.rs
index 815f4e5..776c50c 100644
--- a/examples3d/debug_prismatic3.rs
+++ b/examples3d/debug_prismatic3.rs
@@ -36,7 +36,7 @@ fn prismatic_repro(
let prismatic = PrismaticJointBuilder::new(Vector::y_axis())
.local_anchor1(point![pos.x, pos.y, pos.z])
.motor_position(0.0, stiffness, damping);
- impulse_joints.insert(box_rb, wheel_rb, prismatic);
+ impulse_joints.insert(box_rb, wheel_rb, prismatic, true);
}
// put a small box under one of the wheels