Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Feb 18, 2010 8:33 pm 
Offline

Joined: Thu Feb 18, 2010 8:29 pm
Posts: 2
Hi there. I am using Maya SP1A 2009 x64 on WIndows 7. Everytime I make a polygon object an active mesh rigid body in my scene, the pivot moves to the center of the world. I've froze the transformations of the object, made sure the pivot is centered... and it still does this. One thing I noticed, is under the transform node of the object, the local scale and world scale is not at zero... even when I freeze transformations. Anyone have any ideas as to how to fix this? Thanks.


Top
 Profile  
 
PostPosted: Tue Feb 23, 2010 8:34 pm 
Offline
User avatar

Joined: Sat Mar 08, 2008 12:37 am
Posts: 56
Hello,

I reproduced the problem.
This happens because plugin currently always creates a new transform node when converting
existing mesh to rigid body.
I also noticed that it does not delete old transform node, so it still is visible, for example, in
hypergraph (and it has pivot where it was before).
Looks like that we should keep transform node rather than create a new one. This should solve your problem.
I'll fix that in near future.

Thanks for pointing on that,
Roman


Top
 Profile  
 
PostPosted: Fri Feb 26, 2010 7:09 pm 
Offline

Joined: Thu Feb 18, 2010 8:29 pm
Posts: 2
Thanks for taking a look at it, rponomarev. Really appreciate the help!


Top
 Profile  
 
PostPosted: Wed Mar 03, 2010 9:06 pm 
Offline
User avatar

Joined: Sat Mar 08, 2008 12:37 am
Posts: 56
Hello,

Unfortunately we cannot simply use existing transform for rigidBodyNode, because we should keep Maya shape node(and its transform) as well.
It may be needed, for example, for high-quality rendering.
Now rigid bodies have just very simplified polygonal rendering.
Also we cannot just copy all data from existing transform node, because Bullet requires that origin of a rigid body coordinate center should be in its center of mass.

So I copied data from the resulting worldMatrix attribute.
Get the dynamicaUI.mel file r2051, I think this should solve your problem.

Thanks again,
Roman


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group