0.2.0-dev Download ZIP
100 lines ·4.6 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="PhysicsDirectSpaceState2DExtension" inherits="PhysicsDirectSpaceState2D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Provides virtual methods that can be overridden to create custom [PhysicsDirectSpaceState2D] implementations. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This class extends [PhysicsDirectSpaceState2D] 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. |
| 8 | Intended for use with GDExtension to create custom implementations of [PhysicsDirectSpaceState2D]. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="_cast_motion" qualifiers="virtual required"> |
| 14 | <return type="bool" /> |
| 15 | <param index="0" name="shape_rid" type="RID" /> |
| 16 | <param index="1" name="transform" type="Transform2D" /> |
| 17 | <param index="2" name="motion" type="Vector2" /> |
| 18 | <param index="3" name="margin" type="float" /> |
| 19 | <param index="4" name="collision_mask" type="int" /> |
| 20 | <param index="5" name="collide_with_bodies" type="bool" /> |
| 21 | <param index="6" name="collide_with_areas" type="bool" /> |
| 22 | <param index="7" name="r_closest_safe" type="float*" /> |
| 23 | <param index="8" name="r_closest_unsafe" type="float*" /> |
| 24 | <description> |
| 25 | </description> |
| 26 | </method> |
| 27 | <method name="_collide_shape" qualifiers="virtual required"> |
| 28 | <return type="bool" /> |
| 29 | <param index="0" name="shape_rid" type="RID" /> |
| 30 | <param index="1" name="transform" type="Transform2D" /> |
| 31 | <param index="2" name="motion" type="Vector2" /> |
| 32 | <param index="3" name="margin" type="float" /> |
| 33 | <param index="4" name="collision_mask" type="int" /> |
| 34 | <param index="5" name="collide_with_bodies" type="bool" /> |
| 35 | <param index="6" name="collide_with_areas" type="bool" /> |
| 36 | <param index="7" name="r_results" type="void*" /> |
| 37 | <param index="8" name="max_results" type="int" /> |
| 38 | <param index="9" name="r_result_count" type="int32_t*" /> |
| 39 | <description> |
| 40 | </description> |
| 41 | </method> |
| 42 | <method name="_intersect_point" qualifiers="virtual required"> |
| 43 | <return type="int" /> |
| 44 | <param index="0" name="position" type="Vector2" /> |
| 45 | <param index="1" name="canvas_instance_id" type="int" /> |
| 46 | <param index="2" name="collision_mask" type="int" /> |
| 47 | <param index="3" name="collide_with_bodies" type="bool" /> |
| 48 | <param index="4" name="collide_with_areas" type="bool" /> |
| 49 | <param index="5" name="r_results" type="PhysicsServer2DExtensionShapeResult*" /> |
| 50 | <param index="6" name="max_results" type="int" /> |
| 51 | <description> |
| 52 | </description> |
| 53 | </method> |
| 54 | <method name="_intersect_ray" qualifiers="virtual required"> |
| 55 | <return type="bool" /> |
| 56 | <param index="0" name="from" type="Vector2" /> |
| 57 | <param index="1" name="to" type="Vector2" /> |
| 58 | <param index="2" name="collision_mask" type="int" /> |
| 59 | <param index="3" name="collide_with_bodies" type="bool" /> |
| 60 | <param index="4" name="collide_with_areas" type="bool" /> |
| 61 | <param index="5" name="hit_from_inside" type="bool" /> |
| 62 | <param index="6" name="r_result" type="PhysicsServer2DExtensionRayResult*" /> |
| 63 | <description> |
| 64 | </description> |
| 65 | </method> |
| 66 | <method name="_intersect_shape" qualifiers="virtual required"> |
| 67 | <return type="int" /> |
| 68 | <param index="0" name="shape_rid" type="RID" /> |
| 69 | <param index="1" name="transform" type="Transform2D" /> |
| 70 | <param index="2" name="motion" type="Vector2" /> |
| 71 | <param index="3" name="margin" type="float" /> |
| 72 | <param index="4" name="collision_mask" type="int" /> |
| 73 | <param index="5" name="collide_with_bodies" type="bool" /> |
| 74 | <param index="6" name="collide_with_areas" type="bool" /> |
| 75 | <param index="7" name="r_result" type="PhysicsServer2DExtensionShapeResult*" /> |
| 76 | <param index="8" name="max_results" type="int" /> |
| 77 | <description> |
| 78 | </description> |
| 79 | </method> |
| 80 | <method name="_rest_info" qualifiers="virtual required"> |
| 81 | <return type="bool" /> |
| 82 | <param index="0" name="shape_rid" type="RID" /> |
| 83 | <param index="1" name="transform" type="Transform2D" /> |
| 84 | <param index="2" name="motion" type="Vector2" /> |
| 85 | <param index="3" name="margin" type="float" /> |
| 86 | <param index="4" name="collision_mask" type="int" /> |
| 87 | <param index="5" name="collide_with_bodies" type="bool" /> |
| 88 | <param index="6" name="collide_with_areas" type="bool" /> |
| 89 | <param index="7" name="r_rest_info" type="PhysicsServer2DExtensionShapeRestInfo*" /> |
| 90 | <description> |
| 91 | </description> |
| 92 | </method> |
| 93 | <method name="is_body_excluded_from_query" qualifiers="const"> |
| 94 | <return type="bool" /> |
| 95 | <param index="0" name="body" type="RID" /> |
| 96 | <description> |
| 97 | </description> |
| 98 | </method> |
| 99 | </methods> |
| 100 | </class> |