Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
inertiafollower.h
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 #include <glm/gtx/quaternion.hpp>
5 
6 
8 public:
9  InertiaFollower(float directionalInertia, float angularInertia);
10 
11  const glm::vec3& position() const;
12  void setPosition(const glm::vec3& position);
13 
14  const glm::quat& orientation() const;
15  void setOrientation(const glm::quat& orientation);
16 
17  void follow(const glm::vec3& targetPosition, const glm::quat& targetOrientation, float deltaSec);
18 
19 
20 protected:
21  glm::vec3 m_position;
22  float m_directionalInertia;
23 
24  glm::quat m_orientation;
25  float m_angularInertia;
26 };
Definition: inertiafollower.h:7