1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-12 22:02:49 +01:00
openrw/rwengine/include/ai/PlayerController.hpp
2014-06-06 17:17:39 +01:00

40 lines
682 B
C++

#pragma once
#ifndef _PLAYERCONTROLLER_HPP_
#define _PLAYERCONTROLLER_HPP_
#include <ai/CharacterController.hpp>
class PlayerController : public CharacterController
{
glm::quat cameraRotation;
glm::vec3 direction;
glm::vec3 _rawDirection;
glm::quat lastRotation;
bool running;
public:
PlayerController(CharacterObject* character);
void setRunning(bool run);
void updateCameraDirection(const glm::quat& rot);
void updateMovementDirection(const glm::vec3& pos, const glm::vec3& rawdirection);
void exitVehicle();
void enterNearestVehicle();
virtual void update(float dt);
virtual glm::vec3 getTargetPosition();
void jump();
};
#endif