Box2D Forums

It is currently Tue May 21, 2013 6:37 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Jan 20, 2011 1:43 am 
Offline

Joined: Tue Jan 11, 2011 6:05 am
Posts: 15
I have a bodyShape, and added it to the stage.
when i don't change any parameters in the component fields in the flash IDE, it acts like it's supposed to.
it rotates when a force is added tot the side.
When i change the density from 10 to 100, it suddenly doesn't rotate anymore, when forces are applied. furthermore, the object still acts like it's lightweigh, it just doesn't rotate.
When i change it back to 10, it still doesn't rotate.

I have no idea what's going on here.
I did set the isGuideShape property of the children bodyShapes to true, and fixedRotation is false on both the parent and child bodyShapes.
Also, when i trace the parent's fixedRotation member on enterframe, it always says false.

The only thing i did, that MIGHT have something to do with it, that i can think of: i changed the default value of allowDragging to false, in the wck.BodyShape script.


Top
 Profile  
 
PostPosted: Thu Jan 20, 2011 8:25 am 
Offline

Joined: Tue Nov 09, 2010 1:26 am
Posts: 92
I'm stumped. Did you change the density values at runtime or in the component before you compiled?


Top
 Profile  
 
PostPosted: Tue May 24, 2011 1:09 pm 
Offline

Joined: Tue May 24, 2011 1:05 pm
Posts: 3
questioner1 wrote:
I have a bodyShape, and added it to the stage.
when i don't change any parameters in the component fields in the flash IDE, it acts like it's supposed to.
it rotates when a force is added tot the side.

Hi!
I have the same problem :( maybe, you could help me, if you've got solution?

Thanks!


Top
 Profile  
 
PostPosted: Sat May 28, 2011 10:47 am 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
questioner1 wrote:
when i don't change any parameters in the component fields in the flash IDE, it acts like it's supposed to.
it rotates when a force is added tot the side.
When i change the density from 10 to 100, it suddenly doesn't rotate anymore, when forces are applied. furthermore, the object still acts like it's lightweigh, it just doesn't rotate.


Well, when you increase the density you're going to have to apply a lot more force or torque to get it rolling. Could it be you're force just isn't strong enough? I would try setting angularVelocity directly to see if that works first.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group