Controller for the Destination of the Ego vehicle.
More...
|
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.
|
|
|
Material | selectionMaterial |
|
Controller for the Destination of the Ego vehicle.
◆ Init()
void DestinationController.Init |
( |
EgoViewController |
ego, |
|
|
Color |
color, |
|
|
bool |
placed = false |
|
) |
| |
|
inline |
Initialize the controller with an EgoViewController and a color.
- Parameters
-
ego | The EgoViewController to be initialized with. |
color | The color to set the waypoint to. |
placed | Whether 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
-
color | The color to set the Destination GameObject to. |
The documentation for this class was generated from the following file:
- C:/Users/stefa/source/repos/AI_Testing_Simulator/Unity/Assets/Scripts/ViewControllers/DestinationController.cs