![]() |
VR-Forces 5.0.3 Developer's Guide
|
A container for constants that define the path of a vehicle on the road in terms of design-vehicles and design-drivers. See also the road design constants used for interpreting road features in DtRoadSegment.
To use the constants, first get the static object containing the constants and then use the member functions. Ie
DtRoadConstants *c = DtRoadConstants::instance(); double maxG = c->maxDesignDriverLateralAcceleration_G();
Public Member Functions | |
| ~DtRoadConstants () | |
Constants | |
These functions proved access to individual constants. Override to change how the road path geometry is constructed (ie the curved paths) and what driving decisions assume about other drivers. | |
| virtual double | maxDesignDriverLateralAcceleration_G () const |
| virtual double | maxDesignDriverSpeed () const |
| virtual double | typicalMaxSpeedLimitExceedFactor () const |
| virtual double | minDesignVehicleTurnRadius () const |
| virtual double | maxDesignVehicleWidth () const |
| virtual double | maxDesignVehicleLength () const |
| virtual double | default1LaneSpeedLimit () const |
| virtual double | default2LaneSpeedLimit () const |
| virtual double | default3LaneSpeedLimit () const |
Static Public Member Functions | |
| static DtRoadConstants * | instance () |
| static void | setStaticRoadConstants (DtRoadConstants *) |
Protected Member Functions | |
| DtRoadConstants () | |
Static Protected Attributes | |
| static DtRoadConstants * | theRoadConstants |
|
protected |
| DtRoadConstants::~DtRoadConstants | ( | ) |
|
static |
This method is used to access the constants.
|
static |
|
inlinevirtual |
Typical value (see AASHTO Green Book), civilian driver comfort level. In Gs. This is used as an assumption about other drivers when making driving decisions.
Default value 0.15
|
inlinevirtual |
This parameter helps determine the curve between segments when the bend is very slight.
Default value 35.7
|
inlinevirtual |
This is the factor that is multiplied by the road speed limit to predict the maximum speed of another vehicle on the road, for purposes of computing how far away to look for an approaching vehicle.
Default value 1.2
|
inlinevirtual |
The smallest turn radius that the logic assumes for roads. This is the radius that paths will use at intersections, for example. In meters.
This should be about 8.37' for a 40' bus, which is an appropriate design target. However, small roads with sharp bends in them such as the hill road in VR-Village have smaller turn radii than this, and the driving path logic does not work correctly.
|
inlinevirtual |
Default value 2.44.
|
inlinevirtual |
Default value 12.2.
|
inlinevirtual |
Speed limits assumed when the rail segment limit is just a default value. The number of lanes here is the number of lanes in the road segment, i.e. the number in one direction. Note 60 kph = 16.67mps, 80kph = 22.22mps, 100kph = 27.78mps.
Default value 16.67
|
inlinevirtual |
Default value 22.22.
|
inlinevirtual |
Default value 27.78.
|
staticprotected |
The road constants are constant during run time. Only one copy is maintained, in this static variable.