Silo wrote:
Hello,
Really nice work, but I'm wondering how do you use it? Because I've been looking around to see some example and I can't find any. The only one is the Hello World which the code seems to be hide in a swc file (I don't know how to open it btw).
So if someone could show me somewhere I can find a piece of code on how to use it, I'll be thankful!
To get the WCK going is really simple. The demo.fla under the demo folder shows how it's done. Simply make your shapes(boxes, circles, arcs, whatever) and export them to ActionScript and let them have a base class of the shape they represent(box, circle etc. found under the shapes folder).
Put everything inside a MovieClip that has a base class of World(wck.World) and that's it, now they're physics objects inside a physics world. Also make sure to follow these steps first:
http://wiki.github.com/jesses/wckI'm having some problems with the newest version though. I've been fooling araound with the 2010-01-02 version and everything works like a charm. But when I'm trying to use the newest version with the same project I get the following error:
Code:
VerifyError: Error #1014: Class wck::GoodbyeJointEvent could not be found.
at global$init()
at wck::BodyShape$cinit()
at global$init()
at global$init()
Followed by a bunch of null object reference errors. Any suggestions why this is happening?