:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/PhysicsServer2DExtension.xml. .. _class_PhysicsServer2DExtension: PhysicsServer2DExtension ======================== **Inherits:** :ref:`PhysicsServer2D` **<** :ref:`Object` Provides virtual methods that can be overridden to create custom :ref:`PhysicsServer2D` implementations. .. rst-class:: classref-introduction-group Description ----------- This class extends :ref:`PhysicsServer2D` by providing additional virtual methods that can be overridden. When these methods are overridden, they will be called instead of the internal methods of the physics server. Intended for use with GDExtension to create custom implementations of :ref:`PhysicsServer2D`. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_add_shape`\ (\ area\: :ref:`RID`, shape\: :ref:`RID`, transform\: :ref:`Transform2D`, disabled\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_attach_canvas_instance_id`\ (\ area\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_attach_object_instance_id`\ (\ area\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_clear_shapes`\ (\ area\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_area_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_area_get_canvas_instance_id`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_area_get_collision_layer`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_area_get_collision_mask`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_area_get_object_instance_id`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_area_get_param`\ (\ area\: :ref:`RID`, param\: :ref:`AreaParameter`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_area_get_shape`\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_area_get_shape_count`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Transform2D` | :ref:`_area_get_shape_transform`\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_area_get_space`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Transform2D` | :ref:`_area_get_transform`\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_remove_shape`\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_area_monitor_callback`\ (\ area\: :ref:`RID`, callback\: :ref:`Callable`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_collision_layer`\ (\ area\: :ref:`RID`, layer\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_collision_mask`\ (\ area\: :ref:`RID`, mask\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_monitor_callback`\ (\ area\: :ref:`RID`, callback\: :ref:`Callable`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_monitorable`\ (\ area\: :ref:`RID`, monitorable\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_param`\ (\ area\: :ref:`RID`, param\: :ref:`AreaParameter`, value\: :ref:`Variant`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_pickable`\ (\ area\: :ref:`RID`, pickable\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_shape`\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`, shape\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_shape_disabled`\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`, disabled\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_shape_transform`\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`, transform\: :ref:`Transform2D`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_space`\ (\ area\: :ref:`RID`, space\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_area_set_transform`\ (\ area\: :ref:`RID`, transform\: :ref:`Transform2D`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_add_collision_exception`\ (\ body\: :ref:`RID`, excepted_body\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_add_constant_central_force`\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_add_constant_force`\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`, position\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_add_constant_torque`\ (\ body\: :ref:`RID`, torque\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_add_shape`\ (\ body\: :ref:`RID`, shape\: :ref:`RID`, transform\: :ref:`Transform2D`, disabled\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_apply_central_force`\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_apply_central_impulse`\ (\ body\: :ref:`RID`, impulse\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_apply_force`\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`, position\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_apply_impulse`\ (\ body\: :ref:`RID`, impulse\: :ref:`Vector2`, position\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_apply_torque`\ (\ body\: :ref:`RID`, torque\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_apply_torque_impulse`\ (\ body\: :ref:`RID`, impulse\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_attach_canvas_instance_id`\ (\ body\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_attach_object_instance_id`\ (\ body\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_clear_shapes`\ (\ body\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_body_collide_shape`\ (\ body\: :ref:`RID`, body_shape\: :ref:`int`, shape\: :ref:`RID`, shape_xform\: :ref:`Transform2D`, motion\: :ref:`Vector2`, results\: ``void*``, result_max\: :ref:`int`, result_count\: ``int32_t*``\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_body_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_body_get_canvas_instance_id`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array`\[:ref:`RID`\] | :ref:`_body_get_collision_exceptions`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_body_get_collision_layer`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_body_get_collision_mask`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_body_get_collision_priority`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`_body_get_constant_force`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_body_get_constant_torque`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_body_get_contacts_reported_depth_threshold`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`CCDMode` | :ref:`_body_get_continuous_collision_detection_mode`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PhysicsDirectBodyState2D` | :ref:`_body_get_direct_state`\ (\ body\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_body_get_max_contacts_reported`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`BodyMode` | :ref:`_body_get_mode`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_body_get_object_instance_id`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_body_get_param`\ (\ body\: :ref:`RID`, param\: :ref:`BodyParameter`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_body_get_shape`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_body_get_shape_count`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Transform2D` | :ref:`_body_get_shape_transform`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_body_get_space`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_body_get_state`\ (\ body\: :ref:`RID`, state\: :ref:`BodyState`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_body_is_omitting_force_integration`\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_remove_collision_exception`\ (\ body\: :ref:`RID`, excepted_body\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_remove_shape`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_reset_mass_properties`\ (\ body\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_axis_velocity`\ (\ body\: :ref:`RID`, axis_velocity\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_collision_layer`\ (\ body\: :ref:`RID`, layer\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_collision_mask`\ (\ body\: :ref:`RID`, mask\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_collision_priority`\ (\ body\: :ref:`RID`, priority\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_constant_force`\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_constant_torque`\ (\ body\: :ref:`RID`, torque\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_contacts_reported_depth_threshold`\ (\ body\: :ref:`RID`, threshold\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_continuous_collision_detection_mode`\ (\ body\: :ref:`RID`, mode\: :ref:`CCDMode`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_force_integration_callback`\ (\ body\: :ref:`RID`, callable\: :ref:`Callable`, userdata\: :ref:`Variant`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_max_contacts_reported`\ (\ body\: :ref:`RID`, amount\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_mode`\ (\ body\: :ref:`RID`, mode\: :ref:`BodyMode`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_omit_force_integration`\ (\ body\: :ref:`RID`, enable\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_param`\ (\ body\: :ref:`RID`, param\: :ref:`BodyParameter`, value\: :ref:`Variant`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_pickable`\ (\ body\: :ref:`RID`, pickable\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_shape`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, shape\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_shape_as_one_way_collision`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, enable\: :ref:`bool`, margin\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_shape_disabled`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, disabled\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_shape_transform`\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, transform\: :ref:`Transform2D`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_space`\ (\ body\: :ref:`RID`, space\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_state`\ (\ body\: :ref:`RID`, state\: :ref:`BodyState`, value\: :ref:`Variant`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_body_set_state_sync_callback`\ (\ body\: :ref:`RID`, callable\: :ref:`Callable`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_body_test_motion`\ (\ body\: :ref:`RID`, from\: :ref:`Transform2D`, motion\: :ref:`Vector2`, margin\: :ref:`float`, collide_separation_ray\: :ref:`bool`, recovery_as_collision\: :ref:`bool`, result\: ``PhysicsServer2DExtensionMotionResult*``\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_capsule_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_circle_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_concave_polygon_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_convex_polygon_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_damped_spring_joint_get_param`\ (\ joint\: :ref:`RID`, param\: :ref:`DampedSpringParam`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_damped_spring_joint_set_param`\ (\ joint\: :ref:`RID`, param\: :ref:`DampedSpringParam`, value\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_end_sync`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_finish`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_flush_queries`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_free_rid`\ (\ rid\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_get_process_info`\ (\ process_info\: :ref:`ProcessInfo`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_init`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_is_flushing_queries`\ (\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_joint_clear`\ (\ joint\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_joint_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_joint_disable_collisions_between_bodies`\ (\ joint\: :ref:`RID`, disable\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_joint_get_param`\ (\ joint\: :ref:`RID`, param\: :ref:`JointParam`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`JointType` | :ref:`_joint_get_type`\ (\ joint\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_joint_is_disabled_collisions_between_bodies`\ (\ joint\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_joint_make_damped_spring`\ (\ joint\: :ref:`RID`, anchor_a\: :ref:`Vector2`, anchor_b\: :ref:`Vector2`, body_a\: :ref:`RID`, body_b\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_joint_make_groove`\ (\ joint\: :ref:`RID`, a_groove1\: :ref:`Vector2`, a_groove2\: :ref:`Vector2`, b_anchor\: :ref:`Vector2`, body_a\: :ref:`RID`, body_b\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_joint_make_pin`\ (\ joint\: :ref:`RID`, anchor\: :ref:`Vector2`, body_a\: :ref:`RID`, body_b\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_joint_set_param`\ (\ joint\: :ref:`RID`, param\: :ref:`JointParam`, value\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_pin_joint_get_flag`\ (\ joint\: :ref:`RID`, flag\: :ref:`PinJointFlag`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_pin_joint_get_param`\ (\ joint\: :ref:`RID`, param\: :ref:`PinJointParam`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_pin_joint_set_flag`\ (\ joint\: :ref:`RID`, flag\: :ref:`PinJointFlag`, enabled\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_pin_joint_set_param`\ (\ joint\: :ref:`RID`, param\: :ref:`PinJointParam`, value\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_rectangle_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_segment_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_separation_ray_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_set_active`\ (\ active\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_shape_collide`\ (\ shape_A\: :ref:`RID`, xform_A\: :ref:`Transform2D`, motion_A\: :ref:`Vector2`, shape_B\: :ref:`RID`, xform_B\: :ref:`Transform2D`, motion_B\: :ref:`Vector2`, results\: ``void*``, result_max\: :ref:`int`, result_count\: ``int32_t*``\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_shape_get_custom_solver_bias`\ (\ shape\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_shape_get_data`\ (\ shape\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`ShapeType` | :ref:`_shape_get_type`\ (\ shape\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_shape_set_custom_solver_bias`\ (\ shape\: :ref:`RID`, bias\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_shape_set_data`\ (\ shape\: :ref:`RID`, data\: :ref:`Variant`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_space_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_space_get_contact_count`\ (\ space\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedVector2Array` | :ref:`_space_get_contacts`\ (\ space\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PhysicsDirectSpaceState2D` | :ref:`_space_get_direct_state`\ (\ space\: :ref:`RID`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`_space_get_param`\ (\ space\: :ref:`RID`, param\: :ref:`SpaceParameter`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_space_is_active`\ (\ space\: :ref:`RID`\ ) |virtual| |required| |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_space_set_active`\ (\ space\: :ref:`RID`, active\: :ref:`bool`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_space_set_debug_contacts`\ (\ space\: :ref:`RID`, max_contacts\: :ref:`int`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_space_set_param`\ (\ space\: :ref:`RID`, param\: :ref:`SpaceParameter`, value\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_step`\ (\ step\: :ref:`float`\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_sync`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`_world_boundary_shape_create`\ (\ ) |virtual| |required| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`body_test_motion_is_excluding_body`\ (\ body\: :ref:`RID`\ ) |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`body_test_motion_is_excluding_object`\ (\ object\: :ref:`int`\ ) |const| | +-------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_PhysicsServer2DExtension_private_method__area_add_shape: .. rst-class:: classref-method |void| **_area_add_shape**\ (\ area\: :ref:`RID`, shape\: :ref:`RID`, transform\: :ref:`Transform2D`, disabled\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_add_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_attach_canvas_instance_id: .. rst-class:: classref-method |void| **_area_attach_canvas_instance_id**\ (\ area\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_attach_canvas_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_attach_object_instance_id: .. rst-class:: classref-method |void| **_area_attach_object_instance_id**\ (\ area\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_attach_object_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_clear_shapes: .. rst-class:: classref-method |void| **_area_clear_shapes**\ (\ area\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_clear_shapes()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_create: .. rst-class:: classref-method :ref:`RID` **_area_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_canvas_instance_id: .. rst-class:: classref-method :ref:`int` **_area_get_canvas_instance_id**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_canvas_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_collision_layer: .. rst-class:: classref-method :ref:`int` **_area_get_collision_layer**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_collision_layer()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_collision_mask: .. rst-class:: classref-method :ref:`int` **_area_get_collision_mask**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_collision_mask()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_object_instance_id: .. rst-class:: classref-method :ref:`int` **_area_get_object_instance_id**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_object_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_param: .. rst-class:: classref-method :ref:`Variant` **_area_get_param**\ (\ area\: :ref:`RID`, param\: :ref:`AreaParameter`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_shape: .. rst-class:: classref-method :ref:`RID` **_area_get_shape**\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_shape_count: .. rst-class:: classref-method :ref:`int` **_area_get_shape_count**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_shape_count()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_shape_transform: .. rst-class:: classref-method :ref:`Transform2D` **_area_get_shape_transform**\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_shape_transform()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_space: .. rst-class:: classref-method :ref:`RID` **_area_get_space**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_space()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_get_transform: .. rst-class:: classref-method :ref:`Transform2D` **_area_get_transform**\ (\ area\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_get_transform()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_remove_shape: .. rst-class:: classref-method |void| **_area_remove_shape**\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_remove_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_area_monitor_callback: .. rst-class:: classref-method |void| **_area_set_area_monitor_callback**\ (\ area\: :ref:`RID`, callback\: :ref:`Callable`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_area_monitor_callback()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_collision_layer: .. rst-class:: classref-method |void| **_area_set_collision_layer**\ (\ area\: :ref:`RID`, layer\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_collision_layer()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_collision_mask: .. rst-class:: classref-method |void| **_area_set_collision_mask**\ (\ area\: :ref:`RID`, mask\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_collision_mask()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_monitor_callback: .. rst-class:: classref-method |void| **_area_set_monitor_callback**\ (\ area\: :ref:`RID`, callback\: :ref:`Callable`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_monitor_callback()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_monitorable: .. rst-class:: classref-method |void| **_area_set_monitorable**\ (\ area\: :ref:`RID`, monitorable\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_monitorable()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_param: .. rst-class:: classref-method |void| **_area_set_param**\ (\ area\: :ref:`RID`, param\: :ref:`AreaParameter`, value\: :ref:`Variant`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_pickable: .. rst-class:: classref-method |void| **_area_set_pickable**\ (\ area\: :ref:`RID`, pickable\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` If set to ``true``, allows the area with the given :ref:`RID` to detect mouse inputs when the mouse cursor is hovering on it. Overridable version of :ref:`PhysicsServer2D`'s internal ``area_set_pickable`` method. Corresponds to :ref:`CollisionObject2D.input_pickable`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_shape: .. rst-class:: classref-method |void| **_area_set_shape**\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`, shape\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_shape_disabled: .. rst-class:: classref-method |void| **_area_set_shape_disabled**\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`, disabled\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_shape_disabled()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_shape_transform: .. rst-class:: classref-method |void| **_area_set_shape_transform**\ (\ area\: :ref:`RID`, shape_idx\: :ref:`int`, transform\: :ref:`Transform2D`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_shape_transform()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_space: .. rst-class:: classref-method |void| **_area_set_space**\ (\ area\: :ref:`RID`, space\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_space()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__area_set_transform: .. rst-class:: classref-method |void| **_area_set_transform**\ (\ area\: :ref:`RID`, transform\: :ref:`Transform2D`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.area_set_transform()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_add_collision_exception: .. rst-class:: classref-method |void| **_body_add_collision_exception**\ (\ body\: :ref:`RID`, excepted_body\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_add_collision_exception()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_add_constant_central_force: .. rst-class:: classref-method |void| **_body_add_constant_central_force**\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_add_constant_central_force()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_add_constant_force: .. rst-class:: classref-method |void| **_body_add_constant_force**\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`, position\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_add_constant_force()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_add_constant_torque: .. rst-class:: classref-method |void| **_body_add_constant_torque**\ (\ body\: :ref:`RID`, torque\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_add_constant_torque()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_add_shape: .. rst-class:: classref-method |void| **_body_add_shape**\ (\ body\: :ref:`RID`, shape\: :ref:`RID`, transform\: :ref:`Transform2D`, disabled\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_add_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_apply_central_force: .. rst-class:: classref-method |void| **_body_apply_central_force**\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_apply_central_force()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_apply_central_impulse: .. rst-class:: classref-method |void| **_body_apply_central_impulse**\ (\ body\: :ref:`RID`, impulse\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_apply_central_impulse()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_apply_force: .. rst-class:: classref-method |void| **_body_apply_force**\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`, position\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_apply_force()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_apply_impulse: .. rst-class:: classref-method |void| **_body_apply_impulse**\ (\ body\: :ref:`RID`, impulse\: :ref:`Vector2`, position\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_apply_impulse()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_apply_torque: .. rst-class:: classref-method |void| **_body_apply_torque**\ (\ body\: :ref:`RID`, torque\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_apply_torque()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_apply_torque_impulse: .. rst-class:: classref-method |void| **_body_apply_torque_impulse**\ (\ body\: :ref:`RID`, impulse\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_apply_torque_impulse()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_attach_canvas_instance_id: .. rst-class:: classref-method |void| **_body_attach_canvas_instance_id**\ (\ body\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_attach_canvas_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_attach_object_instance_id: .. rst-class:: classref-method |void| **_body_attach_object_instance_id**\ (\ body\: :ref:`RID`, id\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_attach_object_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_clear_shapes: .. rst-class:: classref-method |void| **_body_clear_shapes**\ (\ body\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_clear_shapes()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_collide_shape: .. rst-class:: classref-method :ref:`bool` **_body_collide_shape**\ (\ body\: :ref:`RID`, body_shape\: :ref:`int`, shape\: :ref:`RID`, shape_xform\: :ref:`Transform2D`, motion\: :ref:`Vector2`, results\: ``void*``, result_max\: :ref:`int`, result_count\: ``int32_t*``\ ) |virtual| |required| :ref:`🔗` Given a ``body``, a ``shape``, and their respective parameters, this method should return ``true`` if a collision between the two would occur, with additional details passed in ``results``. Overridable version of :ref:`PhysicsServer2D`'s internal ``shape_collide`` method. Corresponds to :ref:`PhysicsDirectSpaceState2D.collide_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_create: .. rst-class:: classref-method :ref:`RID` **_body_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_canvas_instance_id: .. rst-class:: classref-method :ref:`int` **_body_get_canvas_instance_id**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_canvas_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_collision_exceptions: .. rst-class:: classref-method :ref:`Array`\[:ref:`RID`\] **_body_get_collision_exceptions**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Returns the :ref:`RID`\ s of all bodies added as collision exceptions for the given ``body``. See also :ref:`_body_add_collision_exception()` and :ref:`_body_remove_collision_exception()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``body_get_collision_exceptions`` method. Corresponds to :ref:`PhysicsBody2D.get_collision_exceptions()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_collision_layer: .. rst-class:: classref-method :ref:`int` **_body_get_collision_layer**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_collision_layer()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_collision_mask: .. rst-class:: classref-method :ref:`int` **_body_get_collision_mask**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_collision_mask()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_collision_priority: .. rst-class:: classref-method :ref:`float` **_body_get_collision_priority**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_collision_priority()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_constant_force: .. rst-class:: classref-method :ref:`Vector2` **_body_get_constant_force**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_constant_force()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_constant_torque: .. rst-class:: classref-method :ref:`float` **_body_get_constant_torque**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_constant_torque()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_contacts_reported_depth_threshold: .. rst-class:: classref-method :ref:`float` **_body_get_contacts_reported_depth_threshold**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D`'s internal ``body_get_contacts_reported_depth_threshold`` method. \ **Note:** This method is currently unused by Godot's default physics implementation. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_continuous_collision_detection_mode: .. rst-class:: classref-method :ref:`CCDMode` **_body_get_continuous_collision_detection_mode**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_continuous_collision_detection_mode()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_direct_state: .. rst-class:: classref-method :ref:`PhysicsDirectBodyState2D` **_body_get_direct_state**\ (\ body\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_direct_state()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_max_contacts_reported: .. rst-class:: classref-method :ref:`int` **_body_get_max_contacts_reported**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_max_contacts_reported()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_mode: .. rst-class:: classref-method :ref:`BodyMode` **_body_get_mode**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_mode()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_object_instance_id: .. rst-class:: classref-method :ref:`int` **_body_get_object_instance_id**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_object_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_param: .. rst-class:: classref-method :ref:`Variant` **_body_get_param**\ (\ body\: :ref:`RID`, param\: :ref:`BodyParameter`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_shape: .. rst-class:: classref-method :ref:`RID` **_body_get_shape**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_shape_count: .. rst-class:: classref-method :ref:`int` **_body_get_shape_count**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_shape_count()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_shape_transform: .. rst-class:: classref-method :ref:`Transform2D` **_body_get_shape_transform**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_shape_transform()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_space: .. rst-class:: classref-method :ref:`RID` **_body_get_space**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_space()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_get_state: .. rst-class:: classref-method :ref:`Variant` **_body_get_state**\ (\ body\: :ref:`RID`, state\: :ref:`BodyState`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_get_state()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_is_omitting_force_integration: .. rst-class:: classref-method :ref:`bool` **_body_is_omitting_force_integration**\ (\ body\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_is_omitting_force_integration()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_remove_collision_exception: .. rst-class:: classref-method |void| **_body_remove_collision_exception**\ (\ body\: :ref:`RID`, excepted_body\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_remove_collision_exception()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_remove_shape: .. rst-class:: classref-method |void| **_body_remove_shape**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_remove_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_reset_mass_properties: .. rst-class:: classref-method |void| **_body_reset_mass_properties**\ (\ body\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_reset_mass_properties()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_axis_velocity: .. rst-class:: classref-method |void| **_body_set_axis_velocity**\ (\ body\: :ref:`RID`, axis_velocity\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_axis_velocity()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_collision_layer: .. rst-class:: classref-method |void| **_body_set_collision_layer**\ (\ body\: :ref:`RID`, layer\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_collision_layer()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_collision_mask: .. rst-class:: classref-method |void| **_body_set_collision_mask**\ (\ body\: :ref:`RID`, mask\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_collision_mask()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_collision_priority: .. rst-class:: classref-method |void| **_body_set_collision_priority**\ (\ body\: :ref:`RID`, priority\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_collision_priority()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_constant_force: .. rst-class:: classref-method |void| **_body_set_constant_force**\ (\ body\: :ref:`RID`, force\: :ref:`Vector2`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_constant_force()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_constant_torque: .. rst-class:: classref-method |void| **_body_set_constant_torque**\ (\ body\: :ref:`RID`, torque\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_constant_torque()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_contacts_reported_depth_threshold: .. rst-class:: classref-method |void| **_body_set_contacts_reported_depth_threshold**\ (\ body\: :ref:`RID`, threshold\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D`'s internal ``body_set_contacts_reported_depth_threshold`` method. \ **Note:** This method is currently unused by Godot's default physics implementation. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_continuous_collision_detection_mode: .. rst-class:: classref-method |void| **_body_set_continuous_collision_detection_mode**\ (\ body\: :ref:`RID`, mode\: :ref:`CCDMode`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_continuous_collision_detection_mode()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_force_integration_callback: .. rst-class:: classref-method |void| **_body_set_force_integration_callback**\ (\ body\: :ref:`RID`, callable\: :ref:`Callable`, userdata\: :ref:`Variant`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_force_integration_callback()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_max_contacts_reported: .. rst-class:: classref-method |void| **_body_set_max_contacts_reported**\ (\ body\: :ref:`RID`, amount\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_max_contacts_reported()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_mode: .. rst-class:: classref-method |void| **_body_set_mode**\ (\ body\: :ref:`RID`, mode\: :ref:`BodyMode`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_mode()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_omit_force_integration: .. rst-class:: classref-method |void| **_body_set_omit_force_integration**\ (\ body\: :ref:`RID`, enable\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_omit_force_integration()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_param: .. rst-class:: classref-method |void| **_body_set_param**\ (\ body\: :ref:`RID`, param\: :ref:`BodyParameter`, value\: :ref:`Variant`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_pickable: .. rst-class:: classref-method |void| **_body_set_pickable**\ (\ body\: :ref:`RID`, pickable\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` If set to ``true``, allows the body with the given :ref:`RID` to detect mouse inputs when the mouse cursor is hovering on it. Overridable version of :ref:`PhysicsServer2D`'s internal ``body_set_pickable`` method. Corresponds to :ref:`CollisionObject2D.input_pickable`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_shape: .. rst-class:: classref-method |void| **_body_set_shape**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, shape\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_shape_as_one_way_collision: .. rst-class:: classref-method |void| **_body_set_shape_as_one_way_collision**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, enable\: :ref:`bool`, margin\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_shape_as_one_way_collision()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_shape_disabled: .. rst-class:: classref-method |void| **_body_set_shape_disabled**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, disabled\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_shape_disabled()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_shape_transform: .. rst-class:: classref-method |void| **_body_set_shape_transform**\ (\ body\: :ref:`RID`, shape_idx\: :ref:`int`, transform\: :ref:`Transform2D`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_shape_transform()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_space: .. rst-class:: classref-method |void| **_body_set_space**\ (\ body\: :ref:`RID`, space\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_space()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_state: .. rst-class:: classref-method |void| **_body_set_state**\ (\ body\: :ref:`RID`, state\: :ref:`BodyState`, value\: :ref:`Variant`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_set_state()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_set_state_sync_callback: .. rst-class:: classref-method |void| **_body_set_state_sync_callback**\ (\ body\: :ref:`RID`, callable\: :ref:`Callable`\ ) |virtual| |required| :ref:`🔗` Assigns the ``body`` to call the given ``callable`` during the synchronization phase of the loop, before :ref:`_step()` is called. See also :ref:`_sync()`. Overridable version of :ref:`PhysicsServer2D.body_set_state_sync_callback()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__body_test_motion: .. rst-class:: classref-method :ref:`bool` **_body_test_motion**\ (\ body\: :ref:`RID`, from\: :ref:`Transform2D`, motion\: :ref:`Vector2`, margin\: :ref:`float`, collide_separation_ray\: :ref:`bool`, recovery_as_collision\: :ref:`bool`, result\: ``PhysicsServer2DExtensionMotionResult*``\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.body_test_motion()`. Unlike the exposed implementation, this method does not receive all of the arguments inside a :ref:`PhysicsTestMotionParameters2D`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__capsule_shape_create: .. rst-class:: classref-method :ref:`RID` **_capsule_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.capsule_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__circle_shape_create: .. rst-class:: classref-method :ref:`RID` **_circle_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.circle_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__concave_polygon_shape_create: .. rst-class:: classref-method :ref:`RID` **_concave_polygon_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.concave_polygon_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__convex_polygon_shape_create: .. rst-class:: classref-method :ref:`RID` **_convex_polygon_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.convex_polygon_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__damped_spring_joint_get_param: .. rst-class:: classref-method :ref:`float` **_damped_spring_joint_get_param**\ (\ joint\: :ref:`RID`, param\: :ref:`DampedSpringParam`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.damped_spring_joint_get_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__damped_spring_joint_set_param: .. rst-class:: classref-method |void| **_damped_spring_joint_set_param**\ (\ joint\: :ref:`RID`, param\: :ref:`DampedSpringParam`, value\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.damped_spring_joint_set_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__end_sync: .. rst-class:: classref-method |void| **_end_sync**\ (\ ) |virtual| |required| :ref:`🔗` Called to indicate that the physics server has stopped synchronizing. It is in the loop's iteration/physics phase, and can access physics objects even if running on a separate thread. See also :ref:`_sync()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``end_sync`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__finish: .. rst-class:: classref-method |void| **_finish**\ (\ ) |virtual| |required| :ref:`🔗` Called when the main loop finalizes to shut down the physics server. See also :ref:`MainLoop._finalize()` and :ref:`_init()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``finish`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__flush_queries: .. rst-class:: classref-method |void| **_flush_queries**\ (\ ) |virtual| |required| :ref:`🔗` Called every physics step before :ref:`_step()` to process all remaining queries. Overridable version of :ref:`PhysicsServer2D`'s internal ``flush_queries`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__free_rid: .. rst-class:: classref-method |void| **_free_rid**\ (\ rid\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.free_rid()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__get_process_info: .. rst-class:: classref-method :ref:`int` **_get_process_info**\ (\ process_info\: :ref:`ProcessInfo`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.get_process_info()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__init: .. rst-class:: classref-method |void| **_init**\ (\ ) |virtual| |required| :ref:`🔗` Called when the main loop is initialized and creates a new instance of this physics server. See also :ref:`MainLoop._initialize()` and :ref:`_finish()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``init`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__is_flushing_queries: .. rst-class:: classref-method :ref:`bool` **_is_flushing_queries**\ (\ ) |virtual| |required| |const| :ref:`🔗` Overridable method that should return ``true`` when the physics server is processing queries. See also :ref:`_flush_queries()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``is_flushing_queries`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_clear: .. rst-class:: classref-method |void| **_joint_clear**\ (\ joint\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_clear()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_create: .. rst-class:: classref-method :ref:`RID` **_joint_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_disable_collisions_between_bodies: .. rst-class:: classref-method |void| **_joint_disable_collisions_between_bodies**\ (\ joint\: :ref:`RID`, disable\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_disable_collisions_between_bodies()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_get_param: .. rst-class:: classref-method :ref:`float` **_joint_get_param**\ (\ joint\: :ref:`RID`, param\: :ref:`JointParam`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_get_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_get_type: .. rst-class:: classref-method :ref:`JointType` **_joint_get_type**\ (\ joint\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_get_type()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_is_disabled_collisions_between_bodies: .. rst-class:: classref-method :ref:`bool` **_joint_is_disabled_collisions_between_bodies**\ (\ joint\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_is_disabled_collisions_between_bodies()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_make_damped_spring: .. rst-class:: classref-method |void| **_joint_make_damped_spring**\ (\ joint\: :ref:`RID`, anchor_a\: :ref:`Vector2`, anchor_b\: :ref:`Vector2`, body_a\: :ref:`RID`, body_b\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_make_damped_spring()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_make_groove: .. rst-class:: classref-method |void| **_joint_make_groove**\ (\ joint\: :ref:`RID`, a_groove1\: :ref:`Vector2`, a_groove2\: :ref:`Vector2`, b_anchor\: :ref:`Vector2`, body_a\: :ref:`RID`, body_b\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_make_groove()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_make_pin: .. rst-class:: classref-method |void| **_joint_make_pin**\ (\ joint\: :ref:`RID`, anchor\: :ref:`Vector2`, body_a\: :ref:`RID`, body_b\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_make_pin()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__joint_set_param: .. rst-class:: classref-method |void| **_joint_set_param**\ (\ joint\: :ref:`RID`, param\: :ref:`JointParam`, value\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.joint_set_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__pin_joint_get_flag: .. rst-class:: classref-method :ref:`bool` **_pin_joint_get_flag**\ (\ joint\: :ref:`RID`, flag\: :ref:`PinJointFlag`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.pin_joint_get_flag()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__pin_joint_get_param: .. rst-class:: classref-method :ref:`float` **_pin_joint_get_param**\ (\ joint\: :ref:`RID`, param\: :ref:`PinJointParam`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.pin_joint_get_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__pin_joint_set_flag: .. rst-class:: classref-method |void| **_pin_joint_set_flag**\ (\ joint\: :ref:`RID`, flag\: :ref:`PinJointFlag`, enabled\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.pin_joint_set_flag()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__pin_joint_set_param: .. rst-class:: classref-method |void| **_pin_joint_set_param**\ (\ joint\: :ref:`RID`, param\: :ref:`PinJointParam`, value\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.pin_joint_set_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__rectangle_shape_create: .. rst-class:: classref-method :ref:`RID` **_rectangle_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.rectangle_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__segment_shape_create: .. rst-class:: classref-method :ref:`RID` **_segment_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.segment_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__separation_ray_shape_create: .. rst-class:: classref-method :ref:`RID` **_separation_ray_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.separation_ray_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__set_active: .. rst-class:: classref-method |void| **_set_active**\ (\ active\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.set_active()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__shape_collide: .. rst-class:: classref-method :ref:`bool` **_shape_collide**\ (\ shape_A\: :ref:`RID`, xform_A\: :ref:`Transform2D`, motion_A\: :ref:`Vector2`, shape_B\: :ref:`RID`, xform_B\: :ref:`Transform2D`, motion_B\: :ref:`Vector2`, results\: ``void*``, result_max\: :ref:`int`, result_count\: ``int32_t*``\ ) |virtual| |required| :ref:`🔗` Given two shapes and their parameters, should return ``true`` if a collision between the two would occur, with additional details passed in ``results``. Overridable version of :ref:`PhysicsServer2D`'s internal ``shape_collide`` method. Corresponds to :ref:`PhysicsDirectSpaceState2D.collide_shape()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__shape_get_custom_solver_bias: .. rst-class:: classref-method :ref:`float` **_shape_get_custom_solver_bias**\ (\ shape\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Should return the custom solver bias of the given ``shape``, which defines how much bodies are forced to separate on contact when this shape is involved. Overridable version of :ref:`PhysicsServer2D`'s internal ``shape_get_custom_solver_bias`` method. Corresponds to :ref:`Shape2D.custom_solver_bias`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__shape_get_data: .. rst-class:: classref-method :ref:`Variant` **_shape_get_data**\ (\ shape\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.shape_get_data()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__shape_get_type: .. rst-class:: classref-method :ref:`ShapeType` **_shape_get_type**\ (\ shape\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.shape_get_type()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__shape_set_custom_solver_bias: .. rst-class:: classref-method |void| **_shape_set_custom_solver_bias**\ (\ shape\: :ref:`RID`, bias\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Should set the custom solver bias for the given ``shape``. It defines how much bodies are forced to separate on contact. Overridable version of :ref:`PhysicsServer2D`'s internal ``shape_get_custom_solver_bias`` method. Corresponds to :ref:`Shape2D.custom_solver_bias`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__shape_set_data: .. rst-class:: classref-method |void| **_shape_set_data**\ (\ shape\: :ref:`RID`, data\: :ref:`Variant`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.shape_set_data()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_create: .. rst-class:: classref-method :ref:`RID` **_space_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.space_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_get_contact_count: .. rst-class:: classref-method :ref:`int` **_space_get_contact_count**\ (\ space\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Should return how many contacts have occurred during the last physics step in the given ``space``. See also :ref:`_space_get_contacts()` and :ref:`_space_set_debug_contacts()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``space_get_contact_count`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_get_contacts: .. rst-class:: classref-method :ref:`PackedVector2Array` **_space_get_contacts**\ (\ space\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Should return the positions of all contacts that have occurred during the last physics step in the given ``space``. See also :ref:`_space_get_contact_count()` and :ref:`_space_set_debug_contacts()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``space_get_contacts`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_get_direct_state: .. rst-class:: classref-method :ref:`PhysicsDirectSpaceState2D` **_space_get_direct_state**\ (\ space\: :ref:`RID`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.space_get_direct_state()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_get_param: .. rst-class:: classref-method :ref:`float` **_space_get_param**\ (\ space\: :ref:`RID`, param\: :ref:`SpaceParameter`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.space_get_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_is_active: .. rst-class:: classref-method :ref:`bool` **_space_is_active**\ (\ space\: :ref:`RID`\ ) |virtual| |required| |const| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.space_is_active()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_set_active: .. rst-class:: classref-method |void| **_space_set_active**\ (\ space\: :ref:`RID`, active\: :ref:`bool`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.space_set_active()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_set_debug_contacts: .. rst-class:: classref-method |void| **_space_set_debug_contacts**\ (\ space\: :ref:`RID`, max_contacts\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` Used internally to allow the given ``space`` to store contact points, up to ``max_contacts``. This is automatically set for the main :ref:`World2D`'s space when :ref:`SceneTree.debug_collisions_hint` is ``true``, or by checking "Visible Collision Shapes" in the editor. Only works in debug builds. Overridable version of :ref:`PhysicsServer2D`'s internal ``space_set_debug_contacts`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__space_set_param: .. rst-class:: classref-method |void| **_space_set_param**\ (\ space\: :ref:`RID`, param\: :ref:`SpaceParameter`, value\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.space_set_param()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__step: .. rst-class:: classref-method |void| **_step**\ (\ step\: :ref:`float`\ ) |virtual| |required| :ref:`🔗` Called every physics step to process the physics simulation. ``step`` is the time elapsed since the last physics step, in seconds. It is usually the same as :ref:`Node.get_physics_process_delta_time()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``step`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__sync: .. rst-class:: classref-method |void| **_sync**\ (\ ) |virtual| |required| :ref:`🔗` Called to indicate that the physics server is synchronizing and cannot access physics states if running on a separate thread. See also :ref:`_end_sync()`. Overridable version of :ref:`PhysicsServer2D`'s internal ``sync`` method. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_private_method__world_boundary_shape_create: .. rst-class:: classref-method :ref:`RID` **_world_boundary_shape_create**\ (\ ) |virtual| |required| :ref:`🔗` Overridable version of :ref:`PhysicsServer2D.world_boundary_shape_create()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_method_body_test_motion_is_excluding_body: .. rst-class:: classref-method :ref:`bool` **body_test_motion_is_excluding_body**\ (\ body\: :ref:`RID`\ ) |const| :ref:`🔗` Returns ``true`` if the body with the given :ref:`RID` is being excluded from :ref:`_body_test_motion()`. See also :ref:`Object.get_instance_id()`. .. rst-class:: classref-item-separator ---- .. _class_PhysicsServer2DExtension_method_body_test_motion_is_excluding_object: .. rst-class:: classref-method :ref:`bool` **body_test_motion_is_excluding_object**\ (\ object\: :ref:`int`\ ) |const| :ref:`🔗` Returns ``true`` if the object with the given instance ID is being excluded from :ref:`_body_test_motion()`. See also :ref:`Object.get_instance_id()`. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`