summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRicardo Buring <ricardo.buring@gmail.com>2022-09-09 14:05:14 +0200
committerRicardo Buring <ricardo.buring@gmail.com>2022-09-09 14:35:01 +0200
commit7b8444439399356f35cbd53f821673c017740ce7 (patch)
treec179be90fa9da5631e6785b019dcea2e5826ed17 /servers
parent047801693c9f5ad1aeb9b89f46b73828381282ba (diff)
PhysicsServer2DExtension and PhysicsServer3DExtension: bind all methods (really)
Diffstat (limited to 'servers')
-rw-r--r--servers/extensions/physics_server_2d_extension.cpp58
-rw-r--r--servers/extensions/physics_server_2d_extension.h6
-rw-r--r--servers/extensions/physics_server_3d_extension.cpp125
-rw-r--r--servers/extensions/physics_server_3d_extension.h11
4 files changed, 161 insertions, 39 deletions
diff --git a/servers/extensions/physics_server_2d_extension.cpp b/servers/extensions/physics_server_2d_extension.cpp
index c56f31e6f9..36f3be2468 100644
--- a/servers/extensions/physics_server_2d_extension.cpp
+++ b/servers/extensions/physics_server_2d_extension.cpp
@@ -123,6 +123,8 @@ bool PhysicsServer2DExtension::body_test_motion_is_excluding_object(ObjectID p_o
}
void PhysicsServer2DExtension::_bind_methods() {
+ /* SHAPE API */
+
GDVIRTUAL_BIND(_world_boundary_shape_create);
GDVIRTUAL_BIND(_separation_ray_shape_create);
GDVIRTUAL_BIND(_segment_shape_create);
@@ -133,18 +135,32 @@ void PhysicsServer2DExtension::_bind_methods() {
GDVIRTUAL_BIND(_concave_polygon_shape_create);
GDVIRTUAL_BIND(_shape_set_data, "shape", "data");
+ GDVIRTUAL_BIND(_shape_set_custom_solver_bias, "shape", "bias");
GDVIRTUAL_BIND(_shape_get_type, "shape");
GDVIRTUAL_BIND(_shape_get_data, "shape");
+ GDVIRTUAL_BIND(_shape_get_custom_solver_bias, "shape");
+ GDVIRTUAL_BIND(_shape_collide, "shape_A", "xform_A", "motion_A", "shape_B", "xform_B", "motion_B", "results", "result_max", "result_count");
+
+ /* SPACE API */
GDVIRTUAL_BIND(_space_create);
GDVIRTUAL_BIND(_space_set_active, "space", "active");
GDVIRTUAL_BIND(_space_is_active, "space");
+
GDVIRTUAL_BIND(_space_set_param, "space", "param", "value");
GDVIRTUAL_BIND(_space_get_param, "space", "param");
+
GDVIRTUAL_BIND(_space_get_direct_state, "space");
+ GDVIRTUAL_BIND(_space_set_debug_contacts, "space", "max_contacts");
+ GDVIRTUAL_BIND(_space_get_contacts, "space");
+ GDVIRTUAL_BIND(_space_get_contact_count, "space");
+
+ /* AREA API */
+
GDVIRTUAL_BIND(_area_create);
+
GDVIRTUAL_BIND(_area_set_space, "area", "space");
GDVIRTUAL_BIND(_area_get_space, "area");
@@ -160,8 +176,11 @@ void PhysicsServer2DExtension::_bind_methods() {
GDVIRTUAL_BIND(_area_remove_shape, "area", "shape_idx");
GDVIRTUAL_BIND(_area_clear_shapes, "area");
- GDVIRTUAL_BIND(_area_set_collision_layer, "area", "layer");
- GDVIRTUAL_BIND(_area_set_collision_mask, "area", "mask");
+ GDVIRTUAL_BIND(_area_attach_object_instance_id, "area", "id");
+ GDVIRTUAL_BIND(_area_get_object_instance_id, "area");
+
+ GDVIRTUAL_BIND(_area_attach_canvas_instance_id, "area", "id");
+ GDVIRTUAL_BIND(_area_get_canvas_instance_id, "area");
GDVIRTUAL_BIND(_area_set_param, "area", "param", "value");
GDVIRTUAL_BIND(_area_set_transform, "area", "transform");
@@ -169,15 +188,16 @@ void PhysicsServer2DExtension::_bind_methods() {
GDVIRTUAL_BIND(_area_get_param, "area", "param");
GDVIRTUAL_BIND(_area_get_transform, "area");
- GDVIRTUAL_BIND(_area_attach_object_instance_id, "area", "id");
- GDVIRTUAL_BIND(_area_get_object_instance_id, "area");
+ GDVIRTUAL_BIND(_area_set_collision_layer, "area", "layer");
+ GDVIRTUAL_BIND(_area_set_collision_mask, "area", "mask");
- GDVIRTUAL_BIND(_area_attach_canvas_instance_id, "area", "id");
- GDVIRTUAL_BIND(_area_get_canvas_instance_id, "area");
+ GDVIRTUAL_BIND(_area_set_monitorable, "area", "monitorable");
+ GDVIRTUAL_BIND(_area_set_pickable, "area", "pickable");
GDVIRTUAL_BIND(_area_set_monitor_callback, "area", "callback");
GDVIRTUAL_BIND(_area_set_area_monitor_callback, "area", "callback");
- GDVIRTUAL_BIND(_area_set_monitorable, "area", "monitorable");
+
+ /* BODY API */
GDVIRTUAL_BIND(_body_create);
@@ -195,12 +215,12 @@ void PhysicsServer2DExtension::_bind_methods() {
GDVIRTUAL_BIND(_body_get_shape, "body", "shape_idx");
GDVIRTUAL_BIND(_body_get_shape_transform, "body", "shape_idx");
- GDVIRTUAL_BIND(_body_remove_shape, "body", "shape_idx");
- GDVIRTUAL_BIND(_body_clear_shapes, "body");
-
GDVIRTUAL_BIND(_body_set_shape_disabled, "body", "shape_idx", "disabled");
GDVIRTUAL_BIND(_body_set_shape_as_one_way_collision, "body", "shape_idx", "enable", "margin");
+ GDVIRTUAL_BIND(_body_remove_shape, "body", "shape_idx");
+ GDVIRTUAL_BIND(_body_clear_shapes, "body");
+
GDVIRTUAL_BIND(_body_attach_object_instance_id, "body", "id");
GDVIRTUAL_BIND(_body_get_object_instance_id, "body");
@@ -249,25 +269,39 @@ void PhysicsServer2DExtension::_bind_methods() {
GDVIRTUAL_BIND(_body_add_collision_exception, "body", "excepted_body");
GDVIRTUAL_BIND(_body_remove_collision_exception, "body", "excepted_body");
+ GDVIRTUAL_BIND(_body_get_collision_exceptions, "body");
GDVIRTUAL_BIND(_body_set_max_contacts_reported, "body", "amount");
GDVIRTUAL_BIND(_body_get_max_contacts_reported, "body");
+ GDVIRTUAL_BIND(_body_set_contacts_reported_depth_threshold, "body", "threshold");
+ GDVIRTUAL_BIND(_body_get_contacts_reported_depth_threshold, "body");
+
GDVIRTUAL_BIND(_body_set_omit_force_integration, "body", "enable");
GDVIRTUAL_BIND(_body_is_omitting_force_integration, "body");
+ GDVIRTUAL_BIND(_body_set_state_sync_callback, "body", "callback");
GDVIRTUAL_BIND(_body_set_force_integration_callback, "body", "callable", "userdata");
- GDVIRTUAL_BIND(_body_test_motion, "body", "from", "motion", "margin", "collide_separation_ray", "recovery_as_collision", "result");
+ GDVIRTUAL_BIND(_body_collide_shape, "body", "body_shape", "shape", "shape_xform", "motion", "results", "result_max", "result_count");
+
+ GDVIRTUAL_BIND(_body_set_pickable, "body", "pickable");
GDVIRTUAL_BIND(_body_get_direct_state, "body");
+ GDVIRTUAL_BIND(_body_test_motion, "body", "from", "motion", "margin", "collide_separation_ray", "recovery_as_collision", "result");
+
+ /* JOINT API */
+
GDVIRTUAL_BIND(_joint_create);
GDVIRTUAL_BIND(_joint_clear, "joint");
GDVIRTUAL_BIND(_joint_set_param, "joint", "param", "value");
GDVIRTUAL_BIND(_joint_get_param, "joint", "param");
+ GDVIRTUAL_BIND(_joint_disable_collisions_between_bodies, "joint", "disable");
+ GDVIRTUAL_BIND(_joint_is_disabled_collisions_between_bodies, "joint");
+
GDVIRTUAL_BIND(_joint_make_pin, "joint", "anchor", "body_a", "body_b");
GDVIRTUAL_BIND(_joint_make_groove, "joint", "a_groove1", "a_groove2", "b_anchor", "body_a", "body_b");
GDVIRTUAL_BIND(_joint_make_damped_spring, "joint", "anchor_a", "anchor_b", "body_a", "body_b");
@@ -280,6 +314,8 @@ void PhysicsServer2DExtension::_bind_methods() {
GDVIRTUAL_BIND(_joint_get_type, "joint");
+ /* MISC */
+
GDVIRTUAL_BIND(_free_rid, "rid");
GDVIRTUAL_BIND(_set_active, "active");
diff --git a/servers/extensions/physics_server_2d_extension.h b/servers/extensions/physics_server_2d_extension.h
index 4c83664b14..3bd3d642c8 100644
--- a/servers/extensions/physics_server_2d_extension.h
+++ b/servers/extensions/physics_server_2d_extension.h
@@ -204,6 +204,8 @@ protected:
public:
// The warning is valid, but unavoidable. If the function is not overridden it will error anyway.
+ /* SHAPE API */
+
EXBIND0R(RID, world_boundary_shape_create)
EXBIND0R(RID, separation_ray_shape_create)
EXBIND0R(RID, segment_shape_create)
@@ -252,6 +254,7 @@ public:
EXBIND4(area_add_shape, RID, RID, const Transform2D &, bool)
EXBIND3(area_set_shape, RID, int, RID)
EXBIND3(area_set_shape_transform, RID, int, const Transform2D &)
+ EXBIND3(area_set_shape_disabled, RID, int, bool)
EXBIND1RC(int, area_get_shape_count, RID)
EXBIND2RC(RID, area_get_shape, RID, int)
@@ -260,8 +263,6 @@ public:
EXBIND2(area_remove_shape, RID, int)
EXBIND1(area_clear_shapes, RID)
- EXBIND3(area_set_shape_disabled, RID, int, bool)
-
EXBIND2(area_attach_object_instance_id, RID, ObjectID)
EXBIND1RC(ObjectID, area_get_object_instance_id, RID)
@@ -415,7 +416,6 @@ public:
/* JOINT API */
EXBIND0R(RID, joint_create)
-
EXBIND1(joint_clear, RID)
EXBIND3(joint_set_param, RID, JointParam, real_t)
diff --git a/servers/extensions/physics_server_3d_extension.cpp b/servers/extensions/physics_server_3d_extension.cpp
index 6ed5dca968..800284dc60 100644
--- a/servers/extensions/physics_server_3d_extension.cpp
+++ b/servers/extensions/physics_server_3d_extension.cpp
@@ -125,6 +125,8 @@ bool PhysicsServer3DExtension::body_test_motion_is_excluding_object(ObjectID p_o
}
void PhysicsServer3DExtension::_bind_methods() {
+ /* SHAPE API */
+
GDVIRTUAL_BIND(_world_boundary_shape_create);
GDVIRTUAL_BIND(_separation_ray_shape_create);
GDVIRTUAL_BIND(_sphere_shape_create);
@@ -137,18 +139,34 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_custom_shape_create);
GDVIRTUAL_BIND(_shape_set_data, "shape", "data");
+ GDVIRTUAL_BIND(_shape_set_custom_solver_bias, "shape", "bias");
+
+ GDVIRTUAL_BIND(_shape_set_margin, "shape", "margin");
+ GDVIRTUAL_BIND(_shape_get_margin, "shape");
GDVIRTUAL_BIND(_shape_get_type, "shape");
GDVIRTUAL_BIND(_shape_get_data, "shape");
+ GDVIRTUAL_BIND(_shape_get_custom_solver_bias, "shape");
+
+ /* SPACE API */
GDVIRTUAL_BIND(_space_create);
GDVIRTUAL_BIND(_space_set_active, "space", "active");
GDVIRTUAL_BIND(_space_is_active, "space");
+
GDVIRTUAL_BIND(_space_set_param, "space", "param", "value");
GDVIRTUAL_BIND(_space_get_param, "space", "param");
+
GDVIRTUAL_BIND(_space_get_direct_state, "space");
+ GDVIRTUAL_BIND(_space_set_debug_contacts, "space", "max_contacts");
+ GDVIRTUAL_BIND(_space_get_contacts, "space");
+ GDVIRTUAL_BIND(_space_get_contact_count, "space");
+
+ /* AREA API */
+
GDVIRTUAL_BIND(_area_create);
+
GDVIRTUAL_BIND(_area_set_space, "area", "space");
GDVIRTUAL_BIND(_area_get_space, "area");
@@ -164,8 +182,8 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_area_remove_shape, "area", "shape_idx");
GDVIRTUAL_BIND(_area_clear_shapes, "area");
- GDVIRTUAL_BIND(_area_set_collision_layer, "area", "layer");
- GDVIRTUAL_BIND(_area_set_collision_mask, "area", "mask");
+ GDVIRTUAL_BIND(_area_attach_object_instance_id, "area", "id");
+ GDVIRTUAL_BIND(_area_get_object_instance_id, "area");
GDVIRTUAL_BIND(_area_set_param, "area", "param", "value");
GDVIRTUAL_BIND(_area_set_transform, "area", "transform");
@@ -173,14 +191,16 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_area_get_param, "area", "param");
GDVIRTUAL_BIND(_area_get_transform, "area");
- GDVIRTUAL_BIND(_area_attach_object_instance_id, "area", "id");
- GDVIRTUAL_BIND(_area_get_object_instance_id, "area");
+ GDVIRTUAL_BIND(_area_set_collision_layer, "area", "layer");
+ GDVIRTUAL_BIND(_area_set_collision_mask, "area", "mask");
+
+ GDVIRTUAL_BIND(_area_set_monitorable, "area", "monitorable");
+ GDVIRTUAL_BIND(_area_set_ray_pickable, "area", "enable");
GDVIRTUAL_BIND(_area_set_monitor_callback, "area", "callback");
GDVIRTUAL_BIND(_area_set_area_monitor_callback, "area", "callback");
- GDVIRTUAL_BIND(_area_set_monitorable, "area", "monitorable");
- GDVIRTUAL_BIND(_area_set_ray_pickable, "area", "enable");
+ /* BODY API */
GDVIRTUAL_BIND(_body_create);
@@ -190,15 +210,6 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_body_set_mode, "body", "mode");
GDVIRTUAL_BIND(_body_get_mode, "body");
- GDVIRTUAL_BIND(_body_set_collision_layer, "body", "layer");
- GDVIRTUAL_BIND(_body_get_collision_layer, "body");
-
- GDVIRTUAL_BIND(_body_set_collision_mask, "body", "mask");
- GDVIRTUAL_BIND(_body_get_collision_mask, "body");
-
- GDVIRTUAL_BIND(_body_set_collision_priority, "body", "priority");
- GDVIRTUAL_BIND(_body_get_collision_priority, "body");
-
GDVIRTUAL_BIND(_body_add_shape, "body", "shape", "transform", "disabled");
GDVIRTUAL_BIND(_body_set_shape, "body", "shape_idx", "shape");
GDVIRTUAL_BIND(_body_set_shape_transform, "body", "shape_idx", "transform");
@@ -217,6 +228,18 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_body_set_enable_continuous_collision_detection, "body", "enable");
GDVIRTUAL_BIND(_body_is_continuous_collision_detection_enabled, "body");
+ GDVIRTUAL_BIND(_body_set_collision_layer, "body", "layer");
+ GDVIRTUAL_BIND(_body_get_collision_layer, "body");
+
+ GDVIRTUAL_BIND(_body_set_collision_mask, "body", "mask");
+ GDVIRTUAL_BIND(_body_get_collision_mask, "body");
+
+ GDVIRTUAL_BIND(_body_set_collision_priority, "body", "priority");
+ GDVIRTUAL_BIND(_body_get_collision_priority, "body");
+
+ GDVIRTUAL_BIND(_body_set_user_flags, "body", "flags");
+ GDVIRTUAL_BIND(_body_get_user_flags, "body");
+
GDVIRTUAL_BIND(_body_set_param, "body", "param", "value");
GDVIRTUAL_BIND(_body_get_param, "body", "param");
@@ -250,13 +273,18 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_body_add_collision_exception, "body", "excepted_body");
GDVIRTUAL_BIND(_body_remove_collision_exception, "body", "excepted_body");
+ GDVIRTUAL_BIND(_body_get_collision_exceptions, "body");
GDVIRTUAL_BIND(_body_set_max_contacts_reported, "body", "amount");
GDVIRTUAL_BIND(_body_get_max_contacts_reported, "body");
+ GDVIRTUAL_BIND(_body_set_contacts_reported_depth_threshold, "body", "threshold");
+ GDVIRTUAL_BIND(_body_get_contacts_reported_depth_threshold, "body");
+
GDVIRTUAL_BIND(_body_set_omit_force_integration, "body", "enable");
GDVIRTUAL_BIND(_body_is_omitting_force_integration, "body");
+ GDVIRTUAL_BIND(_body_set_state_sync_callback, "body", "callback");
GDVIRTUAL_BIND(_body_set_force_integration_callback, "body", "callable", "userdata");
GDVIRTUAL_BIND(_body_set_ray_pickable, "body", "enable");
@@ -265,12 +293,68 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_body_get_direct_state, "body");
+ /* SOFT BODY API */
+
+ GDVIRTUAL_BIND(_soft_body_create);
+
+ GDVIRTUAL_BIND(_soft_body_update_rendering_server, "body", "rendering_server_handler");
+
+ GDVIRTUAL_BIND(_soft_body_set_space, "body", "space");
+ GDVIRTUAL_BIND(_soft_body_get_space, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_ray_pickable, "body", "enable");
+
+ GDVIRTUAL_BIND(_soft_body_set_collision_layer, "body", "layer");
+ GDVIRTUAL_BIND(_soft_body_get_collision_layer, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_collision_mask, "body", "mask");
+ GDVIRTUAL_BIND(_soft_body_get_collision_mask, "body");
+
+ GDVIRTUAL_BIND(_soft_body_add_collision_exception, "body", "body_b");
+ GDVIRTUAL_BIND(_soft_body_remove_collision_exception, "body", "body_b");
+ GDVIRTUAL_BIND(_soft_body_get_collision_exceptions, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_state, "body", "state", "variant");
+ GDVIRTUAL_BIND(_soft_body_get_state, "body", "state");
+
+ GDVIRTUAL_BIND(_soft_body_set_transform, "body", "transform");
+
+ GDVIRTUAL_BIND(_soft_body_set_simulation_precision, "body", "simulation_precision");
+ GDVIRTUAL_BIND(_soft_body_get_simulation_precision, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_total_mass, "body", "total_mass");
+ GDVIRTUAL_BIND(_soft_body_get_total_mass, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_linear_stiffness, "body", "linear_stiffness");
+ GDVIRTUAL_BIND(_soft_body_get_linear_stiffness, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_pressure_coefficient, "body", "pressure_coefficient");
+ GDVIRTUAL_BIND(_soft_body_get_pressure_coefficient, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_damping_coefficient, "body", "damping_coefficient");
+ GDVIRTUAL_BIND(_soft_body_get_damping_coefficient, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_drag_coefficient, "body", "drag_coefficient");
+ GDVIRTUAL_BIND(_soft_body_get_drag_coefficient, "body");
+
+ GDVIRTUAL_BIND(_soft_body_set_mesh, "body", "mesh");
+
GDVIRTUAL_BIND(_soft_body_get_bounds, "body");
+ GDVIRTUAL_BIND(_soft_body_move_point, "body", "point_index", "global_position");
+ GDVIRTUAL_BIND(_soft_body_get_point_global_position, "body", "point_index");
+
+ GDVIRTUAL_BIND(_soft_body_remove_all_pinned_points, "body");
+ GDVIRTUAL_BIND(_soft_body_pin_point, "body", "point_index", "pin");
+ GDVIRTUAL_BIND(_soft_body_is_point_pinned, "body", "point_index");
+
+ /* JOINT API */
+
GDVIRTUAL_BIND(_joint_create);
GDVIRTUAL_BIND(_joint_clear, "joint");
GDVIRTUAL_BIND(_joint_make_pin, "joint", "body_A", "local_A", "body_B", "local_B");
+
GDVIRTUAL_BIND(_pin_joint_set_param, "joint", "param", "value");
GDVIRTUAL_BIND(_pin_joint_get_param, "joint", "param");
@@ -281,6 +365,7 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_pin_joint_get_local_b, "joint");
GDVIRTUAL_BIND(_joint_make_hinge, "joint", "body_A", "hinge_A", "body_B", "hinge_B");
+ GDVIRTUAL_BIND(_joint_make_hinge_simple, "joint", "body_A", "pivot_A", "axis_A", "body_B", "pivot_B", "axis_B");
GDVIRTUAL_BIND(_hinge_joint_set_param, "joint", "param", "value");
GDVIRTUAL_BIND(_hinge_joint_get_param, "joint", "param");
@@ -298,11 +383,6 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_cone_twist_joint_set_param, "joint", "param", "value");
GDVIRTUAL_BIND(_cone_twist_joint_get_param, "joint", "param");
- GDVIRTUAL_BIND(_joint_get_type, "joint");
-
- GDVIRTUAL_BIND(_joint_set_solver_priority, "joint", "priority");
- GDVIRTUAL_BIND(_joint_get_solver_priority, "joint");
-
GDVIRTUAL_BIND(_joint_make_generic_6dof, "joint", "body_A", "local_ref_A", "body_B", "local_ref_B");
GDVIRTUAL_BIND(_generic_6dof_joint_set_param, "joint", "axis", "param", "value");
@@ -311,6 +391,11 @@ void PhysicsServer3DExtension::_bind_methods() {
GDVIRTUAL_BIND(_generic_6dof_joint_set_flag, "joint", "axis", "flag", "enable");
GDVIRTUAL_BIND(_generic_6dof_joint_get_flag, "joint", "axis", "flag");
+ GDVIRTUAL_BIND(_joint_get_type, "joint");
+
+ GDVIRTUAL_BIND(_joint_set_solver_priority, "joint", "priority");
+ GDVIRTUAL_BIND(_joint_get_solver_priority, "joint");
+
GDVIRTUAL_BIND(_free_rid, "rid");
GDVIRTUAL_BIND(_set_active, "active");
diff --git a/servers/extensions/physics_server_3d_extension.h b/servers/extensions/physics_server_3d_extension.h
index c84582bf31..b6ed346a3d 100644
--- a/servers/extensions/physics_server_3d_extension.h
+++ b/servers/extensions/physics_server_3d_extension.h
@@ -210,6 +210,8 @@ protected:
public:
// The warning is valid, but unavoidable. If the function is not overridden it will error anyway.
+ /* SHAPE API */
+
EXBIND0R(RID, world_boundary_shape_create)
EXBIND0R(RID, separation_ray_shape_create)
EXBIND0R(RID, sphere_shape_create)
@@ -262,6 +264,7 @@ public:
EXBIND1RC(int, area_get_shape_count, RID)
EXBIND2RC(RID, area_get_shape, RID, int)
EXBIND2RC(Transform3D, area_get_shape_transform, RID, int)
+
EXBIND2(area_remove_shape, RID, int)
EXBIND1(area_clear_shapes, RID)
@@ -297,12 +300,11 @@ public:
EXBIND4(body_add_shape, RID, RID, const Transform3D &, bool)
EXBIND3(body_set_shape, RID, int, RID)
EXBIND3(body_set_shape_transform, RID, int, const Transform3D &)
+ EXBIND3(body_set_shape_disabled, RID, int, bool)
EXBIND1RC(int, body_get_shape_count, RID)
- EXBIND2RC(Transform3D, body_get_shape_transform, RID, int)
EXBIND2RC(RID, body_get_shape, RID, int)
-
- EXBIND3(body_set_shape_disabled, RID, int, bool)
+ EXBIND2RC(Transform3D, body_get_shape_transform, RID, int)
EXBIND2(body_remove_shape, RID, int)
EXBIND1(body_clear_shapes, RID)
@@ -333,9 +335,9 @@ public:
EXBIND3(body_set_state, RID, BodyState, const Variant &)
EXBIND2RC(Variant, body_get_state, RID, BodyState)
- EXBIND2(body_apply_torque_impulse, RID, const Vector3 &)
EXBIND2(body_apply_central_impulse, RID, const Vector3 &)
EXBIND3(body_apply_impulse, RID, const Vector3 &, const Vector3 &)
+ EXBIND2(body_apply_torque_impulse, RID, const Vector3 &)
EXBIND2(body_apply_central_force, RID, const Vector3 &)
EXBIND3(body_apply_force, RID, const Vector3 &, const Vector3 &)
@@ -476,7 +478,6 @@ public:
/* JOINT API */
EXBIND0R(RID, joint_create)
-
EXBIND1(joint_clear, RID)
EXBIND5(joint_make_pin, RID, RID, const Vector3 &, RID, const Vector3 &)