Physics2DShapeQueryResult
Result of a 2D shape query in Physics2DServer.
Description
The result of a 2D shape query in Physics2DServer. See also Physics2DShapeQueryParameters.
Methods
get_result_count ( ) const | |
get_result_object ( int idx ) const | |
get_result_object_id ( int idx ) const | |
get_result_object_shape ( int idx ) const | |
get_result_rid ( int idx ) const |
Method Descriptions
int get_result_count ( ) const
Returns the number of objects that intersected with the shape.
Object get_result_object ( int idx ) const
Returns the Object that intersected with the shape at index idx
.
int get_result_object_id ( int idx ) const
Returns the instance ID of the Object that intersected with the shape at index idx
.
int get_result_object_shape ( int idx ) const
Returns the child index of the object's Shape that intersected with the shape at index idx
.
RID get_result_rid ( int idx ) const
Returns the RID of the object that intersected with the shape at index idx
.
© 2014–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_physics2dshapequeryresult.html