diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-03 09:29:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 09:29:46 +0200 |
commit | b9b128cb1d0f2ce83f4ba54d98bc123d09b8b81b (patch) | |
tree | 0e9478f1c6a08e619012a3a2de9aab6dacf7babf /servers/physics_server_2d.h | |
parent | a8fb450b3ce568fa8e3c9c013821f9046b9a0396 (diff) | |
parent | 62e577267fc43b0928e119acbf6578009fecd0ed (diff) |
Merge pull request #50102 from nekomatata/expose-body-test-motion-3d
Expose body_test_motion in 3D physics server
Diffstat (limited to 'servers/physics_server_2d.h')
-rw-r--r-- | servers/physics_server_2d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/physics_server_2d.h b/servers/physics_server_2d.h index 90f50810f9..1059c197cc 100644 --- a/servers/physics_server_2d.h +++ b/servers/physics_server_2d.h @@ -503,7 +503,7 @@ public: Variant collider_metadata; }; - virtual bool body_test_motion(RID p_body, const Transform2D &p_from, const Vector2 &p_motion, bool p_infinite_inertia, real_t p_margin = 0.001, MotionResult *r_result = nullptr, bool p_exclude_raycast_shapes = true) = 0; + virtual bool body_test_motion(RID p_body, const Transform2D &p_from, const Vector2 &p_motion, bool p_infinite_inertia, real_t p_margin = 0.08, MotionResult *r_result = nullptr, bool p_exclude_raycast_shapes = true) = 0; struct SeparationResult { real_t collision_depth; @@ -517,7 +517,7 @@ public: Variant collider_metadata; }; - virtual int body_test_ray_separation(RID p_body, const Transform2D &p_transform, bool p_infinite_inertia, Vector2 &r_recover_motion, SeparationResult *r_results, int p_result_max, real_t p_margin = 0.001) = 0; + virtual int body_test_ray_separation(RID p_body, const Transform2D &p_transform, bool p_infinite_inertia, Vector2 &r_recover_motion, SeparationResult *r_results, int p_result_max, real_t p_margin = 0.08) = 0; /* JOINT API */ |