Hi,
I know this is probaly a stupid question. I recently discovered Box2D and writing a wrapper of some sort to an engine. I read through the manual, wiki and even forum. I got some basic things working. However, I cant seem to find out how to implement listeners.
I basically want to have a good way of deleting bodies when I dont need it anymore (if out of boundaries, delete the boxes etc). I know about the bounderieslistener and stuff. BUT, i am completely new in C++. I did some C in dos, but not ++. So basically, I dunno what is going on in the manual regarding the listener. I dunno how to set up listeners and how to retrieve results.
Is listener like objects? like b2Listener* mylistener = new b2Listener? then world->setuplistener(mylistener)?
I understand what listener is, I know how it works. I just dunno how to...code it in C++. I am learning C++ as I go. Any pointers or hints would be apprecitated. Sorry for the trouble.
I know this is probaly a stupid question. I recently discovered Box2D and writing a wrapper of some sort to an engine. I read through the manual, wiki and even forum. I got some basic things working. However, I cant seem to find out how to implement listeners.
I basically want to have a good way of deleting bodies when I dont need it anymore (if out of boundaries, delete the boxes etc). I know about the bounderieslistener and stuff. BUT, i am completely new in C++. I did some C in dos, but not ++. So basically, I dunno what is going on in the manual regarding the listener. I dunno how to set up listeners and how to retrieve results.
Is listener like objects? like b2Listener* mylistener = new b2Listener? then world->setuplistener(mylistener)?
I understand what listener is, I know how it works. I just dunno how to...code it in C++. I am learning C++ as I go. Any pointers or hints would be apprecitated. Sorry for the trouble.