couch/core/Transform.cpp

14 lines
255 B
C++
Raw Normal View History

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