diff --git a/Cargo.lock b/Cargo.lock index bb51e95..c330c43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3665,7 +3665,7 @@ dependencies = [ [[package]] name = "happy_feet" version = "0.1.0" -source = "git+https://github.com/rustunit/happy_feet.git?rev=e4e57c50ba5b5e0be5166e9e4eb629dc1d616a0d#e4e57c50ba5b5e0be5166e9e4eb629dc1d616a0d" +source = "git+https://github.com/PROMETHIA-27/happy_feet.git?rev=5a87760d8a7970c74e07f30bc31ceaafad9a69b6#5a87760d8a7970c74e07f30bc31ceaafad9a69b6" dependencies = [ "avian3d", "bevy", diff --git a/Cargo.toml b/Cargo.toml index 037581c..14b1d17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ bevy_common_assets = { version = "0.13.0", features = ["ron"] } bevy_debug_log = "0.6.0" bevy_sprite3d = "5.0.0" bevy_trenchbroom = { version = "0.8.1", features = ["avian"] } -happy_feet = { git = "https://github.com/rustunit/happy_feet.git", rev = "e4e57c50ba5b5e0be5166e9e4eb629dc1d616a0d" } +happy_feet = { git = "https://github.com/PROMETHIA-27/happy_feet.git", rev = "5a87760d8a7970c74e07f30bc31ceaafad9a69b6" } lightyear = { git = "https://github.com/cBournhonesque/lightyear.git", rev = "03cbf419a2c0595261b64420bc0332fc3fe1cc3f", default-features = false, features = [ "interpolation", "netcode", diff --git a/crates/shared/src/control/controller_common.rs b/crates/shared/src/control/controller_common.rs index 9eedf75..0e9ea18 100644 --- a/crates/shared/src/control/controller_common.rs +++ b/crates/shared/src/control/controller_common.rs @@ -215,6 +215,7 @@ const RUNNING_MOVEMENT_CONFIG: MovementConfig = MovementConfig { max_distance: 0.2, snap_to_surface: true, up_direction: Dir3::Y, + max_iterations: 2, }, gravity: CharacterGravity(Some(vec3(0.0, -60.0, 0.0))), friction: GroundFriction(10.0), @@ -241,6 +242,7 @@ const FLYING_MOVEMENT_CONFIG: MovementConfig = MovementConfig { max_distance: -1.0, snap_to_surface: false, up_direction: Dir3::Y, + max_iterations: 2, }, gravity: CharacterGravity(Some(Vec3::ZERO)), friction: GroundFriction(0.0),