Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
arrowhudgetvoxels.h
1 #pragma once
2 
3 #include <vector>
4 
5 #include "voxel/voxelcluster.h"
6 #include "property/property.h"
7 
8 
9 class ObjectHudget;
10 class Ray;
11 
13 public:
16 
17  ObjectHudget* hudget();
18 
19  void draw();
20 
21  void setTargeted(bool targeted);
22 
23  void updateDirection(glm::vec3 direction);
24 
25  bool findPointOnEdge();
26 
27  virtual bool isAt(const Ray& ray) const;
28 
29 
30 protected:
31  ObjectHudget* m_hudget;
32  mutable VoxelCluster m_arrow;
33 
34  Property<float> prop_arrowDistance;
35 
36  glm::vec3 m_targetPoint;
37 
38 
39  bool findPoint();
40 
41  float vectorAngleToPlane(glm::vec3 vector, glm::vec3 planeNormal);
42  float vectorAngleToVector(glm::vec3 vector, glm::vec3 vector2);
43 };
44 
Definition: arrowhudgetvoxels.h:12
Definition: voxelcluster.h:21
Definition: objecthudget.h:15
Definition: ray.h:12