This project has moved and is read-only. For the latest updates, please go here.

Question about Arcs

Apr 6, 2011 at 2:47 PM

another silly question. the arcs defined below should look the same (one solid and one from lines), but they don't. plus the solid arc is
not acting like a "real" body - no collision, no nothing. can anyone explain why is that ?

_arc = BodyFactory.CreateSolidArc(World, 1, MathHelper.Pi / 2, 10, 10, new Vector2(10, 10), -1.0f); _arc = BodyFactory.CreateLineArc(World, MathHelper.Pi / 2, 10, 10, new Vector2(0, 0), -1.0f, false);

ps: i debugged the creating process of the solid arc and couldn't see anything wrong.

Apr 8, 2011 at 11:28 PM

The 2 arcs look the same to me and the solid one reacts as it should.

Take a look at the RoundedRectangleTest (it contains 9 arcs) from the testbed.