This commit is contained in:
2025-05-13 02:50:08 +03:00
parent 20b4502be5
commit 9af2bb814e
102 changed files with 259423 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef BoundsView_h__
#define BoundsView_h__
#include "ObjectsFactory.h"
LOBJECT(BoundsView, Component)
public:
void tick(float deltaTime) override {
LEngine::Instance()->GetActiveScene()->GetGizmos().SetMatrix(transform()->GetGlobalTransform());
LEngine::Instance()->GetActiveScene()->GetGizmos().DrawBounds(gameObject->GetComponent<MeshRenderer>()->GetMesh()->GetBounds());
}
};
#endif // BoundsView_h__