Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
inertiafollower.h
1
#pragma once
2
3
#include <glm/glm.hpp>
4
#include <glm/gtx/quaternion.hpp>
5
6
7
class
InertiaFollower
{
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
};
InertiaFollower
Definition:
inertiafollower.h:7
src
utils
inertiafollower.h
Generated on Sun Mar 30 2014 13:32:31 for Voxellancer by
1.8.6