跳转至

Physics2DShapeQueryResult

继承

Reference

简要描述

Physics2DServer中2D形状查询的结果。

描述

Physics2DServer中2D形状查询的结果,参见Physics2DShapeQueryParameters

方法

返回值类型 方法名称
int get_result_count() const
Object get_result_object(idx: int) const
int get_result_object_id(idx: int) const
int get_result_object_shape(idx: int) const
RID get_result_rid(idx: int) const

方法说明

  • get_result_count get_result_count() const

返回与形状相交的对象数。


  • get_result_object get_result_object(idx: int) const

返回与形状在索引idx处相交的Object


  • get_result_object_id get_result_object_id(idx: int) const

返回与idx处的形状相交的Object的实例ID。


  • get_result_object_shape get_result_object_shape(idx: int) const

返回与idx处的形状相交的对象Shape的子索引。


  • get_result_rid get_result_rid(idx: int) const

返回与形状在索引idx处相交的对象的RID