0.2.0-dev Download ZIP
54 lines ·2.0 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="PhysicsIntersectPointResult2D" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Stores the results of a point intersection query. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This class contains the intersection information produced by [method PhysicsDirectSpaceState2D.intersect_point_into]. |
| 8 | It stores up to a user-defined number of overlapping shapes. |
| 9 | [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | </tutorials> |
| 13 | <methods> |
| 14 | <method name="get_collider" qualifiers="const"> |
| 15 | <return type="Object" /> |
| 16 | <param index="0" name="intersection_index" type="int" /> |
| 17 | <description> |
| 18 | The colliding object. |
| 19 | </description> |
| 20 | </method> |
| 21 | <method name="get_collider_id" qualifiers="const"> |
| 22 | <return type="int" /> |
| 23 | <param index="0" name="intersection_index" type="int" /> |
| 24 | <description> |
| 25 | The colliding object's ID. |
| 26 | </description> |
| 27 | </method> |
| 28 | <method name="get_collider_rid" qualifiers="const"> |
| 29 | <return type="RID" /> |
| 30 | <param index="0" name="intersection_index" type="int" /> |
| 31 | <description> |
| 32 | The intersecting object's [RID]. |
| 33 | </description> |
| 34 | </method> |
| 35 | <method name="get_collider_shape" qualifiers="const"> |
| 36 | <return type="int" /> |
| 37 | <param index="0" name="intersection_index" type="int" /> |
| 38 | <description> |
| 39 | The shape index of the colliding shape. |
| 40 | </description> |
| 41 | </method> |
| 42 | <method name="get_intersection_count" qualifiers="const"> |
| 43 | <return type="int" /> |
| 44 | <description> |
| 45 | Returns the number of shapes that intersect the queried point. |
| 46 | </description> |
| 47 | </method> |
| 48 | </methods> |
| 49 | <members> |
| 50 | <member name="max_intersections" type="int" setter="set_max_intersections" getter="get_max_intersections" default="32"> |
| 51 | The maximum number of intersections this result object can store. |
| 52 | </member> |
| 53 | </members> |
| 54 | </class> |