Activity › Forums › Maxon Cinema 4D › dynamic object to dynamic spline
-
dynamic object to dynamic spline
Posted by Cody James on February 2, 2011 at 9:09 amHow do I add a dynamic object to a dynamic spline such as a tire swing so i can have it react in real time?
-kiwi
Spencer Noble replied 11 years ago 4 Members · 4 Replies -
4 Replies
-
Adam Trachtenberg
February 2, 2011 at 6:15 pmIt’s a bit tricky because spline dynamics doesn’t work directly with the general dynamics system. Also, there’s no direct way to attach an object to a dynamic spline; it takes a little Xpresso.
Here’s a file demonstratig the workarounds: https://www.3danvil.com/tutorials/spline_dyn_attachobject.c4d
And a brief description of what’s going on:
1. The cube is attached to the dynamic spline via Xpresso. That’s pretty straightforward for position — just use a point node referencing the last point in the spline and output it’s position into the cube’s position;
2. Rotation is a little trickier as the point node can’t output a point’s rotation. What I did was attach a null to the second to last point on the spline and then use a target tag on the sphere to have it look at the previous point;
3. You can’t use regular dynamics on the cube, such that it would bounce off other dynamic objects, because standard dynamics would negate the Xpresso attaching the cube to the spline. But you can use the cube as a standard dynamics collider;
4. To make it appear that the cube was bouncing off the sphere, I made an invisible sphere larger than the dynamic sphere, made it the child of the dynamic sphere, and gave it a hair collider tag. So in essence it’s the spline that’s colliding with the sphere and dragging the cube with it.
hth
-
Matías Petroli
July 29, 2012 at 10:41 pmHi Adam, this post is really usefull for an animation im working on now, but there is something i cant get to work.
how do you make expresso to recognize the second to last point of the spline? (sorry for my english).Thanks…
-
Matías Petroli
July 29, 2012 at 10:42 pmHi Adam, this post is really usefull for an animation im working on now, but there is something i cant get to work.
how do you make expresso to recognize the second to last point of the spline? (sorry for my english).Thanks…
-
Spencer Noble
August 10, 2015 at 6:53 pmThank you for this post Adam. I’ve spent the majority of today trying to create a scene in which a dynamics spline necklace with object cloned pearls on it is cut and the pearls come sliding off. Thank you for showing me that this is an impossible task in cinema 4d as there is no way to create a scenario in which my dynamic pearls can also interact with the spline dynamic string. I had found nothing on the subject save a lot of chain tutorials that loosely covered the subject I was getting at. I feel I have ample proof that I should just complete this feat in maya with hinge constraints or a wire deformer.
Reply to this Discussion! Login or Sign Up