Skip to content

Commit 64f11aa

Browse files
committed
Adjust control values in the joint motor examples
1 parent 7f31343 commit 64f11aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/avian3d/examples/joint_motors_3d.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ fn control_motors(
236236

237237
// Position-controlled prismatic joint motor
238238
if keyboard.just_pressed(KeyCode::KeyW) {
239-
prismatic_motors.motor.target_position += 25.0;
239+
prismatic_motors.motor.target_position += 0.5;
240240
}
241241
if keyboard.just_pressed(KeyCode::KeyS) {
242-
prismatic_motors.motor.target_position -= 25.0;
242+
prismatic_motors.motor.target_position -= 0.5;
243243
}
244244

245245
// Toggle motors on/off

0 commit comments

Comments
 (0)