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
*
此內容是使用 AI(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 是我們在美國及其他國家地區的部分註冊與未註冊商標。
條款
·
隱私權
·
無障礙功能
·
支援
中文(繁體)