Jump to content
Sign in to follow this  

Near point constantly updating

Recommended Posts

I feel like the answer is going to be simple but I have been hung up on this for a while. I am finding the nearpoint and storing its vector as a lerp target. That part works fine but as the rest position moves I want it not look for a new closest point until distance from rest to the last nearpoint is x far away. Instead of constantly looking for the closest point.

The final effect I am going for is to have the sphere move across surfaces and have the lines act like tendrils walking.



Share this post

Link to post
Share on other sites
Posted (edited)

You'll probably need solver or loop for it.

Here is a similar example using a solver and letting an object moving along a surface, were the points are projected on the surface and keeping the projected position until a value/counter_maximum is reached.


Edited by Aizatulin

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
Sign in to follow this