diff options
author | hnOsmium0001 <[email protected]> | 2022-05-07 15:36:35 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-05-07 15:36:35 -0700 |
commit | 18b0c0e122f04b840f563862c5c1e4b2934b55c1 (patch) | |
tree | dfe167f5829a8c238584ef123691bc88f54251b3 /source/GameObject.hpp | |
parent | d98a4159d86406a47628aa58bae9f3308fea4fd0 (diff) |
Fix camera view matrix, [WIP] guizmo
Diffstat (limited to 'source/GameObject.hpp')
-rw-r--r-- | source/GameObject.hpp | 16 |
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; |