Creates BaseEntity Object which contains Coord3D SpawnPoint for entities (Veh, Ped)
More...
|
| 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.
|
|
|
string | Id [get, set] |
| The unique identifier of the BaseEntity object.
|
|
Location | SpawnPoint [get, set] |
|
double | InitialSpeedKMH [get, set] |
|
IBaseEntityView | View [get, set] |
|
Creates BaseEntity Object which contains Coord3D SpawnPoint for entities (Veh, Ped)
◆ BaseEntity()
Entity.BaseEntity.BaseEntity |
( |
string |
id, |
|
|
Location |
spawnPoint, |
|
|
double |
initialSpeedKMH, |
|
|
Color |
color |
|
) |
| |
|
inline |
Creates a new BaseEntity object with an Id, SpawnPoint, and initial speed.
- Parameters
-
id | The unique identifier of the BaseEntity object. |
spawnPoint | The Coord3D spawn point of the BaseEntity object. |
initialSpeedKMH | The initial speed of the BaseEntity object in kilometers per hour. |
◆ getCarlaLocation()
Location Entity.BaseEntity.getCarlaLocation |
( |
| ) |
|
|
inline |
Returns the location of the BaseEntity object in CARLA coordinates.
- Returns
- The location of the BaseEntity object in CARLA coordinates.
◆ setColor()
void Entity.BaseEntity.setColor |
( |
Color |
c | ) |
|
|
inline |
Sets the color of the BaseEntity object.
- Parameters
-
c | The new color of the BaseEntity object. |
◆ setPosition()
void Entity.BaseEntity.setPosition |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Sets the position of the BaseEntity object.
- Parameters
-
x | The x coordinate of the new position. |
y | The y coordinate of the new position. |
◆ setRotation()
void Entity.BaseEntity.setRotation |
( |
float |
angle | ) |
|
|
inline |
Sets the rotation angle of the BaseEntity object.
- Parameters
-
angle | The new rotation angle in degrees. |
◆ setView()
Sets the view of the BaseEntity object.
- Parameters
-
view | The new view of the BaseEntity object. |
The documentation for this class was generated from the following file:
- C:/Users/stefa/source/repos/AI_Testing_Simulator/Unity/Assets/Entities/BaseEntity.cs