feat: add functions to set visual properties for nodes including model, texture, color, dimensions, and entity type

This commit is contained in:
MayaTheShy
2025-11-08 20:39:52 -05:00
parent b7718a033e
commit f5bc5cd5ed

View File

@@ -27,6 +27,13 @@ public:
// Update a node's transform. Returns false if the node doesn't exist.
bool updateNodeTransform(NodeId id, const glm::mat4& transform);
// Set visual properties for a node
bool setNodeModel(NodeId id, const std::string& modelUrl);
bool setNodeTexture(NodeId id, const std::string& textureUrl);
bool setNodeColor(NodeId id, const glm::vec3& color, float alpha = 1.0f);
bool setNodeDimensions(NodeId id, const glm::vec3& dimensions);
bool setNodeEntityType(NodeId id, uint8_t entityType);
// Remove a node. Returns false if the node doesn't exist.
bool removeNode(NodeId id);