Sep 7, 2010 at 8:43 PM
Edited Sep 7, 2010 at 8:51 PM
You make a good point about that particular case.
I don't mean to sound like a for loop purist (I like me some foreach action too!), it's just that when I see
a foreach loop, especially iterating through a long list, often, I make an involuntary eyebrow raise.
I was under the impression that List<T> sometimes will not allocate memory. In this case, I think it does, but
I would of course prefer to stand corrected.
On the topic of enumerators, would it be a hassle to make ContactEdge enumerable, so that we can
use foreach instead of contactedge.Next. I mean, it's not a big deal, just wondering.
Thanks for reply JeroMiya (where did you come up with this alias?)!
Wow, you're on top of it! Thanks!
Ahh... good eye, Vertices is public in PolygonShape... but not in the other child classes it seems (not as important).
You're right though, it's a bit of a hack...
I think that a more proper property could be useful for a number of games, but eh, whatever works. =)