![]() |
VR-Forces 4.1.1 Class Documentation
|
This path metric requires an entity with a DtMovingObjectStateRepository. More...

Public Member Functions | |
| * | DtSurfaceEntityPathMetric (DtVrfObject *entity) |
| **virtual | ~DtSurfaceEntityPathMetric () |
| **virtual bool | init () |
| *****virtual double | transitionCost (const DtPoint &startPoint,*const DtPoint &endPoint) const |
| Calculates the cost of moving directly from startPoint to endPoint. | |
| ***virtual double | turningCost (double cosAngle) const |
| Returns a cost based on the turning radius of the vehicle. | |
| ******virtual void | setTerrainSampleDistance (double distance) |
| Sets the distance between terrain sample points used when. | |
| ***virtual double | terrainSampleDistance () const |
| Returns the current terrain sample distance. | |
Static Public Member Functions | |
| **static DtPathMetric * | creator (DtVrfObject *entity) |
Protected Attributes | |
| *DtPhysicalWorld * | myPhysicalWorld |
| *double | myTerrainSampleDistance |
This path metric requires an entity with a DtMovingObjectStateRepository.
and checks that that each point that is passed return true for isWaterSurface. Returned cost is the distance along the path, or -1 if the surface is not water.
| * DtSurfaceEntityPathMetric::DtSurfaceEntityPathMetric | ( | DtVrfObject * | entity | ) |
|
virtual |
|
virtual |
|
virtual |
Calculates the cost of moving directly from startPoint to endPoint.
Returns the actual distance if the surface is water, or -1 if any part of the sampled path is not water.
|
virtual |
Returns a cost based on the turning radius of the vehicle.
|
virtual |
Sets the distance between terrain sample points used when.
calculating the cost of moving between two points. This distance will be the average used. Default is 5.
|
virtual |
Returns the current terrain sample distance.
|
static |
|
protected |
|
protected |