diff options
| author | Sébastien Crozet <developer@crozet.re> | 2021-04-13 14:06:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-13 14:06:04 +0200 |
| commit | aaf80bfa872c6f29b248cab8eb5658ab0d73cb4a (patch) | |
| tree | cb4ea7f7867c33afc5a04603a18a34452026b2df /examples3d/joints3.rs | |
| parent | 7ae8184167ad6852341757608dadfc47b1f4179c (diff) | |
| parent | a4fe46b5c48050e9fdd2b9af362d36af6bd9b7d4 (diff) | |
| download | rapier-aaf80bfa872c6f29b248cab8eb5658ab0d73cb4a.tar.gz rapier-aaf80bfa872c6f29b248cab8eb5658ab0d73cb4a.tar.bz2 rapier-aaf80bfa872c6f29b248cab8eb5658ab0d73cb4a.zip | |
Merge pull request #174 from dimforge/prismatic_motor
Fix torque generation for the prismatic joint motor
Diffstat (limited to 'examples3d/joints3.rs')
| -rw-r--r-- | examples3d/joints3.rs | 4 |
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; |
