in the tests ,it use dynamicBox.SetAsBox(.5f,.5f) to add a square, But how can I add a circle?
Use
b2CircleShape circle;
circle.m_radius = ……;
instead of b2PolygonShape.
in the tests ,it use dynamicBox.SetAsBox(.5f,.5f) to add a square, But how can I add a circle?
Use
b2CircleShape circle;
circle.m_radius = ……;
instead of b2PolygonShape.