aboutsummaryrefslogtreecommitdiff
path: root/examples3d/joints3.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-04-13 11:44:34 +0200
committerCrozet Sébastien <developer@crozet.re>2021-04-13 11:44:34 +0200
commitd70c6f82e3ba2cd9d86564a9554843681eb88bf0 (patch)
treebe3e178d71df26044d4f35ebdb000c94c300c7ed /examples3d/joints3.rs
parent7ae8184167ad6852341757608dadfc47b1f4179c (diff)
downloadrapier-d70c6f82e3ba2cd9d86564a9554843681eb88bf0.tar.gz
rapier-d70c6f82e3ba2cd9d86564a9554843681eb88bf0.tar.bz2
rapier-d70c6f82e3ba2cd9d86564a9554843681eb88bf0.zip
Fix torque generation for the prismatic joint motor
Diffstat (limited to 'examples3d/joints3.rs')
-rw-r--r--examples3d/joints3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3d/joints3.rs b/examples3d/joints3.rs
index 1246bc4..6ba9461 100644
--- a/examples3d/joints3.rs
+++ b/examples3d/joints3.rs
@@ -107,12 +107,12 @@ fn create_actuated_prismatic_joints(
// the limits with large forces.
prism.motor_max_impulse = 1.0;
} else if i > 1 {
- prism.configure_motor_position(2.0, 0.2, 1.0);
+ prism.configure_motor_position(2.0, 0.01, 1.0);
} else {
prism.configure_motor_velocity(1.0, 1.0);
// We set a max impulse so that the motor doesn't fight
// the limits with large forces.
- prism.motor_max_impulse = 1.0;
+ prism.motor_max_impulse = 0.7;
prism.limits_enabled = true;
prism.limits[0] = -2.0;
prism.limits[1] = 5.0;