*
This commit is contained in:
@@ -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__
|
||||
Reference in New Issue
Block a user