summaryrefslogtreecommitdiff
path: root/src/engine/editor/GameObject.cpp
blob: 30a1722f4df5fb64c7f2b796e032b4bc6c0e3264 (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 Editor {

    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 Editor