testbed: add gravity control + character controller speed control (#822)

This commit is contained in:
Thierry Berger
2025-07-11 15:31:58 +02:00
committed by GitHub
parent ad41b3d071
commit 9c9ba4570e
7 changed files with 87 additions and 51 deletions

View File

@@ -187,7 +187,7 @@ pub fn init_world(testbed: &mut Testbed) {
/*
* Callback to update the character based on user inputs.
*/
let mut control_mode = CharacterControlMode::Kinematic;
let mut control_mode = CharacterControlMode::Kinematic(0.1);
let mut controller = KinematicCharacterController {
max_slope_climb_angle: impossible_slope_angle - 0.02,
min_slope_slide_angle: impossible_slope_angle - 0.02,