![]() |
VR-Forces 4.1 Class Documentation
|

Public Member Functions | |
| DtModifierGroundPlatformDetectAccident () | |
| virtual void | ReInit () |
| virtual KyBool | DetectAccident () |
| virtual void | Update () |
| KyFloat32 | AccidentRatio () const |
| void | AccidentRatio (KyFloat32 val) |
Protected Member Functions | |
| virtual void | OnSetPathFinder () |
Protected Attributes | |
| KyFloat32 | m_accidentRatio |
| Vec3f | m_predictedPosition |
| KyFloat32 | m_predictionDate |
| KyFloat32 | m_straightDistToSubgoal |
| KyFloat32 | m_coverDistToSubgoal |
| Vec3f | m_currentNodePosition |
| Vec3f | m_previousPosition |
| KyFloat32 | m_predictedDistance |
This implementation of the IDetectAccident interface detects accidents in the following case. All other accident detection have been removed. If the Bot appears to be moving away from its current target PathNode, DtModifierGroundPlatformDetectAccident will assume that it cannot proceed as expected. At the end of each frame, if the current PathNode maintained by the PathFinder has changed, the Update() method stores the distance to that PathNode. If the Bot travels a total distance that is more than four times greater than that initial distance, an accident is deemed to have occurred.
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Retrieves the value set through a call to AccidentRatio(KyFloat32).
|
inline |
Determines how responsive DtModifierGroundPlatformDetectAccident is to mismatches between the actual and expected positions of the Bot. See the class description above for details. any positive value 0.5f
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |