Box2D Forum Archive
Search Settings
Home › Box2D › General Discussion

Determining which segment in a loop shape was collided with

General Discussion
A architekt
Oct 4, 2010 14:31
Is there a simple way to see which segment in a loop shape a collision occurred with? Thanks.
A architekt
Oct 4, 2010 14:47
Ah, nevermind. You can apparently just query GetChildIndexA/B from a contact in PreSolve. That does the trick.

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

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