Box2D Forums

It is currently Thu Sep 09, 2010 6:01 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Repositioning Weld Jointed objects
PostPosted: Sat Feb 06, 2010 10:52 pm 
Offline

Joined: Fri Sep 28, 2007 7:49 am
Posts: 56
The 3DOF motor does seem simpler and makes more sense, and it does exactly what's needed (drive the relative transform of two objects physically rather than kinematically). Damn it! :)

The application I was thinking of specifically was how to unify rigid and deformable bodies; in the former case the constraint geometry (joint anchors, contact points) is fixed/constant -- during constraint solving only the body transforms are changed. If instead you let the solver modify both the body transforms *and* the constraint geometry, this gives you a way to model deformable objects. Basically, instead of the perfectly rigid anchor point transmitting all of the impulse to the rigid frame in which it's embedded, part of the impulse is "absorbed" (deforming/moving the anchor point's local position) and the remainder is felt as a rigid impulse.

I actually have this "frame in a frame in a frame" system working, but as you've pointed out it's sort of uselessly complicated.. unfortunately I haven't really figured out how else to model rigid and deformable (esp. plastic deformation) objects with the same model unless you take such an approach. Simulating constraint geometry in local space lets you add this extra layer of degrees-of-freedom to the model; rigid shapes are simply those whose constraint geometry is infinitely massive/doesn't move wrt the frame in which it's embedded.

Possibly it's just a mistake to consider deformable objects to have "a" rigid frame in which their geometry is embedded, and simulating everything in worldspace (i.e as is usual; the shape is just a bunch of linked particles) is the better model. I was basing this off of the shape matching papers where an undeformed frame is extracted from the current configuration in order to measure the current deformation -- I figured "why not just simulate the undeformed frame explicitly".. sigh.


Top
 Profile  
 
 Post subject: Re: Repositioning Weld Jointed objects
PostPosted: Sat Feb 06, 2010 11:22 pm 
Offline

Joined: Tue Sep 18, 2007 6:17 am
Posts: 155
Location: Western Cape, South Africa
Erin Catto wrote:
This could be accomplished by 3 DOF motor (2 translations and 1 rotation). This is basically a hybrid between the revolute joint and the friction joint.


I'll have 3 of those please!


Top
 Profile  
 
 Post subject: Re: Repositioning Weld Jointed objects
PostPosted: Sun Feb 07, 2010 12:16 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2229
I think it is worth a 3DOF motor joint to the issues list. Please add it.


Top
 Profile  
 
 Post subject: Re: Repositioning Weld Jointed objects
PostPosted: Sun Feb 07, 2010 12:41 am 
Offline

Joined: Tue Sep 18, 2007 6:17 am
Posts: 155
Location: Western Cape, South Africa
Aye, aye.

And done!
http://code.google.com/p/box2d/issues/detail?id=79


Top
 Profile  
 
 Post subject: Re: Repositioning Weld Jointed objects
PostPosted: Tue Feb 09, 2010 1:07 am 
Offline

Joined: Tue Sep 18, 2007 6:17 am
Posts: 155
Location: Western Cape, South Africa
Oops! I logged it as a defect instead of an enhancement... You know what I mean though ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 2 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 © 2000, 2002, 2005, 2007 phpBB Group