diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-05-30 18:24:46 +0200 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-05-30 18:29:18 +0200 |
| commit | ab8833f275ea5576ef2c1a3039459e81fcdb6f4d (patch) | |
| tree | 58704d3d5668222931a65a5e3574e14b014f06cd /examples3d/debug_prismatic3.rs | |
| parent | 6ce26f3818492682a8572c895264f1e63f94b9d5 (diff) | |
| download | rapier-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.rs | 2 |
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 |
