AI Testing Simulator
Loading...
Searching...
No Matches
DestinationController Class Reference

Controller for the Destination of the Ego vehicle. More...

Inheritance diagram for DestinationController:

Public Member Functions

void Init (EgoViewController ego, Color color, bool placed=false)
 Initialize the controller with an EgoViewController and a color.
 
void Destroy ()
 Destroys the GameObject.
 
void SetColor (Color color)
 Sets the color of the Destination GameObject.
 
bool IsPlaced ()
 Returns whether the Destination has been placed or not.
 
void Update ()
 Updates the position of the Destination based on the mouse position.
 
void OnMouseDown ()
 Called when the Destination GameObject is clicked. Places the vehicle if it is not placed yet.
 
void Deselect ()
 Deselects the waypoint.
 
void Select ()
 Selects the waypoint.
 
void OnMouseDrag ()
 Called when the Destination GameObject is being dragged.
 

Public Attributes

Material selectionMaterial
 

Detailed Description

Controller for the Destination of the Ego vehicle.

Member Function Documentation

◆ Init()

void DestinationController.Init ( EgoViewController  ego,
Color  color,
bool  placed = false 
)
inline

Initialize the controller with an EgoViewController and a color.

Parameters
egoThe EgoViewController to be initialized with.
colorThe color to set the waypoint to.
placedWhether the waypoint has already been placed or not.

◆ IsPlaced()

bool DestinationController.IsPlaced ( )
inline

Returns whether the Destination has been placed or not.

Returns
Whether the Destination has been placed or not.

◆ SetColor()

void DestinationController.SetColor ( Color  color)
inline

Sets the color of the Destination GameObject.

Parameters
colorThe color to set the Destination GameObject to.

The documentation for this class was generated from the following file: