I'm having a great deal of difficulty trying to find a way to skin the ragdoll from the TestBed example or any object in box2d for that matter. All that I am looking to do is attach movie clips to the ragdoll to style it.
I have searched and read for quite a while now and it may be that I am searching for the wrong thing. Surely there must be a simple way of skinning bodies or fixtures in box2DAS3. If you know of any please share, and if you don't have an example can you point me in the right direction?
Well, I´m really newbie here, but I saw that videos and you can see there how to make it.
This guy makes an sprite and a body, and in the enterFrame where you make the world.Step() you can make a GetPosition().x and GetPosition().y of the body, convert this values to pixels and assing them to the Sprite or MC you want to use as skin. Pretty easy.
I have thoroughly gone through these videos. There is not any skinning involved in them. He only uses b2DebugDraw to draw shapes and give them basic colors and outlines. I need to add movie clips to the shapes and give them actual bitmap image skins.
You´re wrong, there´re skinning tutorials in the videos, I saw them, I´m totally sure.
Anyway, the method is as I said you, make a body, make a Sprite, get the properties of the body and pass them to the Sprite converted.
you are surely wrong.
these videos are must watch for everyone just starting to work with box2d.
Actors and Directors.
As an idea :
An actor is a class that will receive the actual visual part and the b2body as parameters, then tell the visual part to act accordingly to the b2body.
A director tells all the actors to update.
That's about it.