summaryrefslogtreecommitdiff
path: root/assetFactory/mutation.cpp
blob: 21d2a2484f733befda8c23d6041e98f32185c0e1 (plain)
1
2
3
4
5
6
7
8
9
10
#include "mutation.h"
#include <glm/gtx/transform.hpp>
#include <maths.h>

Mutation::Matrix
Mutation::getMatrix() const
{
	return glm::translate(glm::identity<Matrix>(), position) * rotate_ypr(rotation)
			* glm::scale(glm::identity<Matrix>(), scale);
}