couch/core/Transform.cpp
Dane Johnson e9a669eebe Rotation
2021-01-13 20:08:39 -06:00

15 lines
302 B
C++

#include "Transform.h"
Transform::Transform() {
position = Vector3(0.0f);
}
Transform::Transform(Vector3 position, Vector3 rotation) {
this->position = position;
this->rotation = rotation;
}
void Transform::Translate(cfloat x, cfloat y, cfloat z) {
position = position + Vector3(x, y, z);
}