add on_update event

This commit is contained in:
MihailRis
2024-06-29 22:19:42 +03:00
parent bb1c0b4b44
commit 982c8b132d
7 changed files with 41 additions and 10 deletions
+4
View File
@@ -86,6 +86,10 @@ void Entities::updatePhysics(float delta){
}
}
void Entities::update() {
scripting::on_entities_update();
}
void Entities::renderDebug(LineBatch& batch) {
batch.lineWidth(1.0f);
auto view = registry.view<Transform, Rigidbody>();