Entity representing an adversary (Vehicle, Motorcycle, Bike, or Pedestrian) with a pre-defined behavior in simulation (not AI) /summary>
More...
|
| Adversary (Location spawnPoint, double initialSpeedKMH, AdversaryCategory category, EntityModel model, Path path, Color color, StartPathInfo startRouteInfo=null) |
| Constructor for the Adversary class /summary> param name="spawnPoint">The location of the adversary's spawn pointparam name="initialSpeedKMH">The initial speed of the adversary in kilometers per hourparam name="category">The category of the adversary (Vehicle, Motorcycle, Bike, or Pedestrian)param name="model">The model of the adversaryparam name="path">The path of the adversaryparam name="startRouteInfo">Information about how and when the path of the adversary's vehicle is started, if null it starts after 0 sec
|
|
void | setModel (EntityModel model) |
|
void | setCategory (AdversaryCategory category) |
|
object | Clone () |
|
| BaseEntity (string id, Location spawnPoint, double initialSpeedKMH, Color color) |
| Creates a new BaseEntity object with an Id, SpawnPoint, and initial speed.
|
|
| BaseEntity () |
| Creates a new BaseEntity object with empty values.
|
|
void | setPosition (float x, float y) |
| Sets the position of the BaseEntity object.
|
|
void | setRotation (float angle) |
| Sets the rotation angle of the BaseEntity object.
|
|
void | setView (IBaseEntityView view) |
| Sets the view of the BaseEntity object.
|
|
void | setColor (Color c) |
| Sets the color of the BaseEntity object.
|
|
Location | getCarlaLocation () |
| Returns the location of the BaseEntity object in CARLA coordinates.
|
|
Entity representing an adversary (Vehicle, Motorcycle, Bike, or Pedestrian) with a pre-defined behavior in simulation (not AI) /summary>
◆ Adversary()
Constructor for the Adversary class /summary> param name="spawnPoint">The location of the adversary's spawn pointparam name="initialSpeedKMH">The initial speed of the adversary in kilometers per hourparam name="category">The category of the adversary (Vehicle, Motorcycle, Bike, or Pedestrian)param name="model">The model of the adversaryparam name="path">The path of the adversaryparam name="startRouteInfo">Information about how and when the path of the adversary's vehicle is started, if null it starts after 0 sec
summary> Default constructor for the Adversary class /summary>
◆ resetAutoIncrementID()
static void Entity.Adversary.resetAutoIncrementID |
( |
| ) |
|
|
inlinestatic |
summary> Sets the model of the adversary /summary> param name="model">The model to set for the adversary
◆ setCategory()
summary> Creates a clone of the adversary object (deep copy) /summary> returns>A cloned (deepcopy) adversary object
◆ setModel()
summary> Sets the category of the adversary /summary> param name="category">The category to set for the adversary
The documentation for this class was generated from the following file:
- C:/Users/stefa/source/repos/AI_Testing_Simulator/Unity/Assets/Entities/Adversary.cs