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

📄 aivehicle.h

📁 Racing and Sports AI很好的游戏AI算法源码!
💻 H
字号:
#ifndef VEHICLE_H
#define VEHICLE_H

#include "aiMath.h"
#include "aiObstacle.h"

class Vehicle : public aiObstacle 
{
	public:
		Vehicle(){};
		void Reset();
		void Init(int nId,char* pGeoFile);

		bool Stuck();			// return true when the vehicle is stuck.

		void SetSteering(float fSteering);
		void SetBrake(float m_fBrake);
		void SetThrottle(float m_fThrottle);
		void SetTransmissionToReverse();

		Matrix34& GetMatrix();	// Return the vehicle's orientation/position matrix
		Vector3 GetBoxMin();	// Get the bounding box information.
		Vector3 GetBoxMax();
		float Speed();			// Return the vehicles current speed

		int GetRoomId();		// Return the current room that this vehicle is in.

};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -