From fd9e573ba649170a1a45d69341bece51cb3288e7 Mon Sep 17 00:00:00 2001 From: fabriceci Date: Mon, 30 Aug 2021 20:49:09 +0200 Subject: Port 2D improvement to move and slide 3D Co-authored-by: Camille Mohr-Daurat --- scene/2d/physics_body_2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d') diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h index e9930b13a0..5d0d98a2df 100644 --- a/scene/2d/physics_body_2d.h +++ b/scene/2d/physics_body_2d.h @@ -334,7 +334,7 @@ private: int max_slides = 4; int platform_layer; real_t floor_max_angle = Math::deg2rad((real_t)45.0); - float floor_snap_length = 0; + real_t floor_snap_length = 0; real_t free_mode_min_slide_angle = Math::deg2rad((real_t)15.0); Vector2 up_direction = Vector2(0.0, -1.0); uint32_t moving_platform_floor_layers = UINT32_MAX; -- cgit v1.2.3