Skip to content

PhysicsIntersectPointResult3D

Inherits: RefCounted < Object

Stores the results of a point intersection query.

This class contains the intersection information produced by PhysicsDirectSpaceState3D.intersect_point_into().

It stores up to a user-defined number of overlapping shapes.

Note: For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.

Type Name Default
int max_intersections 32
Returns Method
Object get_collider(intersection_index: int) const
int get_collider_id(intersection_index: int) const
RID get_collider_rid(intersection_index: int) const
int get_collider_shape(intersection_index: int) const
int get_intersection_count() const

max_intersections

int max_intersections = 32

The maximum number of intersections this result object can store.

get_collider

Object get_collider(intersection_index: int) const

The colliding object.

get_collider_id

int get_collider_id(intersection_index: int) const

The colliding object’s ID.

get_collider_rid

RID get_collider_rid(intersection_index: int) const

The intersecting object’s RID.

get_collider_shape

int get_collider_shape(intersection_index: int) const

The shape index of the colliding shape.

get_intersection_count

int get_intersection_count() const

Returns the number of shapes that intersect the queried point.