Box2D Forums

It is currently Thu May 23, 2013 1:21 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Apr 16, 2012 3:14 am 
Offline

Joined: Thu Apr 01, 2010 1:42 pm
Posts: 72
Hi there !

I'm designing a new project and I wonder whether I should use box2D or make my own physics engine (obviously not at the same level) for my game.

Actually I would have a system made of two circles and a rectangle to 'link' them. (with no force applying on it)
Those two circles would be linked with equal restoring forces.

Another thing is that I would also like to have some 'attract points' which would be points with an attraction force only one those circles (actually one would be the head and the other one the 'feet' and then only one would be attractable by this force).

I know its a bit complicated so that's why I was wondering if I could do such thing with box2D.

Thanks !


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 2:13 pm 
Offline

Joined: Sun Oct 25, 2009 3:28 am
Posts: 242
You can use Box2D for that sort of thing, but Box2D does not natively offer the sort of thing you want to happen. You'll have to make your own algorithm to do selective attraction stuff, then the times you would need to do the attraction is to use body.ApplyForce on both bodies to do attraction.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 1:28 am 
Offline

Joined: Thu Apr 01, 2010 1:42 pm
Posts: 72
Okay. I guess I'll have to use sensors to apply the forces for attract points too…

I wondered if there was something for restoring forces with joints but apparently not.
Anyway I think it would be still better to use box2D in the end.

Thanks.


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: Bing [Bot], Google [Bot] and 8 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