WCK - wck.BodyShape question

Hello

Here is the MyHero.as class I'm using in order to control my hero.
http://www.gamez-factory.com/group/MyHero.as

As you can see, the class extends the shapes.BodyShape class and I have two examples, first when my object contains a shapes.Box and the second when my object contains a shapes.Circle class.

http://www.gamez-factory.com/group/square/
http://www.gamez-factory.com/group/circle/

My problem is that using the exactly same hero class, the object behaves completely different when I use anything else than a simple square. When I draw my hero using circles, there is no way to obtain a controllable hero behavior... and my question is why ? :)

And yes, all symbols have the reportBeginContact and reportEndContact checked in their component boxes, and both symbols have the correct class assignation: shapes.Box and shapes.Circle

Thank you all,
Have Fun!
The box relies on friction to slow down. Friction on the circle actually causes it to roll (and move) more. You could set angularDamping so the rolling slows down, or set fixedRotation if you need no rolling at all. Also, for the ball, you may get better results incrementing angularVelocity rather than linearVelocity. AngularVelocity + friction will cause the ball to move back and forth as it rolls.

My project, Sideroller, uses friction + angularDamping + incrementing angularVelocity to move on the ground, then incrementing linearVelocity when in the air to "nudge" jumps.
...so basically I'm asking if there is a way to have a wck.BodyShape made from multiple shapes: a circle and a box for example and that object to respond to key presses? Now I'm using setAnfgularVelocity and for circles works great, not for squares though... http://www.gamez-factory.com/group/MyHero.as

What is the correct approach in this case? How can we combine shapes and still have a nice keyboard response?

Thank you again :)
GF
I an guessing this thread is a follow up to this one:

viewtopic.php?f=8&t=5599&p=26052#p26052

Have your MyHero class extend BodyShape. I assume your MyHero symbol has two child symbols, a circle & a square. The contacts from those events will bubble up into the MyHero instance.

If MyHero does not extend BodyShape, the square and circle will act as independent bodies.
hello again :)
first of all, tnx a bunch for your time!

I uploaded a new swf file to illustrate my problem:
http://www.gamez-factory.com/group/shape/

while de shape rests on the circle part, the controls works just fine. however when on the square side the group object does not respond to key presses.

both symbols have the checked boxes for contacts on.

again, any help is greatly appreciated :)

tnx, GF!
Well now things are getting very complicated. So it looks like you've switched to angular velocity. I don't think that will work very well for a shape like this. I always stick to simple box or circle characters.

What exactly is the kind of character you are trying to produce? If you describe how you want it to move I may be able to give you a simpler strategy.
Hello again...

Well.. my initial idea was to have a main character who can take more than one simple shape during the play. Now I am not so sure about how good is this idea :)

1. However my main question remains:
What is the correct approach on having a character composed let's say from two circles and one rectangle between? Why I want this?:) Well simply be cause I think sometimes is more naturally to combine shapes to obtain the best result.

2. I guess I can :
a) simplify everything and combine only shapes from same type (polygons with polygons and circles with circles etc.) or
b) write some specific code handling the specific body type.

Please advise :)
Have Fun!

Original thread: https://box2d.org/forum/viewtopic.php?t=5618