diff options
author | rafallus <rafaelmtzg@gmail.com> | 2021-03-30 00:22:23 -0600 |
---|---|---|
committer | rafallus <rafaelmtzg@gmail.com> | 2021-04-22 23:20:58 -0500 |
commit | cfa06f0f76c7ab5f77d5f3bb876132e3aa2cac5e (patch) | |
tree | e5ef2585bcb30f22773b16e92359ea3fcad7f465 /modules/bullet/rigid_body_bullet.h | |
parent | 6cfbf3633883f2bd1088f050b8a5d9e0db622e90 (diff) |
Unexpose _direct_state_changed in PhysicsBody
Removed _direct_state_changed bindings
Affects 2D and 3D nodes
Callbacks now use Callable
Tests were changed accordingly
Diffstat (limited to 'modules/bullet/rigid_body_bullet.h')
-rw-r--r-- | modules/bullet/rigid_body_bullet.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/bullet/rigid_body_bullet.h b/modules/bullet/rigid_body_bullet.h index a4be7f9e07..843ff4a7af 100644 --- a/modules/bullet/rigid_body_bullet.h +++ b/modules/bullet/rigid_body_bullet.h @@ -154,8 +154,7 @@ public: }; struct ForceIntegrationCallback { - ObjectID id; - StringName method; + Callable callable; Variant udata; }; @@ -240,7 +239,7 @@ public: virtual void set_space(SpaceBullet *p_space); virtual void dispatch_callbacks(); - void set_force_integration_callback(ObjectID p_id, const StringName &p_method, const Variant &p_udata = Variant()); + void set_force_integration_callback(const Callable &p_callable, const Variant &p_udata = Variant()); void scratch_space_override_modificator(); virtual void on_collision_filters_change(); |