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!
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: