Skip to content
迷你世界 Studio
Main Navigation
教程
迷你世界Studio操作教程
操作手册
多人协作
运行模式
使用资源ID
API
类
数据库
枚举
官方主页
简体中文
English
简体中文
English
Appearance
Menu
Return to top
On this page
RayCastAll2D
所属类
:
WorldService
描述
2D射线检测,返回所有碰撞物
参数
名称
类型
默认
描述
point1
Vector2
射线起点,世界坐标
point2
Vector2
射线终点,世界坐标
isIgnoreTrigger
bool
是否忽略sensor(trigger)类型
filterGroup
table
过滤组,{1,2,3}含有的数字组会被查询
返回值
返回类型
概要
table
{normal, position, fraction, obj}的数组