Messureing Tool in game

Hi UE4 peoples, I am trying to make a measuring tape in game.

The concept is: There is an image mapped onto a sphere, the camera is locked to the center of the sphere and the view can be manipulated in 360 degrees.

All I want to do is click once for the starting point and once again for the end point! a line would then appear on the sphere and get a measurement between the start and the end point (Arc length)

I thought it would be simple i.e draw a spline, constrain it to the sphere boundary and then get is distance between its start and end! This appears not to be as simple as first thought!

Can some kind person please help me out.

Cheers

Justin

Did you ever get this to work? I am looking for an in game solution to measure the distance between two assets like an actual measuring tape.

I would try and separate the calculating of the value and the visual representation. That way you can fudge the visuals a bit, but still get an accurate number. To get the value you could use the formula from this page: [Great Circle distance][1], specifically under the “Vector Version” section. Here is a screenshot of that implementation in blueprint:

As far as visually representing the measurement, you could maybe do it via procedural mesh, or some sort of ribbon particle. I’m not really sure.