Box2D Forums

It is currently Sat May 25, 2013 11:55 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jun 13, 2012 7:25 am 
Offline

Joined: Wed Jul 27, 2011 4:05 pm
Posts: 3
How do I set the center of a fixture/body consisting of multiple shapes (triangles?
Image

Thanks in advance, :D


Top
 Profile  
 
PostPosted: Wed Jun 13, 2012 9:57 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
I don't get it. In the top example the axis is at the overall center of the body but this is marked 'wrong'. In the bottom example the axis is off-center but it's marked 'right'. In the two examples on the right side the axis appears to be in the same place... what criteria are you using to call a location the 'center'?


Top
 Profile  
 
PostPosted: Wed Jun 13, 2012 8:25 pm 
Offline

Joined: Sun Oct 25, 2009 3:28 am
Posts: 242
I think he wants the center of rotation to be a little offset from the actual center (change the center of mass).

You should increase the densities of the triangles in front and/or decrease that of the triangles in the back so it will naturally rotate off-center.


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: psbot [Picsearch] and 5 guests


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