aboutsummaryrefslogtreecommitdiff
path: root/source/GameObject.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/GameObject.hpp')
-rw-r--r--source/GameObject.hpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/GameObject.hpp b/source/GameObject.hpp
index c30b91b..8961d2a 100644
--- a/source/GameObject.hpp
+++ b/source/GameObject.hpp
@@ -24,12 +24,13 @@ public:
};
private:
- std::unique_ptr<EditorAttachment> mEditorAttachment = nullptr;
- GameWorld* mWorld = nullptr;
- GameObject* mParent = nullptr;
+ std::unique_ptr<EditorAttachment> mEditorAttachment;
+ GameWorld* mWorld;
+ GameObject* mParent;
PodVector<GameObject*> mChildren;
- glm::quat mRot{};
- glm::vec3 mPos{};
+ glm::quat mRot;
+ glm::vec3 mPos;
+ glm::vec3 mScale;
Kind mKind;
protected:
@@ -64,12 +65,15 @@ public:
EditorAttachment* GetEditorAttachment() const { return mEditorAttachment.get(); }
void SetEditorAttachment(EditorAttachment* attachment) { mEditorAttachment.reset(attachment); }
- const glm::vec3& GetPos();
+ const glm::vec3& GetPos() const;
void SetPos(const glm::vec3& pos);
const glm::quat& GetRotation() const;
void SetRotation(const glm::quat& rotation);
+ const glm::vec3& GetScale() const;
+ void SetScale(const glm::vec3& scale);
+
// Visuals
virtual std::span<const RenderObject> GetRenderObjects() const;