Hey all,
I'm starting a new project, so (in view of the dramatic API changes between the last release and SVN) I am using the SVN version in hopes of futureproofing a little bit.
However, in the past, I was converting a vertex into worldspace with a line similar to this:
b2Vec2 v = poly->m_position + b2Mul(poly->m_R, poly->m_vertices[i]);
This let me render a polygon shape by simply iterating over its vertices. As far as I can tell, from a few minutes of poking around, rotation and position information has moved from the shapes into the bodies.
I'm sure I'll be able to figure this out with some frustration/experimentation, but if anyone can give me some hints as to how the above task (turning a vertex into worldspace coordinates at which I can render) the "correct" way, I would very much appreciate it.
Thanks!
I'm starting a new project, so (in view of the dramatic API changes between the last release and SVN) I am using the SVN version in hopes of futureproofing a little bit.
However, in the past, I was converting a vertex into worldspace with a line similar to this:
b2Vec2 v = poly->m_position + b2Mul(poly->m_R, poly->m_vertices[i]);
This let me render a polygon shape by simply iterating over its vertices. As far as I can tell, from a few minutes of poking around, rotation and position information has moved from the shapes into the bodies.
I'm sure I'll be able to figure this out with some frustration/experimentation, but if anyone can give me some hints as to how the above task (turning a vertex into worldspace coordinates at which I can render) the "correct" way, I would very much appreciate it.
Thanks!