Custom Forces with MoDynamics

The new Cinema4D MoDynamics is great fun, and is such a vast improvement over the old Dynamics Module.
One of the things the original dynamics offers is the ability to have several independent dynamic worlds all within one scene. This is made possible by placing elements under a solver object. This gives you the opportunity to define specific forces to each solver group. For example, you can have one set of objects with low gravity and another with high gravity.
The MoGraph Dynamics has the Gravity control in the Project Settings, this defines the gravity for the entire scene. There is however a little trick you can use which offers more control and lets you set custom gravity for your dynamic objects.
From the Edit Menu, open the Project Settings, switch to the MoDynamics Tab and set the Gravity parameter to 0.

Set Gravity to zero
Then from the Objects Menu, choose Particle – Gravity. This will add in a Standard Particle Gravity Force.

Add a Particle Gravity Object
Select one of your Rigid Body tags and switch to the Force Tab. Here there is an Include / Exclude list. You can drag the Gravity Object into this list and switch it to Include. Choose another Rigid Body tag and then Exclude the Gravity from this tag. By doing this you can assign gravity to different dynamic objects.

Drag to the Rigid Body include list
It is a pretty simple, but useful technique. You can do this with many of the standard particle forces and this allows you to add another dimension of control. Simulations are tricky to setup when you have a specific vision in mind. If you have one object that is not moving to the place you want it to, then why not employ this trick and use an attractor or gravity assigned to the problem object. Maybe that’s all you need to get the result you are after without disturbing the rest of your simulation?
You can download a simple example of using two gravity forces with MoDynamics here





Great tip for using MoDynamics, thanks!
Hey congratulation señor Tim,
Sawadee Pimaee (happy new Year) from Thailand !
I have a pb with that specific MoDynamic module :
when I ad a gravity particle in my cloner object Rigid Body tags,
as you write here, it freeze after an amount of images, sometimes it’s 70
other times its 120 ?
I’ve done and re-done it many times, but I failed.
Do you have any ideas of what could be wrong or which parameter control the duration of dynamics ?
cheers, and long life to you and your tuts ….
Obi10
Sorry but in my tests I don’t see any freeze. It’s difficult to know what has happened without seeing a project file. Hope you sort it out!
thank’s for your interest, as when I follow while 3 terms your tuts on Fxphd,
you’re really involved, that so gooood !
here is a link to the specific project,
http://dl.free.fr/o2QKMK9uZ
If you have the time to have an eye on it.
I don’t know why the attraction on bubbles freeze ?
Obi10
Sorry but it really isn’t clear to me the problem. The bubbles don’t seem to be attracted to anything, they just bob up and down. This continues for the whole scene and doesn’t freeze. Perhaps a cut down version of the scene where the problem is more obvious might help?
Sorry I can’t be more helpful here.
Sorry, what is a cut down ? I actualy work on a MBP (2.53Ghz, IntelCore2Duo / 4Go ram) and I have C4D 11.514 build (64bits) {Warp10}RC20476;
When I use the scene Cam, on the bubbles, 3 bubbles freeze around the frame 45, only 3 of them, others still going up.
In fact my first idea was to have a very very gentle and subtile atraction like helium bubbles, but first put less than -4 in the gravity object acceleration. then now it’s on -1, but some of them freeze, Maybe only on my system….
Sorry to disturb you with that problem, maybe it’s a bug !
Thank’s for all, Cheers,
Ben
when I say cutdown, I mean a simple version of the scene. You have many objects etc in your scene that have no direct influence over the problem and deleting them to make the project simpler makes de-bugging simpler too.
It appears that the turbulence is the main reason for moving the objects and the gravity has a very small influence. If you delete the animation from the rigid body tag you can see the gravity doesn’t freeze at all. It is probably because it is set so low that it appears to do this. If you disable the turbulence and delete the rigid body keyframing you’ll see the gravity does not cause any freezes.
hope that helps.
Thank’s for explain. Next time I’ll do it.
Once deactivating turblance tag, the gravity goes well.
You’re right.
My first aim was to had subtle gravity, I was looking a kind of helium feeling balls;
to let balls stay more or less at the same place.
thank you for the time you took, lon life to yours Tuts.
And Yes definitly that help !
Hey Tim,
I was wondering: With the MoGraph Rigid Body tag can you set a starting keyframe so it starts to “fall” at a certain frame?
Animate the enable checkbox in the tag