Debian Codegraph @

servers/physics_3d/physics_server_3d_extension.cpp

raw symbols SCIP
1 /**************************************************************************/
2 /* physics_server_3d_extension.cpp */
3 /**************************************************************************/
4 /* This file is part of: */
5 /* GODOT ENGINE */
6 /* https://godotengine.org */
7 /**************************************************************************/
8 /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
9 /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
10 /* */
11 /* Permission is hereby granted, free of charge, to any person obtaining */
12 /* a copy of this software and associated documentation files (the */
13 /* "Software"), to deal in the Software without restriction, including */
14 /* without limitation the rights to use, copy, modify, merge, publish, */
15 /* distribute, sublicense, and/or sell copies of the Software, and to */
16 /* permit persons to whom the Software is furnished to do so, subject to */
17 /* the following conditions: */
18 /* */
19 /* The above copyright notice and this permission notice shall be */
20 /* included in all copies or substantial portions of the Software. */
21 /* */
22 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
23 /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
24 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
25 /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
26 /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
27 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
28 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
29 /**************************************************************************/
30
31 #include "physics_server_3d_extension.h"
32
33 bool PhysicsDirectSpaceState3DExtension::is_body_excluded_from_query(const RID &p_body) const {
34 return exclude && exclude->has(p_body);
35 }
36
37 thread_local const HashSet<RID> *PhysicsDirectSpaceState3DExtension::exclude = nullptr;
38
39 void PhysicsDirectSpaceState3DExtension::_bind_methods() {
40 ClassDB::bind_method(D_METHOD("is_body_excluded_from_query", "body"), &PhysicsDirectSpaceState3DExtension::is_body_excluded_from_query);
41
42 GDVIRTUAL_BIND(_intersect_ray, "from", "to", "collision_mask", "collide_with_bodies", "collide_with_areas", "hit_from_inside", "hit_back_faces", "pick_ray", "result");
43 GDVIRTUAL_BIND(_intersect_point, "position", "collision_mask", "collide_with_bodies", "collide_with_areas", "results", "max_results");
44 GDVIRTUAL_BIND(_intersect_shape, "shape_rid", "transform", "motion", "margin", "collision_mask", "collide_with_bodies", "collide_with_areas", "result_count", "max_results");
45 GDVIRTUAL_BIND(_cast_motion, "shape_rid", "transform", "motion", "margin", "collision_mask", "collide_with_bodies", "collide_with_areas", "closest_safe", "closest_unsafe", "info");
46 GDVIRTUAL_BIND(_collide_shape, "shape_rid", "transform", "motion", "margin", "collision_mask", "collide_with_bodies", "collide_with_areas", "results", "max_results", "result_count");
47 GDVIRTUAL_BIND(_rest_info, "shape_rid", "transform", "motion", "margin", "collision_mask", "collide_with_bodies", "collide_with_areas", "rest_info");
48 GDVIRTUAL_BIND(_get_closest_point_to_object_volume, "object", "point");
49 }
50
51 PhysicsDirectSpaceState3DExtension::PhysicsDirectSpaceState3DExtension() {
52 }
53
54 void PhysicsDirectBodyState3DExtension::_bind_methods() {
55 GDVIRTUAL_BIND(_get_total_gravity);
56 GDVIRTUAL_BIND(_get_total_linear_damp);
57 GDVIRTUAL_BIND(_get_total_angular_damp);
58
59 GDVIRTUAL_BIND(_get_center_of_mass);
60 GDVIRTUAL_BIND(_get_center_of_mass_local);
61 GDVIRTUAL_BIND(_get_principal_inertia_axes);
62
63 GDVIRTUAL_BIND(_get_inverse_mass);
64 GDVIRTUAL_BIND(_get_inverse_inertia);
65 GDVIRTUAL_BIND(_get_inverse_inertia_tensor);
66
67 GDVIRTUAL_BIND(_set_linear_velocity, "velocity");
68 GDVIRTUAL_BIND(_get_linear_velocity);
69
70 GDVIRTUAL_BIND(_set_angular_velocity, "velocity");
71 GDVIRTUAL_BIND(_get_angular_velocity);
72
73 GDVIRTUAL_BIND(_set_transform, "transform");
74 GDVIRTUAL_BIND(_get_transform);
75
76 GDVIRTUAL_BIND(_get_velocity_at_local_position, "local_position");
77
78 GDVIRTUAL_BIND(_apply_central_impulse, "impulse");
79 GDVIRTUAL_BIND(_apply_impulse, "impulse", "position");
80 GDVIRTUAL_BIND(_apply_torque_impulse, "impulse");
81
82 GDVIRTUAL_BIND(_apply_central_force, "force");
83 GDVIRTUAL_BIND(_apply_force, "force", "position");
84 GDVIRTUAL_BIND(_apply_torque, "torque");
85
86 GDVIRTUAL_BIND(_add_constant_central_force, "force");
87 GDVIRTUAL_BIND(_add_constant_force, "force", "position");
88 GDVIRTUAL_BIND(_add_constant_torque, "torque");
89
90 GDVIRTUAL_BIND(_set_constant_force, "force");
91 GDVIRTUAL_BIND(_get_constant_force);
92
93 GDVIRTUAL_BIND(_set_constant_torque, "torque");
94 GDVIRTUAL_BIND(_get_constant_torque);
95
96 GDVIRTUAL_BIND(_set_sleep_state, "enabled");
97 GDVIRTUAL_BIND(_is_sleeping);
98
99 GDVIRTUAL_BIND(_set_collision_layer, "layer");
100 GDVIRTUAL_BIND(_get_collision_layer);
101
102 GDVIRTUAL_BIND(_set_collision_mask, "mask");
103 GDVIRTUAL_BIND(_get_collision_mask);
104
105 GDVIRTUAL_BIND(_get_contact_count);
106
107 GDVIRTUAL_BIND(_get_contact_local_position, "contact_idx");
108 GDVIRTUAL_BIND(_get_contact_local_normal, "contact_idx");
109 GDVIRTUAL_BIND(_get_contact_impulse, "contact_idx");
110 GDVIRTUAL_BIND(_get_contact_local_shape, "contact_idx");
111 GDVIRTUAL_BIND(_get_contact_local_velocity_at_position, "contact_idx");
112 GDVIRTUAL_BIND(_get_contact_collider, "contact_idx");
113 GDVIRTUAL_BIND(_get_contact_collider_position, "contact_idx");
114 GDVIRTUAL_BIND(_get_contact_collider_id, "contact_idx");
115 GDVIRTUAL_BIND(_get_contact_collider_object, "contact_idx");
116 GDVIRTUAL_BIND(_get_contact_collider_shape, "contact_idx");
117 GDVIRTUAL_BIND(_get_contact_collider_velocity_at_position, "contact_idx");
118 GDVIRTUAL_BIND(_get_step);
119 GDVIRTUAL_BIND(_integrate_forces);
120 GDVIRTUAL_BIND(_get_space_state);
121 }
122
123 PhysicsDirectBodyState3DExtension::PhysicsDirectBodyState3DExtension() {
124 }
125
126 thread_local const HashSet<RID> *PhysicsServer3DExtension::exclude_bodies = nullptr;
127 thread_local const HashSet<ObjectID> *PhysicsServer3DExtension::exclude_objects = nullptr;
128
129 bool PhysicsServer3DExtension::body_test_motion_is_excluding_body(RID p_body) const {
130 return exclude_bodies && exclude_bodies->has(p_body);
131 }
132
133 bool PhysicsServer3DExtension::body_test_motion_is_excluding_object(ObjectID p_object) const {
134 return exclude_objects && exclude_objects->has(p_object);
135 }
136
137 void PhysicsServer3DExtension::_bind_methods() {
138 /* SHAPE API */
139
140 GDVIRTUAL_BIND(_world_boundary_shape_create);
141 GDVIRTUAL_BIND(_separation_ray_shape_create);
142 GDVIRTUAL_BIND(_sphere_shape_create);
143 GDVIRTUAL_BIND(_box_shape_create);
144 GDVIRTUAL_BIND(_capsule_shape_create);
145 GDVIRTUAL_BIND(_cylinder_shape_create);
146 GDVIRTUAL_BIND(_convex_polygon_shape_create);
147 GDVIRTUAL_BIND(_concave_polygon_shape_create);
148 GDVIRTUAL_BIND(_heightmap_shape_create);
149 GDVIRTUAL_BIND(_custom_shape_create);
150
151 GDVIRTUAL_BIND(_shape_set_data, "shape", "data");
152 GDVIRTUAL_BIND(_shape_set_custom_solver_bias, "shape", "bias");
153
154 GDVIRTUAL_BIND(_shape_set_margin, "shape", "margin");
155 GDVIRTUAL_BIND(_shape_get_margin, "shape");
156
157 GDVIRTUAL_BIND(_shape_get_type, "shape");
158 GDVIRTUAL_BIND(_shape_get_data, "shape");
159 GDVIRTUAL_BIND(_shape_get_custom_solver_bias, "shape");
160
161 /* SPACE API */
162
163 GDVIRTUAL_BIND(_space_create);
164 GDVIRTUAL_BIND(_space_set_active, "space", "active");
165 GDVIRTUAL_BIND(_space_is_active, "space");
166
167 GDVIRTUAL_BIND(_space_set_param, "space", "param", "value");
168 GDVIRTUAL_BIND(_space_get_param, "space", "param");
169
170 GDVIRTUAL_BIND(_space_get_direct_state, "space");
171
172 GDVIRTUAL_BIND(_space_set_debug_contacts, "space", "max_contacts");
173 GDVIRTUAL_BIND(_space_get_contacts, "space");
174 GDVIRTUAL_BIND(_space_get_contact_count, "space");
175
176 /* AREA API */
177
178 GDVIRTUAL_BIND(_area_create);
179
180 GDVIRTUAL_BIND(_area_set_space, "area", "space");
181 GDVIRTUAL_BIND(_area_get_space, "area");
182
183 GDVIRTUAL_BIND(_area_add_shape, "area", "shape", "transform", "disabled");
184 GDVIRTUAL_BIND(_area_set_shape, "area", "shape_idx", "shape");
185 GDVIRTUAL_BIND(_area_set_shape_transform, "area", "shape_idx", "transform");
186 GDVIRTUAL_BIND(_area_set_shape_disabled, "area", "shape_idx", "disabled");
187
188 GDVIRTUAL_BIND(_area_get_shape_count, "area");
189 GDVIRTUAL_BIND(_area_get_shape, "area", "shape_idx");
190 GDVIRTUAL_BIND(_area_get_shape_transform, "area", "shape_idx");
191
192 GDVIRTUAL_BIND(_area_remove_shape, "area", "shape_idx");
193 GDVIRTUAL_BIND(_area_clear_shapes, "area");
194
195 GDVIRTUAL_BIND(_area_attach_object_instance_id, "area", "id");
196 GDVIRTUAL_BIND(_area_get_object_instance_id, "area");
197
198 GDVIRTUAL_BIND(_area_set_param, "area", "param", "value");
199 GDVIRTUAL_BIND(_area_set_transform, "area", "transform");
200
201 GDVIRTUAL_BIND(_area_get_param, "area", "param");
202 GDVIRTUAL_BIND(_area_get_transform, "area");
203
204 GDVIRTUAL_BIND(_area_set_collision_layer, "area", "layer");
205 GDVIRTUAL_BIND(_area_get_collision_layer, "area");
206
207 GDVIRTUAL_BIND(_area_set_collision_mask, "area", "mask");
208 GDVIRTUAL_BIND(_area_get_collision_mask, "area");
209
210 GDVIRTUAL_BIND(_area_set_monitorable, "area", "monitorable");
211 GDVIRTUAL_BIND(_area_set_ray_pickable, "area", "enable");
212
213 GDVIRTUAL_BIND(_area_set_monitor_callback, "area", "callback");
214 GDVIRTUAL_BIND(_area_set_area_monitor_callback, "area", "callback");
215
216 /* BODY API */
217
218 ClassDB::bind_method(D_METHOD("body_test_motion_is_excluding_body", "body"), &PhysicsServer3DExtension::body_test_motion_is_excluding_body);
219 ClassDB::bind_method(D_METHOD("body_test_motion_is_excluding_object", "object"), &PhysicsServer3DExtension::body_test_motion_is_excluding_object);
220
221 GDVIRTUAL_BIND(_body_create);
222
223 GDVIRTUAL_BIND(_body_set_space, "body", "space");
224 GDVIRTUAL_BIND(_body_get_space, "body");
225
226 GDVIRTUAL_BIND(_body_set_mode, "body", "mode");
227 GDVIRTUAL_BIND(_body_get_mode, "body");
228
229 GDVIRTUAL_BIND(_body_add_shape, "body", "shape", "transform", "disabled");
230 GDVIRTUAL_BIND(_body_set_shape, "body", "shape_idx", "shape");
231 GDVIRTUAL_BIND(_body_set_shape_transform, "body", "shape_idx", "transform");
232 GDVIRTUAL_BIND(_body_set_shape_disabled, "body", "shape_idx", "disabled");
233
234 GDVIRTUAL_BIND(_body_get_shape_count, "body");
235 GDVIRTUAL_BIND(_body_get_shape, "body", "shape_idx");
236 GDVIRTUAL_BIND(_body_get_shape_transform, "body", "shape_idx");
237
238 GDVIRTUAL_BIND(_body_remove_shape, "body", "shape_idx");
239 GDVIRTUAL_BIND(_body_clear_shapes, "body");
240
241 GDVIRTUAL_BIND(_body_attach_object_instance_id, "body", "id");
242 GDVIRTUAL_BIND(_body_get_object_instance_id, "body");
243
244 GDVIRTUAL_BIND(_body_set_enable_continuous_collision_detection, "body", "enable");
245 GDVIRTUAL_BIND(_body_is_continuous_collision_detection_enabled, "body");
246
247 GDVIRTUAL_BIND(_body_set_collision_layer, "body", "layer");
248 GDVIRTUAL_BIND(_body_get_collision_layer, "body");
249
250 GDVIRTUAL_BIND(_body_set_collision_mask, "body", "mask");
251 GDVIRTUAL_BIND(_body_get_collision_mask, "body");
252
253 GDVIRTUAL_BIND(_body_set_collision_priority, "body", "priority");
254 GDVIRTUAL_BIND(_body_get_collision_priority, "body");
255
256 GDVIRTUAL_BIND(_body_set_user_flags, "body", "flags");
257 GDVIRTUAL_BIND(_body_get_user_flags, "body");
258
259 GDVIRTUAL_BIND(_body_set_param, "body", "param", "value");
260 GDVIRTUAL_BIND(_body_get_param, "body", "param");
261
262 GDVIRTUAL_BIND(_body_reset_mass_properties, "body");
263
264 GDVIRTUAL_BIND(_body_set_state, "body", "state", "value");
265 GDVIRTUAL_BIND(_body_get_state, "body", "state");
266
267 GDVIRTUAL_BIND(_body_apply_central_impulse, "body", "impulse");
268 GDVIRTUAL_BIND(_body_apply_impulse, "body", "impulse", "position");
269 GDVIRTUAL_BIND(_body_apply_torque_impulse, "body", "impulse");
270
271 GDVIRTUAL_BIND(_body_apply_central_force, "body", "force");
272 GDVIRTUAL_BIND(_body_apply_force, "body", "force", "position");
273 GDVIRTUAL_BIND(_body_apply_torque, "body", "torque");
274
275 GDVIRTUAL_BIND(_body_add_constant_central_force, "body", "force");
276 GDVIRTUAL_BIND(_body_add_constant_force, "body", "force", "position");
277 GDVIRTUAL_BIND(_body_add_constant_torque, "body", "torque");
278
279 GDVIRTUAL_BIND(_body_set_constant_force, "body", "force");
280 GDVIRTUAL_BIND(_body_get_constant_force, "body");
281
282 GDVIRTUAL_BIND(_body_set_constant_torque, "body", "torque");
283 GDVIRTUAL_BIND(_body_get_constant_torque, "body");
284
285 GDVIRTUAL_BIND(_body_set_axis_velocity, "body", "axis_velocity");
286
287 GDVIRTUAL_BIND(_body_set_axis_lock, "body", "axis", "lock");
288 GDVIRTUAL_BIND(_body_is_axis_locked, "body", "axis");
289
290 GDVIRTUAL_BIND(_body_add_collision_exception, "body", "excepted_body");
291 GDVIRTUAL_BIND(_body_remove_collision_exception, "body", "excepted_body");
292 GDVIRTUAL_BIND(_body_get_collision_exceptions, "body");
293
294 GDVIRTUAL_BIND(_body_set_max_contacts_reported, "body", "amount");
295 GDVIRTUAL_BIND(_body_get_max_contacts_reported, "body");
296
297 GDVIRTUAL_BIND(_body_set_contacts_reported_depth_threshold, "body", "threshold");
298 GDVIRTUAL_BIND(_body_get_contacts_reported_depth_threshold, "body");
299
300 GDVIRTUAL_BIND(_body_set_omit_force_integration, "body", "enable");
301 GDVIRTUAL_BIND(_body_is_omitting_force_integration, "body");
302
303 GDVIRTUAL_BIND(_body_set_state_sync_callback, "body", "callable");
304 GDVIRTUAL_BIND(_body_set_force_integration_callback, "body", "callable", "userdata");
305
306 GDVIRTUAL_BIND(_body_set_ray_pickable, "body", "enable");
307
308 GDVIRTUAL_BIND(_body_test_motion, "body", "from", "motion", "margin", "max_collisions", "collide_separation_ray", "recovery_as_collision", "result");
309
310 GDVIRTUAL_BIND(_body_get_direct_state, "body");
311
312 /* SOFT BODY API */
313
314 GDVIRTUAL_BIND(_soft_body_create);
315
316 GDVIRTUAL_BIND(_soft_body_update_rendering_server, "body", "rendering_server_handler");
317
318 GDVIRTUAL_BIND(_soft_body_set_space, "body", "space");
319 GDVIRTUAL_BIND(_soft_body_get_space, "body");
320
321 GDVIRTUAL_BIND(_soft_body_set_ray_pickable, "body", "enable");
322
323 GDVIRTUAL_BIND(_soft_body_set_collision_layer, "body", "layer");
324 GDVIRTUAL_BIND(_soft_body_get_collision_layer, "body");
325
326 GDVIRTUAL_BIND(_soft_body_set_collision_mask, "body", "mask");
327 GDVIRTUAL_BIND(_soft_body_get_collision_mask, "body");
328
329 GDVIRTUAL_BIND(_soft_body_add_collision_exception, "body", "body_b");
330 GDVIRTUAL_BIND(_soft_body_remove_collision_exception, "body", "body_b");
331 GDVIRTUAL_BIND(_soft_body_get_collision_exceptions, "body");
332
333 GDVIRTUAL_BIND(_soft_body_set_state, "body", "state", "variant");
334 GDVIRTUAL_BIND(_soft_body_get_state, "body", "state");
335
336 GDVIRTUAL_BIND(_soft_body_set_transform, "body", "transform");
337
338 GDVIRTUAL_BIND(_soft_body_set_simulation_precision, "body", "simulation_precision");
339 GDVIRTUAL_BIND(_soft_body_get_simulation_precision, "body");
340
341 GDVIRTUAL_BIND(_soft_body_set_total_mass, "body", "total_mass");
342 GDVIRTUAL_BIND(_soft_body_get_total_mass, "body");
343
344 GDVIRTUAL_BIND(_soft_body_set_linear_stiffness, "body", "linear_stiffness");
345 GDVIRTUAL_BIND(_soft_body_get_linear_stiffness, "body");
346
347 GDVIRTUAL_BIND(_soft_body_set_shrinking_factor, "body", "shrinking_factor");
348 GDVIRTUAL_BIND(_soft_body_get_shrinking_factor, "body");
349
350 GDVIRTUAL_BIND(_soft_body_set_pressure_coefficient, "body", "pressure_coefficient");
351 GDVIRTUAL_BIND(_soft_body_get_pressure_coefficient, "body");
352
353 GDVIRTUAL_BIND(_soft_body_set_damping_coefficient, "body", "damping_coefficient");
354 GDVIRTUAL_BIND(_soft_body_get_damping_coefficient, "body");
355
356 GDVIRTUAL_BIND(_soft_body_set_drag_coefficient, "body", "drag_coefficient");
357 GDVIRTUAL_BIND(_soft_body_get_drag_coefficient, "body");
358
359 GDVIRTUAL_BIND(_soft_body_set_mesh, "body", "mesh");
360
361 GDVIRTUAL_BIND(_soft_body_get_bounds, "body");
362
363 GDVIRTUAL_BIND(_soft_body_move_point, "body", "point_index", "global_position");
364 GDVIRTUAL_BIND(_soft_body_get_point_global_position, "body", "point_index");
365
366 GDVIRTUAL_BIND(_soft_body_remove_all_pinned_points, "body");
367 GDVIRTUAL_BIND(_soft_body_pin_point, "body", "point_index", "pin");
368 GDVIRTUAL_BIND(_soft_body_is_point_pinned, "body", "point_index");
369
370 GDVIRTUAL_BIND(_soft_body_apply_point_impulse, "body", "point_index", "impulse");
371 GDVIRTUAL_BIND(_soft_body_apply_point_force, "body", "point_index", "force");
372 GDVIRTUAL_BIND(_soft_body_apply_central_impulse, "body", "impulse");
373 GDVIRTUAL_BIND(_soft_body_apply_central_force, "body", "force");
374
375 /* JOINT API */
376
377 GDVIRTUAL_BIND(_joint_create);
378 GDVIRTUAL_BIND(_joint_clear, "joint");
379
380 GDVIRTUAL_BIND(_joint_make_pin, "joint", "body_A", "local_A", "body_B", "local_B");
381
382 GDVIRTUAL_BIND(_pin_joint_set_param, "joint", "param", "value");
383 GDVIRTUAL_BIND(_pin_joint_get_param, "joint", "param");
384
385 GDVIRTUAL_BIND(_pin_joint_set_local_a, "joint", "local_A");
386 GDVIRTUAL_BIND(_pin_joint_get_local_a, "joint");
387
388 GDVIRTUAL_BIND(_pin_joint_set_local_b, "joint", "local_B");
389 GDVIRTUAL_BIND(_pin_joint_get_local_b, "joint");
390
391 GDVIRTUAL_BIND(_joint_make_hinge, "joint", "body_A", "hinge_A", "body_B", "hinge_B");
392 GDVIRTUAL_BIND(_joint_make_hinge_simple, "joint", "body_A", "pivot_A", "axis_A", "body_B", "pivot_B", "axis_B");
393
394 GDVIRTUAL_BIND(_hinge_joint_set_param, "joint", "param", "value");
395 GDVIRTUAL_BIND(_hinge_joint_get_param, "joint", "param");
396
397 GDVIRTUAL_BIND(_hinge_joint_set_flag, "joint", "flag", "enabled");
398 GDVIRTUAL_BIND(_hinge_joint_get_flag, "joint", "flag");
399
400 GDVIRTUAL_BIND(_joint_make_slider, "joint", "body_A", "local_ref_A", "body_B", "local_ref_B");
401
402 GDVIRTUAL_BIND(_slider_joint_set_param, "joint", "param", "value");
403 GDVIRTUAL_BIND(_slider_joint_get_param, "joint", "param");
404
405 GDVIRTUAL_BIND(_joint_make_cone_twist, "joint", "body_A", "local_ref_A", "body_B", "local_ref_B");
406
407 GDVIRTUAL_BIND(_cone_twist_joint_set_param, "joint", "param", "value");
408 GDVIRTUAL_BIND(_cone_twist_joint_get_param, "joint", "param");
409
410 GDVIRTUAL_BIND(_joint_make_generic_6dof, "joint", "body_A", "local_ref_A", "body_B", "local_ref_B");
411
412 GDVIRTUAL_BIND(_generic_6dof_joint_set_param, "joint", "axis", "param", "value");
413 GDVIRTUAL_BIND(_generic_6dof_joint_get_param, "joint", "axis", "param");
414
415 GDVIRTUAL_BIND(_generic_6dof_joint_set_flag, "joint", "axis", "flag", "enable");
416 GDVIRTUAL_BIND(_generic_6dof_joint_get_flag, "joint", "axis", "flag");
417
418 GDVIRTUAL_BIND(_joint_get_type, "joint");
419
420 GDVIRTUAL_BIND(_joint_set_solver_priority, "joint", "priority");
421 GDVIRTUAL_BIND(_joint_get_solver_priority, "joint");
422
423 GDVIRTUAL_BIND(_joint_disable_collisions_between_bodies, "joint", "disable");
424 GDVIRTUAL_BIND(_joint_is_disabled_collisions_between_bodies, "joint");
425
426 GDVIRTUAL_BIND(_free_rid, "rid");
427
428 GDVIRTUAL_BIND(_set_active, "active");
429
430 GDVIRTUAL_BIND(_init);
431 GDVIRTUAL_BIND(_step, "step");
432 GDVIRTUAL_BIND(_sync);
433 GDVIRTUAL_BIND(_flush_queries);
434 GDVIRTUAL_BIND(_end_sync);
435 GDVIRTUAL_BIND(_finish);
436
437 GDVIRTUAL_BIND(_is_flushing_queries);
438 GDVIRTUAL_BIND(_get_process_info, "process_info");
439 }
440
441 PhysicsServer3DExtension::PhysicsServer3DExtension() {
442 }
443
444 PhysicsServer3DExtension::~PhysicsServer3DExtension() {
445 }