aiobstacle.h
来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 33 行
H
33 行
#ifndef AI_OBSTACLE_H
#define AI_OBSTACLE_H
class Vector3;
class Matrix34;
class aiPath;
class aiObstacle
{
public:
aiObstacle(float Front,float Back,float LSide,float RSide,Matrix34 *pMatrix);
~aiObstacle();
bool IsBlockingTarget(Vector3& Pos,Vector3& Target,float fMaxDist,float fVWidth);
void PreAvoid(const Vector3& Pos,const Vector3& Heading,float fVehHWidth,Vector3& LTarget,Vector3& RTarget);
int CurrentRoadIdx(aiPath **ppRoads,bool baDir[3],int *pnVIdx);
void Position(Vector3& Pos);
aiObstacle* NextObstacle(); // return the next obstacle in the current chain.
protected:
Matrix34 *m_pMatrix;
float m_fFrontBumperDistance;
float m_fBackBumperDistance;
float m_fLSideDistance;
float m_fRSideDistance;
aiObstacle *m_pNObstacle;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?