Class Vehicle
-
-
Field Summary
Fields Modifier and Type Field Description private final DoubleeffVelocityInMPerSprivate final DoubleeffVelocityInKmPHprivate final DoubleeffVelocityInMPHprivate final DoubleeffAccelerationInMPerSSquaredprivate final SpeedLimitapplicableSpeedLimitprivate final Integeridprivate final TickDatatickDataprivate DoublepositionOnLaneprivate Lanelaneprivate final StringtypeIdprivate BooleanegoVehicleprivate final Locationlocationprivate final Vector3DforwardVectorprivate final Rotationrotationprivate Vector3Dvelocityprivate Vector3Daccelerationprivate final Vector3DangularVelocity
-
Method Summary
Modifier and Type Method Description final DoublegetEffVelocityInMPerS()final DoublegetEffVelocityInKmPH()final DoublegetEffVelocityInMPH()final DoublegetEffAccelerationInMPerSSquared()final SpeedLimitgetApplicableSpeedLimit()IntegergetId()The identifier of the vehicle. TickDatagetTickData()TickData. final DoublegetPositionOnLane()The Vehicle's position in the Lane. final UnitsetPositionOnLane(Double positionOnLane)The Vehicle's position in the Lane. final LanegetLane()The Vehicle's Lane. final UnitsetLane(Lane lane)The Vehicle's Lane. final StringgetTypeId()The type identifier. final BooleangetEgoVehicle()Whether this is the own vehicle. final UnitsetEgoVehicle(Boolean egoVehicle)Whether this is the own vehicle. final LocationgetLocation()The Location of the vehicle. final Vector3DgetForwardVector()The current forward vector. final RotationgetRotation()The Rotation of the vehicle. final Vector3DgetVelocity()The current velocity in m/s. final UnitsetVelocity(Vector3D velocity)The current velocity in m/s. final Vector3DgetAcceleration()The current acceleration m/s². final UnitsetAcceleration(Vector3D acceleration)The current acceleration m/s². final Vector3DgetAngularVelocity()The current angular velocity. Actorclone(TickData newTickData)Clones the actor. StringtoString()Booleanequals(Object other)-
-
Method Detail
-
getEffVelocityInMPerS
final Double getEffVelocityInMPerS()
-
getEffVelocityInKmPH
final Double getEffVelocityInKmPH()
-
getEffVelocityInMPH
final Double getEffVelocityInMPH()
-
getEffAccelerationInMPerSSquared
final Double getEffAccelerationInMPerSSquared()
-
getApplicableSpeedLimit
final SpeedLimit getApplicableSpeedLimit()
-
getTickData
TickData getTickData()
-
getPositionOnLane
final Double getPositionOnLane()
-
setPositionOnLane
final Unit setPositionOnLane(Double positionOnLane)
-
getEgoVehicle
final Boolean getEgoVehicle()
Whether this is the own vehicle.
-
setEgoVehicle
final Unit setEgoVehicle(Boolean egoVehicle)
Whether this is the own vehicle.
-
getLocation
final Location getLocation()
The Location of the vehicle.
-
getForwardVector
final Vector3D getForwardVector()
The current forward vector.
-
getRotation
final Rotation getRotation()
The Rotation of the vehicle.
-
getVelocity
final Vector3D getVelocity()
The current velocity in m/s.
-
setVelocity
final Unit setVelocity(Vector3D velocity)
The current velocity in m/s.
-
getAcceleration
final Vector3D getAcceleration()
The current acceleration m/s².
-
setAcceleration
final Unit setAcceleration(Vector3D acceleration)
The current acceleration m/s².
-
getAngularVelocity
final Vector3D getAngularVelocity()
The current angular velocity.
-
clone
Actor clone(TickData newTickData)
Clones the actor.
- Parameters:
newTickData- New TickData to copy to new object.
-
-
-
-