can;t get Position from ofxBox2D Polygon?!

hi all!

i’ve been going crazy with a very strange behaviour on a program i’m writing:

  • I’ve created a custom polygon class inheriting from ofxBox2DPolygon, I created a vector of them and everything works great, I’m able to create and destroy new objects with no prblems but…
    I can;t get the position from the polygon!
    when I call the method myPolygon.getPosition()
    i get zeroes… (0,0).

has anyone had this happening before?
any idea what i might be doing wrong?

thanx!

.r

Have you tried editing some of the example code provided with ofxBox2D to get the same functionality? Can you post your code anywhere?

J