I was able to "port" (i.e. make a few necessary WCK changes) Emanuele Feronato's object slicing. http://www.emanueleferonato.com/2011/06 ... x2d-part-2
With debugDraw on everthing works fine. But when I followed part 3 (adding your own sprites), the sprites were no longer moving with their physics bodies. I can align the bodies with the sprites with a StepEvent update in my Main class (extending WCK).
However, "normally" when I create my own classes e.g. MyRectangle extends Box (that has a corresponding movieclip in the flash library) WCK seem to take care of the StepEvent alignment. Am I missing something here or for sliced objects I just have to do it the way I described above?
Thanks,
With debugDraw on everthing works fine. But when I followed part 3 (adding your own sprites), the sprites were no longer moving with their physics bodies. I can align the bodies with the sprites with a StepEvent update in my Main class (extending WCK).
However, "normally" when I create my own classes e.g. MyRectangle extends Box (that has a corresponding movieclip in the flash library) WCK seem to take care of the StepEvent alignment. Am I missing something here or for sliced objects I just have to do it the way I described above?
Thanks,