- const AABB &Bounds() const noexcept { return bounds; }
- void Bounds(const AABB &b) noexcept { bounds = b; }
-
- const glm::vec3 &Position() const noexcept { return position; }
- void Position(const glm::vec3 &p) noexcept { position = p; }
-
- const glm::quat &Orientation() const noexcept { return orientation; }
- void Orientation(const glm::quat &o) noexcept { orientation = o; }
-
- bool HasNodeMesh() const noexcept { return node_mesh; }
- void SetNodeMesh(const EntityMesh *m) noexcept { node_mesh = m; }
-
- const EntityMesh &NodeMesh() const noexcept { return *node_mesh; }
-
- Model &AddPart();
- bool HasParent() const noexcept { return parent; }
- Model &Parent() const noexcept { return *parent; }
- bool IsRoot() const noexcept { return !HasParent(); }
-
- glm::mat4 LocalTransform() const noexcept;
- glm::mat4 GlobalTransform() const noexcept;
+ Part &RootPart() noexcept { return root; }
+ const Part &RootPart() const noexcept { return root; }
+ Part &GetPart(std::size_t i) noexcept { return *part[i]; }
+ const Part &GetPart(std::size_t i) const noexcept { return *part[i]; }