internal: store bounding box with SceneAsset rather than recalculating from renderables

This commit is contained in:
Nick Fisher
2025-01-07 12:02:44 +08:00
parent 124eed0264
commit 0e5253f7b3
12 changed files with 78 additions and 25 deletions

View File

@@ -48,6 +48,10 @@ public:
const Entity* getChildEntities() override;
Entity findEntityByName(const char* name) override;
const filament::Aabb getBoundingBox() const override {
return filament::Aabb();
}
private:
Engine& _engine;
utils::Entity _gridEntity;