Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
movement.h
1 #pragma once
2 
3 #include <list>
4 #include <glm/glm.hpp>
5 
6 #include "geometry/transform.h"
7 
8 
9 class WorldObject;
10 class CollisionDetector;
11 
12 class Movement {
13 
14 
15 public:
16  Movement(WorldObject& worldObject, const Transform& originalTransform, const Transform& targetTransform);
17  virtual ~Movement();
18 
19  bool perform();
20 
21 
22 protected:
23  WorldObject& m_worldObject;
24  CollisionDetector& m_collisionDetector;
25  Transform m_originalTransform;
26  Transform m_targetTransform;
27  float m_distance;
28 
29  bool performSplitted();
30  bool performStepped();
31  int calculateStepCount();
32  Transform calculateStep(int s, int stepCount) const;
33 };
34 
Definition: worldobject.h:43
Definition: movement.h:12
Definition: collisiondetector.h:19
Definition: transform.h:9