buffering inside b2contactlistener

Hi,

when deriving b2contactlistener, I can not make any "physics" logic inside those callback, because I can not modify the world. User manual says to make a deep copy of incoming stuff and perform action after physics step. But how exactly can I make a deep copy of incoming b2Contact* when b2Contact is an abstract class and can not be instantiated?

Thank you very much
No, just make a copy of the data you need. You game object ids, contact points, normals, impulses, etc.
Thank you very much Erin!

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