Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
flytotask.h
1 #pragma once
2 #include <set>
3 
4 #include "glm/glm.hpp"
5 
6 #include "ai/aitask.h"
7 
8 
9 class BoardComputer;
10 class WorldObject;
11 
12 class FlyToTask : public AiTask {
13 public:
14  FlyToTask(BoardComputer* boardComputer);
15 
16  void setTargetPoint(const glm::vec3& point, const glm::vec3& up = glm::vec3(0,0,0));
17 
18  virtual void update(float deltaSec) override;
19 
20  virtual bool isFinished();
21 
22 
23 protected:
24  glm::vec3 m_targetPoint;
25  glm::vec3 m_targetUp;
26  float m_minDistance;
27 };
28 
Definition: aitask.h:15
Definition: worldobject.h:43
Definition: flytotask.h:12
Definition: boardcomputer.h:19