PDA

View Full Version : Active rigid body continual movement


Digitalwool
03-04-2006, 11:18 PM
Hey all, I'm new to dynamics and I'm trying something simple like throwing two dice against a wall and having them land on the ground. I have things looking the way I want until the dice get to the stopping point. Once their momentum has entirely stopped they still sort of "stutter", and one of them even spins a little. How do I get them to stop moving entirely after their initial momentum has stopped? The wall and floor are <passive rigid bodies> and the dice are <active rigid bodies>

Any help is much appreciated

sturmkim
03-05-2006, 12:14 AM
if you get happy result,

edit>key>bake simulation. ( turn your dynamic to keyed animtion)), then tweak your animtion curve at graph editor.

Digitalwool
03-05-2006, 09:58 PM
Thanks for the reply. Your idea does work, so I know I can fix it by hand if I have to. I'm wondering though why it is that when I do tests with simple primitives they always stop and don't continue to agitate, but my more complex objects insist on continuing to move. Is there an attribute that forces them to stop moving - short of baking the sim and keying it?

sturmkim
03-05-2006, 10:32 PM
hi.

for primitive VS. complexed one; cause behavior on maya's how to computing collide method.

you can using collide object base on bounding box( same as primitive object).
you can find this under rigidBody Attr.editor> performance attr.



for second; if you don't like bake simulation, simple expression on solverId


integer $noMoresim = 50; // when you need nesting your object by using frame number
if (frame <= $noMoresim )

rigidBody1.solverId = 0;
else
rigidBody1.solverId = 1;
//this is simply put your ridgid body into the other solver set.


if you bake it (recommanded_ u can have same animation everytime when you play it)
select objects, open graph_editor, tweak translate XYZ.

cosku
03-06-2006, 06:24 AM
Hi,
The way I've approached this problem in the past is by checking whether the rigidbody has collided, and if it has, increase the damping on its rigidBody node.
(Increasing damping helps it come to rest, but if you have it up from the beginning, its affects everything, including gravity etc).

-cosku

Digitalwool
03-06-2006, 09:45 PM
My thanks to both of you for taking the time to help me. I've not quite fixed it yet but I'm getting much closer. I do appreciate it. :thumbsup:

CGTalk Moderation
03-06-2006, 09:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.