W3cubDocs

/Godot 3.2

PhysicsShapeQueryResult

Inherits: Reference < Object

Result of a 3D shape query in PhysicsServer.

Description

The result of a 3D shape query in PhysicsServer. See also PhysicsShapeQueryParameters.

Methods

int get_result_count ( ) const
Object get_result_object ( int idx ) const
int get_result_object_id ( int idx ) const
int get_result_object_shape ( int idx ) const
RID 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–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_physicsshapequeryresult.html