diff options
author | Mikael Hermansson <mikael@hermansson.io> | 2024-07-23 13:11:34 +0200 |
---|---|---|
committer | Mikael Hermansson <mikael@hermansson.io> | 2024-07-23 13:30:44 +0200 |
commit | a559a1c6d8d6f328d42fbe6c7926238ea1be53be (patch) | |
tree | 0fe6635226c34178d49eed4fbe4ac979cb8726fa /servers/physics_server_2d.cpp | |
parent | 4e5ed0bbfb56f0a71eb61c868f965476652c23df (diff) | |
download | redot-engine-a559a1c6d8d6f328d42fbe6c7926238ea1be53be.tar.gz |
Bind `PhysicsServer*D::body_set_state_sync_callback`
Diffstat (limited to 'servers/physics_server_2d.cpp')
-rw-r--r-- | servers/physics_server_2d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/physics_server_2d.cpp b/servers/physics_server_2d.cpp index aea0c52a63..da25621ba5 100644 --- a/servers/physics_server_2d.cpp +++ b/servers/physics_server_2d.cpp @@ -754,6 +754,8 @@ void PhysicsServer2D::_bind_methods() { ClassDB::bind_method(D_METHOD("body_set_omit_force_integration", "body", "enable"), &PhysicsServer2D::body_set_omit_force_integration); ClassDB::bind_method(D_METHOD("body_is_omitting_force_integration", "body"), &PhysicsServer2D::body_is_omitting_force_integration); + ClassDB::bind_method(D_METHOD("body_set_state_sync_callback", "body", "callable"), &PhysicsServer2D::body_set_state_sync_callback); + ClassDB::bind_method(D_METHOD("body_set_force_integration_callback", "body", "callable", "userdata"), &PhysicsServer2D::body_set_force_integration_callback, DEFVAL(Variant())); ClassDB::bind_method(D_METHOD("body_test_motion", "body", "parameters", "result"), &PhysicsServer2D::_body_test_motion, DEFVAL(Variant())); |