Closed RossNordby closed 5 years ago
After adding an UnsafeManifoldViewer (8ee8de044f4ffe954fdfdba60af31dec73295eaa) for raw access with the intention of wrapping it in enumerators for ease of use, I've become increasingly dubious about pulling contact data from the solver.
The ContactLineExtractor in the demos shows a way of pulling contact data out of the solver for users interested in that sort of usage.
For now, I'm backing out the UnsafeManifoldViewer and focusing on the contact callback usability.
dd2e55526c08f66ad33420afd221e168caaae70d has a ContactEventsDemo. Combined with the contact line extractor in the DemoRenderer, this is about as far as I think I'll go for the first release.
While the engine does not track collision data outside of generated constraints, a way to enumerate a body's existing contact constraints interpreted as contacts would be convenient for application logic. Contact mutability is a questionmark; contact callbacks are the best place for that logic, but we could still expose it in the enumerator.
It would also be nice to have an example in the demos showing how to use contact callbacks to capture collision information in cases where constraints are not being generated.