배우기
엔진 클래스
Path
만들 수 없음
복제되지 않음

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


요약
메서드
CheckOcclusionAsync(start: number):number
사용되지 않음
ComputeAsync(start: Vector3,finish: Vector3):()
GetPointCoordinates():{any}
사용되지 않음
이벤트
Blocked(blockedWaypointIdx: number):RBXScriptSignal
Unblocked(unblockedWaypointIdx: number):RBXScriptSignal
상속된 멤버

API 참조
속성
Status
읽기 전용
복제되지 않음
병렬 읽기
기능: Basic
Path.Status:Enum.PathStatus

메서드
CheckOcclusionAsync
사용되지 않음

ComputeAsync
생성
기능: Basic
Path:ComputeAsync(
start:Vector3, finish:Vector3
):()
매개 변수
start:Vector3
finish:Vector3
반환
()

GetPointCoordinates
사용되지 않음

GetWaypoints
기능: Basic
Path:GetWaypoints():{any}
반환
코드 샘플
경로 경로점 받기
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

이벤트
Blocked
기능: Basic
Path.Blocked(blockedWaypointIdx:number):RBXScriptSignal
매개 변수
blockedWaypointIdx:number

Unblocked
기능: Basic
Path.Unblocked(unblockedWaypointIdx:number):RBXScriptSignal
매개 변수
unblockedWaypointIdx:number

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.