couch/core/Transform.cpp

15 lines
302 B
C++
Raw Normal View History

2021-01-13 10:42:57 -06:00
#include "Transform.h"
Transform::Transform() {
position = Vector3(0.0f);
}
2021-01-13 20:08:39 -06:00
Transform::Transform(Vector3 position, Vector3 rotation) {
2021-01-13 10:42:57 -06:00
this->position = position;
2021-01-13 20:08:39 -06:00
this->rotation = rotation;
2021-01-13 10:42:57 -06:00
}
2021-01-13 16:47:16 -06:00
void Transform::Translate(cfloat x, cfloat y, cfloat z) {
position = position + Vector3(x, y, z);
}