aivehicle.h
来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 31 行
H
31 行
#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 + =
减小字号Ctrl + -
显示快捷键?