Jump to content
Alan Monroig

Sticking wire to collision object

Recommended Posts

Hello!

I am trying to do some drool with wires, I would like the wires to stick to the first object it collides with (like saliva). Any suggestions?

Thanks!

Share this post


Link to post
Share on other sites

Sounds cool, to answer your question directly, you could measure distance to collision object with xyzdist, below a certain distance you could then switch its position data to then always stick on the object you found within the distance. To do this, use primuv, and track the location found from xyzdist, and keep your current position to match that parametric uv of the object from when it was within range.

As a general comment, I found grains in the past to be awesome for sticky high detail saliva fx!

Share this post


Link to post
Share on other sites
17 hours ago, TheDude said:

Sounds cool, to answer your question directly, you could measure distance to collision object with xyzdist, below a certain distance you could then switch its position data to then always stick on the object you found within the distance. To do this, use primuv, and track the location found from xyzdist, and keep your current position to match that parametric uv of the object from when it was within range.

As a general comment, I found grains in the past to be awesome for sticky high detail saliva fx!

Thanks for the response! I lost my hopes when nobody was helping me. I will try that out. And also the grains alternative, sounds like a good option. 

Cheers!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×