⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aiobstacle.h

📁 Racing and Sports AI很好的游戏AI算法源码!
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -