I have been using the method outlined in the following example to add an observer offset:-
In the latest 4.25 release, the observer property no longer contains a valid value for z when used over terrain, it only returns the value 0. Thus, when creating an updated observer point based on an offset and the observer value, the new observer point is underground (or 0 + offset)
The z-value is correct when over a model or mesh.
You can still use the same method but since the API version 4.23 it is not necessary to call viewModel.start() and viewModel.stop() anymore (part of a bug fix shipped with 4.23, see release notes or the Line of Sight widget sample).
So if you remove that part, the old sample app with the workaround will function again.
Hope this helps!
The issue is related to the observer point, when I add a watch on the observer:-
ObserverWatchHandle = lineOfSightVM.watch("observer", (value) => {
console.log(value.z)
}
the value of value.z is always returned as 0 when used over the ground, I believe this should be the z-value at the ground point
This bug seems to have existed in 4.24 too but not <= 4.23
I have created a code pen with the 2 different versions:-
4,25
https://codepen.io/leevers/pen/BaVOeaa
4.23
https://codepen.io/leevers/pen/gOKdJOV
Oh, I see what you mean now, we'll look into it. Thanks for reporting it!
Just a quick update: this issue will be fixed in version 4.26 which is expected to be released at the end of February.