Dynamic Follow Attract
-
Hi again,
Quick question, I'm trying to make a sphere roll around a scene and dynamically interact with objects on the floor.
I first tried using Follow Position and Rotation in the Rigid body tag of the sphere and have it align to spline, but it doesnt roll very well noor does it interact with objects on the floor very well.
So I thought using a Field Force to attract the sphere to a moving object might work better - and it kinda does, however it slips and slides a bit (despite huge Friction values) and it goes though the objects constantly, and just doesnt look very realistic at all.
Here's my project file, is there a better way to set this up, or have I missed a setting in the field force somewhere? https://we.tl/t-UYwXxNVbh9
Thanks again!
-
Hi MaverickMongoose,
Thanks for the file.
I'm not aware if you have tried this. Throwing a hula-hoop ring away from you, while at the same time setting the ring in rotation that would go against the forward movement. At one point, the rotation has canceled the forward motion, and the ring comes back. In short, two forces fight against each other; if they don't cancel each other out, one or the other wins.
The same feeling is present in the large Sphere; the Rotational Mass is set to 100%. If set to 1%, the Sphere can roll more smoothly along its path, with no heavy inertia fighting against the rotation.
The example below replaces the Force and uses a Spring instead, which allows the larger Sphere to exhibit more of its inherent energy and define its own path more effectively. While the Rotational mass is 1%, which allows quickly to adapt.
Enjoy
-
Ooh thats an intresting setup too, thanks for that!
Just one thing though, if you look from the side in your and mine the sphere doesnt interact with the collider objects very well, often going through or floating above. Any idea why that is?
-
Thanks for the feedback, MaverickMongoose,
Please explore the Rigid Body Tag > Collision > Search Radius. Increase to perhaps 5cm, then adjust to a lower or higher setting.
https://help.maxon.net/c4d/2026/en-us/Default.htm#html/TRIGIDBODY-RIGIDBODY_PBD_COLLISION_GROUP.html#RIGIDBODY_PBD_THICKNESS
Let me know if that works for you.
All the best
-
All good, turns out Set Absolute Velocity messes up the gravity, switched to Add to Velocity and increased the substeps and it's working good now - changing the object mass helped too, thanks for that!