For Agents | Documentation index: https://create.roblox.com/docs/llms.txt | Engine API index: https://create.roblox.com/docs/reference/engine/llms.txt
学习
/
引擎 API
/
数据类型
Ray
Ray
*
此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按
此处
。
摘要
构造工具
new
(
Origin:
Vector3
,
Direction:
Vector3
)
属性
Unit
:
Ray
Origin
:
Vector3
Direction
:
Vector3
方法
ClosestPoint
(
point:
Vector3
)
:
Vector3
Distance
(
point:
Vector3
)
:
number
API 参考
构造工具
new
Ray.
new
(
Origin
:
Vector3
,
Direction
:
Vector3
)
参数
Origin
:
Vector3
Direction
:
Vector3
提供反馈
属性
Unit
Ray.
Unit
:
Ray
提供反馈
Origin
Ray.
Origin
:
Vector3
提供反馈
Direction
Ray.
Direction
:
Vector3
提供反馈
方法
Closest
Point
Ray:
Closest
Point
(
point
:
Vector3
)
:
Vector3
参数
point
:
Vector3
返回
Vector3
提供反馈
Distance
Ray:
Distance
(
point
:
Vector3
)
:
number
参数
point
:
Vector3
返回
number
提供反馈
©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。
条款
·
隐私政策
·
辅助功能
·
支持
中文(简体)