summaryrefslogtreecommitdiffstats
path: root/scene/2d/physics_body_2d.h
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2017-04-04 16:35:33 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2017-04-04 18:32:27 +0300
commit289abd37101c29063ec114644f304eed13e184e2 (patch)
treea3c0f64e9c0157a3618c79d526908c204b3d9bd8 /scene/2d/physics_body_2d.h
parent46bc14e66fe90430f1d74cdab6cca6acb5b2a3f6 (diff)
downloadredot-engine-289abd37101c29063ec114644f304eed13e184e2.tar.gz
Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable
Fixes #7313
Diffstat (limited to 'scene/2d/physics_body_2d.h')
-rw-r--r--scene/2d/physics_body_2d.h2
1 files changed, 1 insertions, 1 deletions
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;