ADD: object movement system

This commit is contained in:
2025-11-24 17:54:39 +09:00
parent 7ec4b16502
commit 3c3137258d
5 changed files with 144 additions and 9 deletions

View File

@@ -95,6 +95,8 @@ public:
void addMeshInstance(const std::string &name, std::shared_ptr<MeshAsset> mesh,
const glm::mat4 &transform = glm::mat4(1.f),
std::optional<BoundsType> boundsType = {});
bool getMeshInstanceTransform(const std::string &name, glm::mat4 &outTransform);
bool setMeshInstanceTransform(const std::string &name, const glm::mat4 &transform);
bool removeMeshInstance(const std::string &name);
void clearMeshInstances();
@@ -108,6 +110,7 @@ public:
void addGLTFInstance(const std::string &name, std::shared_ptr<LoadedGLTF> scene,
const glm::mat4 &transform = glm::mat4(1.f));
bool removeGLTFInstance(const std::string &name);
bool getGLTFInstanceTransform(const std::string &name, glm::mat4 &outTransform);
bool setGLTFInstanceTransform(const std::string &name, const glm::mat4 &transform);
void clearGLTFInstances();