File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
squash-the-creeps/rust/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub struct Player {
29
29
}
30
30
#[ godot_api]
31
31
impl ICharacterBody3D for Player {
32
- fn physics_process ( & mut self , _delta : f64 ) {
32
+ fn physics_process ( & mut self , delta : f64 ) {
33
33
let mut direction = Vector3 :: ZERO ;
34
34
35
35
let input = Input :: singleton ( ) ;
@@ -76,7 +76,7 @@ impl ICharacterBody3D for Player {
76
76
// This is necessary for the is_on_floor() function to work as a body can always detect
77
77
// the floor, walls, etc. when a collision happens the same frame.
78
78
if !self . base ( ) . is_on_floor ( ) {
79
- self . target_velocity . y -= self . fall_acceleration * _delta as f32 ;
79
+ self . target_velocity . y -= self . fall_acceleration * delta as f32 ;
80
80
}
81
81
// moving the Character
82
82
let velocity = self . target_velocity ;
You can’t perform that action at this time.
0 commit comments