Fix jumping
This commit is contained in:
parent
5e0ff4336a
commit
0d4f63afa5
@ -436,8 +436,8 @@ impl ICharacterBody3D for LocalPlayer {
|
|||||||
let input_direction = if self.locked {
|
let input_direction = if self.locked {
|
||||||
let input = Input::singleton();
|
let input = Input::singleton();
|
||||||
|
|
||||||
if self.base().is_on_floor() && input.is_action_just_pressed("jump") {
|
if input.is_action_just_pressed("jump") {
|
||||||
self.try_jump();
|
self.jump();
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector3::RIGHT * input.is_action_pressed("right") as u32 as f32
|
Vector3::RIGHT * input.is_action_pressed("right") as u32 as f32
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user