Carpenter Engine
A C++ game engine with a build once run anywhere solution
Loading...
Searching...
No Matches
GameObject.hpp
1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5 */
6
7#ifndef ENGINE_GAMEOBJECT
8#define ENGINE_GAMEOBJECT
9
10#include "Node.hpp"
11
12namespace Engine {
13
50 class GameObject : public Node {
51 public:
52
53 Vec3f Position{0.0f, 0.0f, 0.0f};
54 Vec3f Scale{1.0f, 1.0f, 1.0f};
55 Vec3f Rotation{0.0f, 0.0f, 0.0f};
56
62 GameObject(std::string name);
63
70
77 };
78}
79
80#endif
A Game Object loaded in the scene.
Definition GameObject.hpp:50
Vec3f GetGlobalPosition()
Returns the position of the game object relative to the global 0,0.
Definition GameObject.cpp:13
Vec3f GetGlobalRotation()
Returns the overall rotation in respect to any parent game objects.
Definition GameObject.cpp:17
A single node in a game scene.
Definition Node.hpp:43
A 3D vector struct with overloaded operators.
Definition Utils.hpp:86