Get Distance Between Two Points?

Hi all,

Not sure if this will appear, I did reply to all of your posts but they all went under moderation and don’t seem to have appeared yet. I’m not ignoring you honest :slight_smile:

I think I have managed to work out what I needed on this in the end, although I would be grateful if anyone has a better solution.

What I did was use a LineTraceForObjects and a GetUpVector but with a negative value, this allowed me to fire a ray out of the bottom of the object and reported back on what it hit beneath itself. From here I was able to get the distance between the start point of the ray and the impact location on the object it hit. With the distance now established I could divide that value by my velocity to get a period of time which was then used in the “Over Time” property of a MoveComponentTo node.

The ray only fires once, as it only needs to know the distance once to created the time period, so I think its reasonably efficient, but if you can think of a better way I’d be open to suggestions.