From 289abd37101c29063ec114644f304eed13e184e2 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Tue, 4 Apr 2017 16:35:33 +0300 Subject: Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable Fixes #7313 --- scene/2d/physics_body_2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d/physics_body_2d.h') diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h index e51b512302..6ce6f14d36 100644 --- a/scene/2d/physics_body_2d.h +++ b/scene/2d/physics_body_2d.h @@ -314,7 +314,7 @@ public: void set_collision_margin(float p_margin); float get_collision_margin() const; - Vector2 move_and_slide(const Vector2 &p_linear_velocity, const Vector2 &p_floor_direction = Vector2(0, 0), float p_slope_stop_min_velocity = 5, int p_max_bounces = 4); + Vector2 move_and_slide(const Vector2 &p_linear_velocity, const Vector2 &p_floor_direction = Vector2(0, 0), float p_slope_stop_min_velocity = 5, int p_max_bounces = 4, float p_floor_max_angle = Math::deg2rad((float)45)); bool is_move_and_slide_on_floor() const; bool is_move_and_slide_on_wall() const; bool is_move_and_slide_on_ceiling() const; -- cgit v1.2.3