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
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