Table of Contents

Table of Contents

FlexScript Class - AStar.Navigator

AStar.Navigator

Description

Provides access to data and methods related to a model's A* navigator.

Methods

getCell Gets the cell associated with a given model location.
getLocation Gets the model location associated with a given AStar.Cell.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

AStar.Navigator.getCell()

AStar.Cell getCell( Vec3 modelLoc )

Parameters

modelLoc The target model location.

Description

Gets the cell associated with a given model location.

AStar.Cell cell = AStar.navigator.getCell(Vec3(10, 3, 0));
Do no remove, this fixes the anchor on doc.flexsim.com

AStar.Navigator.getLocation()

Vec3 getLocation( AStar.Cell cell )

Parameters

cell The target cell.

Description

Gets the model location associated with a given AStar.Cell.

Vec3 loc = AStar.navigator.getLocation(traveler.travelPath[1].cell);