Skip to content

Commit

Permalink
Change wall-walking to use the Godot 4.x version of move_and_collide
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolmnixon committed Jun 11, 2024
1 parent 6e1122a commit 0af02e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/godot-xr-tools/functions/movement_wall_walk.gd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const DEFAULT_MASK := 0b0000_0000_0000_0000_0000_0000_0000_1000
func physics_pre_movement(_delta: float, player_body: XRToolsPlayerBody):
# Test for collision with wall under feet
var wall_collision := player_body.move_and_collide(
player_body.up_player * -stick_distance, true, true, true)
player_body.up_player * -stick_distance, true)
if !wall_collision:
return

Expand Down

0 comments on commit 0af02e3

Please sign in to comment.