defold / defold

Defold is a completely free to use game engine for development of desktop, mobile and web games.
https://www.defold.com
Other
4.15k stars 297 forks source link

Add QueryAABB to physics api #8970

Open rigo128 opened 4 months ago

rigo128 commented 4 months ago

Problem: Getting a list of objects from the physical world in a certain zone.

Use cases:

Possible solution: Using QueryAABB() from box2d. https://box2d.org/documentation/classb2_world.html#ad169fae775be1e1f16386f7587786fa8

zarkua commented 4 months ago

Yes

aglitchman commented 1 month ago

It would be really nice to have such an API in the physics API. Because I'm making a game with a lot of units right now and I had to switch away from built-in physics for that reason alone.