interface ITrackingInfo {
    angle_tracking_on: boolean;
    closeP: string;
    closestPoint: string | IVector3;
    cpath: string[];
    current_angle: number;
    current_path: ILocation[];
    current_position: IVector3;
    current_state: CURRENT_STATE;
    distance_from_origin: number;
    distance_from_previous: number;
    distance_to_closest_path: number;
    distance_to_destination: number;
    next_step: null | string;
}

Properties

angle_tracking_on: boolean

현재 사용자의 각도가 경로의 방향과 일치하는 지 여부

closeP: string
closestPoint: string | IVector3

가장 가까운 포인트는 현재 path 라인위에 있거나, 현재 path의 2개의 포인트 중에 하나에 있거나, NONE이거나 NEW이다 (NONE은 경로이탈, NEW는 새로운 경로발견)

cpath: string[]
current_angle: number

현재 가고있는 길의 각도 (ON_PATH, ON_CORNER일때 현재 path의 시작점(첫번째포인트)의 각도)

current_path: ILocation[]

현재 진행중인 path의 2개의 path node 정보

current_position: IVector3

현재 사용자 위치 (경로 이탈 시, 경로 재탐색 목적)

current_state: CURRENT_STATE

null이었다가 OUT_OF_PATH, ON_PATH, (ON_LAST_PATH) WILL_ARRIVE, ARRIVED 로 변경된다

distance_from_origin: number

출발지로부터의 거리 (미터(m) 단위)

distance_from_previous: number

이전위치에서 현재 위치까지의 거리

distance_to_closest_path: number

가장 가까운 path와의 직선거리 (경로 이탈 시, 경로 재탐색 목적) (미터(m) 단위)

distance_to_destination: number

도착지까지 남은 거리 (미터(m) 단위)

next_step: null | string

null이었다가 STRAIGHT, RIGHT, LEFT, DESTNATION 로 변경된다