I'm thinking how to implement my own box2d renderer.
DebugDraw is fine but its really made for debug purposes only.
Callbacks in DebugDraw do not provide anything to link to my objects. I cant select texture, fox example.
To render PolygonShape myself I must get its current vertices coordinates.
C++ box2d engine holds them inside b2PolygonShape.m_vertices.
C# interface do not provide any methods to access vertices
Description
I'm thinking how to implement my own box2d renderer. DebugDraw is fine but its really made for debug purposes only. Callbacks in DebugDraw do not provide anything to link to my objects. I cant select texture, fox example.
To render PolygonShape myself I must get its current vertices coordinates. C++ box2d engine holds them inside b2PolygonShape.m_vertices. C# interface do not provide any methods to access vertices