Learn
Motor Sınıfı
Path
Oluşturulamaz
Çoğaltılmamış

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Yöntemler
CheckOcclusionAsync(start: number):number
Artık Kullanılmayan
ComputeAsync(start: Vector3,finish: Vector3):()
GetPointCoordinates():{any}
Artık Kullanılmayan
Olaylar
Blocked(blockedWaypointIdx: number):RBXScriptSignal
Unblocked(unblockedWaypointIdx: number):RBXScriptSignal
Devralınan Üyeler

API Referansı
Özellikler
Status
Salt Okunur
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Path.Status:Enum.PathStatus

Yöntemler
CheckOcclusionAsync
Artık Kullanılmayan

ComputeAsync
Bekletir
Capabilities: Basic
Path:ComputeAsync(
start:Vector3, finish:Vector3
):()
Parametreler
start:Vector3
finish:Vector3
Dönüşler
()

GetPointCoordinates
Artık Kullanılmayan

GetWaypoints
Capabilities: Basic
Path:GetWaypoints():{any}
Dönüşler
Kod Örnekleri
Yol Noktaları Al
local PathfindingService = game:GetService("PathfindingService")
local path = PathfindingService:CreatePath()
local PATH_START = Vector3.new(0, 1, 0)
local PATH_END = Vector3.new(100, 1, 25)
path:ComputeAsync(PATH_START, PATH_END)
if path.Status == Enum.PathStatus.Success then
local waypoints = path:GetWaypoints()
for _, waypoint in pairs(waypoints) do
print(waypoint.Position)
end
end

Olaylar
Blocked
Capabilities: Basic
Path.Blocked(blockedWaypointIdx:number):RBXScriptSignal
Parametreler
blockedWaypointIdx:number

Unblocked
Capabilities: Basic
Path.Unblocked(unblockedWaypointIdx:number):RBXScriptSignal
Parametreler
unblockedWaypointIdx:number

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.