Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add (optional) automatic entity killing when outside scene boundaries #38

Closed
ensisoft opened this issue Aug 27, 2021 · 0 comments
Closed
Labels

Comments

@ensisoft
Copy link
Owner

ensisoft commented Aug 27, 2021

Add (optional) automatic entity killing when outside scene boundaries.
There are 2 ways to kill entities that fall outside of game play (imagine for example a falling body that falls through the scene and no longer contributes to the game play). Either the game makes sure that the entity is killed when some criteria is met such as falling to a distance of X meters from the "baseline" in game. But this can be tedious and error prone depending on the exact use case.

Alternative would be to have the game (scene) define a "hard" boundary and any entity completely outside these bounds would then be automatically killed.

Obvious reasons for this killing are

  • performance, get rid of entities that no longer contribute to the game play
  • stability of the game in for example physics simulation, at some point the floats and the physics sim would blow up potentially creating unexpected events in the game.
@ensisoft ensisoft changed the title Add (optional) automatic physics culling Add (optional) automatic entity killing when outside scene boundaries Feb 1, 2022
ensisoft added a commit that referenced this issue Feb 1, 2022
Kill entities that are outside of scene boundaries in PostUpdate
and when entity has the right flag set.

Issue #38
ensisoft added a commit that referenced this issue Feb 1, 2022
Kill entities that are outside of scene boundaries in PostUpdate
and when entity has the right flag set.

Issue #38
@ensisoft ensisoft closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant