The ScriptAI Editor allows the user to manually draw-in trajectories by selecting points on the map with the mouse. To do so, the user should open the Manual Draw-In Window which can be found in the Trajectory List window.
Note: Care should be taken when selecting points when the map geometry is dense and/or the camera is far away from the point. The mouse selection algorithm uses raycasting to choose the point, and will choose the closest point to the ray. This can sometimes be ambiguous and may result in the user choosing the wrong point. For such regions, we recommend the user moves the camera in close and chooses a camera angle with a good seperation of the local geometry.
The marked-up illustration below highlights the Manual Draw-In Window.
List Of Waypoints:
The Center of the Manual Draw-In Window shows the list of ordered waypoints chosen by the user, as they are chosen.
Note: The order is fixed. If the user makes a mistake with the order, the standard ‘Undo’ operation can be performed (CTRL + Z) or the trajectory can be abandoned by closing the Manual Draw-In Window, then re-opening a new one.
Create Trajectory:
Clicking this button will create a trajectory from the waypoint list and parameters in the Manual Draw-In Window. The window will close, and the trajectory will instantly be available for examination and editing across the ScriptAI Editor.
Note: at the point of creation, no vehicle will be linked to the trajectory. The user can manually do this later.
Close Window:
The Manual Draw-In Window can be closed using the ‘Close’ button on the window. If this is done, any drawn-in waypoints are abandoned and the ScriptAI Editor returns to its main operational mode.
ScriptAI Mode:
This radio button allows the user to select which ScriptAI mode should be used by the trajectory which is currently being drawn-in.
Color Selector:
The user can choose the trajectory color here. Clicking on the colored square will open a selection pallette. Colors can be changed later.
Note: The default color is chosen by cycling through a small pallette of standard colors. If many trajectories appear in the scenario, similar colors can be used. In such cases, it is useful to manually change the color.