Box2d classes can be used. But when I wanted to use arc lines.. looking up source I found class that creates fixtures for that. But that class expected a display object as data source.
I would have to manually rewrite that class to something I could use.
Specifically I'm talking about classes:
shapes.Arc90
wck.BodyShape
I see. Perhaps some generic shape factory methods would be useful.
I didn't really looked at wck structure in depth, but I would say something like this would be best:
Divide box2d, utils and wck.
At this moment box2d is divided, but util classes are inside wck. Making some, as you say, generic shape factory methods, which would be easily usable with just code and let wck classes use these methods.
This API is really great. It just needs a little more friendly usage for programmers.
How do you use animated type if your not using WCK. Or even how do you move a body without setting the usual velocity/force etc?
Ignore. Figured out how to use WCK and export the swc from flash, so I use in a non retarded editor 😛
i believe the methods without involve setXForm and kinematic bodies.
I've finally gotten around to upgrading to the latest version of Box2D, and I'm confused about the usage of Edge Shapes and Loops and whether it's only edge shapes that give smooth collisions, or if loops can also provide that. Loops are obviously a lot more convenient, but it's not clear from the comments whether they actually do the heavy lifting for you.
As for edge shapes, am I correct in guessing that vertices 0 and 3 are the adjacent ones, while 1 and 2 represent the endpoints of the actual edge?
Jon:
AFAIK loop shapes should provide the same functionality as edge shapes, they're just more memory efficient (saw Erin comment on this in another thread). You are right, vertices 0 and 3 are the adjacent ones (thus the hasVertex0 and hasVertex3 flags). I think they are both still a work in progress though. Erin's still committing new code.
BTW just saw your GitHub message: The contact event system has not changed, I can confirm that its still working over here. I would make sure the pointers are still going to the right place since I know you've added variables here and there.