For Agents | Documentation index: https://create.roblox.com/docs/llms.txt | Engine API index: https://create.roblox.com/docs/reference/engine/llms.txt
學習
資料類型
/
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
提供回饋
方法
ClosestPoint
Ray:ClosestPoint
(
point
:
Vector3
)
:
Vector3
參數
point
:
Vector3
返回
Vector3
提供回饋
Distance
Ray:Distance
(
point
:
Vector3
)
:
number
參數
point
:
Vector3
返回
number
提供回饋
跳至
▼
Ray
概要
建構子
屬性
方法
建構子
new()
屬性
Unit
Origin
Direction
方法
ClosestPoint()
Distance()
中文(繁體)
回饋
©2026 Roblox Corporation、Roblox、Roblox 標誌及 Powering Imagination 是我們在美國及其他國家地區的部分註冊與未註冊商標。
條款
·
隱私權
·
無障礙功能
·
支援
中文(繁體)