Box2D Forum Archive
Search Settings
Home › Box2D › General Discussion

List of touching bodies

General Discussion
J josemarin2
Jul 31, 2009 04:42
Hi.

How to get a list of all bodies that touches a selected body?

Only using contact listener?

Thanks

Jose
E Erin Catto
Jul 31, 2009 13:47
The current rev in SVN has b2Body::GetConactList. If you don't use the listener, you may miss some contacts that occur in the middle of the time step.

Original thread: https://box2d.org/forum/viewtopic.php?t=3497

This is an unofficial, read-only archive preserved for the community. Original site: https://box2d.org

Want your posts removed? See removal requests or email [email protected]. · Preserved with Forum Ark · Privacy · About