: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/PhysicsDirectSpaceState3DExtension.xml. .. _class_PhysicsDirectSpaceState3DExtension: PhysicsDirectSpaceState3DExtension ================================== **Inherits:** :ref:`PhysicsDirectSpaceState3D` **<** :ref:`Object` Provides virtual methods that can be overridden to create custom :ref:`PhysicsDirectSpaceState3D` implementations. .. rst-class:: classref-introduction-group Description ----------- This class extends :ref:`PhysicsDirectSpaceState3D` 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:`PhysicsDirectSpaceState3D`. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_cast_motion`\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, closest_safe\: ``float*``, closest_unsafe\: ``float*``, info\: ``PhysicsServer3DExtensionShapeRestInfo*``\ ) |virtual| |required| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_collide_shape`\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, results\: ``void*``, max_results\: :ref:`int`, result_count\: ``int32_t*``\ ) |virtual| |required| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`_get_closest_point_to_object_volume`\ (\ object\: :ref:`RID`, point\: :ref:`Vector3`\ ) |virtual| |required| |const| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_intersect_point`\ (\ position\: :ref:`Vector3`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, results\: ``PhysicsServer3DExtensionShapeResult*``, max_results\: :ref:`int`\ ) |virtual| |required| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_intersect_ray`\ (\ from\: :ref:`Vector3`, to\: :ref:`Vector3`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, hit_from_inside\: :ref:`bool`, hit_back_faces\: :ref:`bool`, pick_ray\: :ref:`bool`, result\: ``PhysicsServer3DExtensionRayResult*``\ ) |virtual| |required| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_intersect_shape`\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, result_count\: ``PhysicsServer3DExtensionShapeResult*``, max_results\: :ref:`int`\ ) |virtual| |required| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_rest_info`\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, rest_info\: ``PhysicsServer3DExtensionShapeRestInfo*``\ ) |virtual| |required| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_body_excluded_from_query`\ (\ body\: :ref:`RID`\ ) |const| | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_PhysicsDirectSpaceState3DExtension_private_method__cast_motion: .. rst-class:: classref-method :ref:`bool` **_cast_motion**\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, closest_safe\: ``float*``, closest_unsafe\: ``float*``, info\: ``PhysicsServer3DExtensionShapeRestInfo*``\ ) |virtual| |required| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_private_method__collide_shape: .. rst-class:: classref-method :ref:`bool` **_collide_shape**\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, results\: ``void*``, max_results\: :ref:`int`, result_count\: ``int32_t*``\ ) |virtual| |required| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_private_method__get_closest_point_to_object_volume: .. rst-class:: classref-method :ref:`Vector3` **_get_closest_point_to_object_volume**\ (\ object\: :ref:`RID`, point\: :ref:`Vector3`\ ) |virtual| |required| |const| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_private_method__intersect_point: .. rst-class:: classref-method :ref:`int` **_intersect_point**\ (\ position\: :ref:`Vector3`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, results\: ``PhysicsServer3DExtensionShapeResult*``, max_results\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_private_method__intersect_ray: .. rst-class:: classref-method :ref:`bool` **_intersect_ray**\ (\ from\: :ref:`Vector3`, to\: :ref:`Vector3`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, hit_from_inside\: :ref:`bool`, hit_back_faces\: :ref:`bool`, pick_ray\: :ref:`bool`, result\: ``PhysicsServer3DExtensionRayResult*``\ ) |virtual| |required| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_private_method__intersect_shape: .. rst-class:: classref-method :ref:`int` **_intersect_shape**\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, result_count\: ``PhysicsServer3DExtensionShapeResult*``, max_results\: :ref:`int`\ ) |virtual| |required| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_private_method__rest_info: .. rst-class:: classref-method :ref:`bool` **_rest_info**\ (\ shape_rid\: :ref:`RID`, transform\: :ref:`Transform3D`, motion\: :ref:`Vector3`, margin\: :ref:`float`, collision_mask\: :ref:`int`, collide_with_bodies\: :ref:`bool`, collide_with_areas\: :ref:`bool`, rest_info\: ``PhysicsServer3DExtensionShapeRestInfo*``\ ) |virtual| |required| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_PhysicsDirectSpaceState3DExtension_method_is_body_excluded_from_query: .. rst-class:: classref-method :ref:`bool` **is_body_excluded_from_query**\ (\ body\: :ref:`RID`\ ) |const| :ref:`🔗` .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |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.)`