diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-09-30 11:28:57 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-10-04 10:49:10 -0700 |
commit | 3ae5687d48c0a933a684c863beadf769312ba1ac (patch) | |
tree | 93cf244190994bbfec4872106765779c56b37e4b /servers/physics_2d/space_2d_sw.h | |
parent | 073db835692f0bef9e09a98ccd322f1c3c54acd4 (diff) |
Script interface improvements for test body motion
-Physics servers test body motion use a class to hold parameters instead
of multiple arguments to make it more readable and flexible since there
are many options
-Improved documentation for test body motion and kinematic collision
-Removed read-only properties for body motion results (not handled in
scripts, so they should be get_ methods only instead)
Diffstat (limited to 'servers/physics_2d/space_2d_sw.h')
-rw-r--r-- | servers/physics_2d/space_2d_sw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/space_2d_sw.h b/servers/physics_2d/space_2d_sw.h index a1a8a77ee4..746b5c6c9a 100644 --- a/servers/physics_2d/space_2d_sw.h +++ b/servers/physics_2d/space_2d_sw.h @@ -187,7 +187,7 @@ public: int get_collision_pairs() const { return collision_pairs; } - bool test_body_motion(Body2DSW *p_body, const Transform2D &p_from, const Vector2 &p_motion, real_t p_margin, PhysicsServer2D::MotionResult *r_result, bool p_collide_separation_ray = false, const Set<RID> &p_exclude = Set<RID>()); + bool test_body_motion(Body2DSW *p_body, const PhysicsServer2D::MotionParameters &p_parameters, PhysicsServer2D::MotionResult *r_result); void set_debug_contacts(int p_amount) { contact_debug.resize(p_amount); } _FORCE_INLINE_ bool is_debugging_contacts() const { return !contact_debug.is_empty(); } |