I see. I guess, on reflection, if you *hadn't* implemented this, then my solution would simply have been to conditionally reverse the verts I send to pymunk, rather than conditionally reversing the verts I load from svg and then use for everythin. So while news of your feature made me happy, if you decide to ditch it for simplicity and predictability reasons, then I guess I'd be ok after all.
Best regards, and many thanks for pymunk. I'm now generating collision shapes (and pyglet batches) from loaded SVG and it's really really great. :-) On Aug 13, 9:10 am, viblo <[email protected]> wrote: > Intersting. Actually I was beginning to have second thoughts about > this feature :) I mean, it might be confusing for the user if pymunk > automatically reverse the vertices, i.e. the order of the vertices is > different when you call poly.get_points(..) than it was when the > polygon was created. Then again this might be such a small problem > that its worth it anyway, and as you say, its a useful feature in many > cases, and it is possible to turn it off for those who don't like it. > > On Aug 12, 7:36 pm, Tartley <[email protected]> wrote: > > > On Aug 9, 9:37 pm, viblo <[email protected]> wrote: > > > > note: With the newest release pymunk will automatically reorder the > > > vertices if they are in the wrong order (unless its told not to). > > > Hooray! You rock! This is actually of direct relevance to me - I just > > added an if statement last night, to modify windings on loading > > graphics from SVG in order to make pymunk happy, and it confuses my > > subsequent tessellation code that sends the same data to pyglet. Let > > me unleash some pip/virtualenv-fu in order to take advantage of your > > latest release. Thanks! > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
