blob: aeda2eb5b1316edd1c3df174e562d6f10f25ba28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#include <libultraship/libultraship.h>
#include "GameObject.h"
namespace TrackEditor {
GameObject::GameObject(FVector pos, IRotator rot, FVector scale, const char* model, std::vector<Triangle> triangles, CollisionType collision, float boundingBoxSize) {
Pos = pos;
Rot = rot;
Scale = scale;
Model = model;
Triangles = triangles;
Collision = collision;
BoundingBoxSize = boundingBoxSize;
}
GameObject::GameObject() {};
void GameObject::Draw(){};
void GameObject::Tick(){};
FVector GameObject::GetLocation() const {
return Pos;
};
IRotator GameObject::GetRotation() const {
return Rot;
}
FVector GameObject::GetScale() const {
return Scale;
}
void GameObject::Translate(FVector pos) {
Pos = pos;
};
void GameObject::Rotate(IRotator rot) {
Rot = rot;
};
void GameObject::SetScale(FVector scale) {
Scale = scale;
};
} // namespace TrackEditor
|