Stores the result of a ray intersection query.
This object contains the intersection information produced by [method PhysicsDirectSpaceState2D.intersect_ray_into].
After calling [method PhysicsDirectSpaceState2D.intersect_ray_into], the fields of this object will be populated with the hit information if the ray intersects a shape. If no intersection occurred, the values remain unchanged from the previous state.
[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.
The colliding object.
The colliding object's ID.
The intersecting object's [RID].
The shape index of the colliding shape.
The object's surface normal at the intersection point, or [code]Vector2(0, 0)[/code] if the ray starts inside the shape and [member PhysicsRayQueryParameters2D.hit_from_inside] is [code]true[/code].
The intersection point.