BC API DocsBC APIBC dataControllerFindClosestPoint
- ControllerFindClosestPoint(point: [X: number, Y: number], points: [X: number, Y: number][], direction: Up | Right | Left | Down): number[]
Parameters
point: [X: number, Y: number]
points: [X: number, Y: number][]
direction: Up | Right | Left | Down
Returns number[]
Finds the closest point in a list, favoring the given direction.
Used to navigate the active zones with a controller.