new CarProfile(objOrFuel, mass, maxSpeed)
A class that represents a profile for a car, including its fuel type, mass, and maximum speed.
Parameters:
PropertiesName | Type | Description |
---|---|---|
objOrFuel | Module. | If the first argument is an instance of |
mass | number | The mass of the car. |
maxSpeed | number | The maximum speed of the car. |
Name | Type | Description |
---|---|---|
fuel | gem. | The fuel type of the car. |
mass | number | The mass of the car. |
maxSpeed | number | The maximum speed of the car. |
- Source
Example
```javascript
let carProfile = new gem.routesAndNavigation.CarProfile(gem.routesAndNavigation.EFuelType.FT_Petrol, 1500, 200);
console.log(carProfile.fuel); // Outputs: FT_Petrol
console.log(carProfile.mass); // Outputs: 1500
console.log(carProfile.maxSpeed); // Outputs: 200
```
Extends
Methods
delete()
calls emscripten object destructor
- Inherited From
getRawPointer() → {object}
Returns emscripten object
- Inherited From
Returns:
- Type:
- object
isDeleted() → {boolean}
Check if emscripten object has been deleted
- Inherited From
Returns:
- Type:
- boolean