跳转至

PhysicsShapeQueryResult

继承

Reference

简要描述

PhysicsServer中3D形状查询的结果。

描述

PhysicsServer中3D形状查询的结果。参见PhysicsShapeQueryParameters

方法

返回值类型 方法名称
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

返回与[index] idx `处的形状相交的Object的实例ID。


  • get_result_object_shape get_result_object_shape(idx: int) const

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


  • get_result_rid get_result_rid(idx: int) const

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