mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add on_update event
This commit is contained in:
parent
bb1c0b4b44
commit
982c8b132d
7 changed files with 41 additions and 10 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue