TUT - Double Collision

Double ray-collision to stick to a surface.

Ray-Collision tutorial xpresso

Follow up:

The Ray-Collision-node is very practical to stick objects to irregular surfaces.
The collision will be detected between two "ray points" (null objects) above and under the surface. The node outputs the distance from the bottom point.
Now this simple setup is good enough for most situation but it doesn't give you the direction of the detected point.

Ray Collision 2 xpresso tutorial
Now duplicate the setup and offset it from the first one and put a target expression on the resulting detection. The result is a null that points to the first detection point and thus is in the direction of the surface.

Ray xpresso tutorial

It is probably easier to follow the above setup than to read my explanation.


3 comments

Comment from: kiteman [Visitor] : 2005-09-07 @ 01:20
hey thanks Base :) .. i didn't know this one .. you learn me a lot !
Comment from: Arnout [Visitor] : 2008-10-20 @ 13:44
*****
Hello,
The result of the script looks fantastic. I want to put many objects on each other without penetration (object sticked to surface of other object).
I'm testing cinema 4d, i not experienced with the program. Can i download the above example?
Is it easy to put my own objects in the script?

Greets, Arnout
Comment from: base80 [Member] Email : 2008-10-20 @ 13:48
I do the tutorials for free but never give files away unless a donation is made. This tutorial is doable for an fairly new user.

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)