DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D
http://www.reactphysics3d.com
zlib License
1.54k stars 224 forks source link

Get all objects overlapped by sphere #342

Closed ghost closed 5 months ago

ghost commented 1 year ago

I'd like to find all objects within a sphere in the dworld. Best way I've found is to PhysicsWorld::testOverlap but that involves adding a CollisionShape to a Body to get a Collider - is there not a quicker way?

DanielChappuis commented 1 year ago

Yes sorry that is currently the way to do it. I plan to simplify this in the future to have better API to perform world queries.

DanielChappuis commented 5 months ago

I am closing this issue. Do not hesitate to reopen it if necessary.