First GBox2D classes and tutorial were really useful. I don't know if there is a way for update the position of GB2Sprites, but if the answer is no, this could be a good addition to your classes.
I just add the code below inside the GB2Engine.mm inside the update method
Hi.
First GBox2D classes and tutorial were really useful. I don't know if there is a way for update the position of GB2Sprites, but if the answer is no, this could be a good addition to your classes.
I just add the code below inside the GB2Engine.mm inside the update method
This way the physic position of the object is in sync with the visual position.
But this will only works if you are using Box2D for collision detection only.
I also add this to the GB2Node.h
And this to de GB2Node.mm
Thanks and sorry if anything i said sounds weird but i'm not english native speaker.
Saludos