codingben / box2d-netstandard

C# port of Box2D - Erin Catto's 2D Physics Engine
https://box2d.org
MIT License
263 stars 53 forks source link

Get vertices of PolygonShape #45

Closed bol-van closed 2 years ago

bol-van commented 2 years ago

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