Topic: Test Visibility of points
Is there any way to test the visibility of points in the scene?
Such as I click two point on the map, I want to know whether they can see each other (if there are mountains? buildings? between them)
Thanks
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Test Visibility of points
Is there any way to test the visibility of points in the scene?
Such as I click two point on the map, I want to know whether they can see each other (if there are mountains? buildings? between them)
Thanks
Hello.
Use Physics.Raycast to make sure that you have nothing between the points.
https://docs.unity3d.com/ScriptReferenc … ycast.html
Thanks
How could I transfer the map 2D coordinates to world 3D coordinate?
Hello.
Use Physics.Raycast to make sure that you have nothing between the points.
https://docs.unity3d.com/ScriptReferenc … ycast.html
OnlineMapsTileSetControl.GetWorldPosition
http://infinity-code.com/doxygen/online … 2992c6e097
or
OnlineMapsTileSetControl.GetWorldPositionWithElevation
http://infinity-code.com/doxygen/online … 1b7b556e6b
Infinity Code Forum → Online Maps Help → Test Visibility of points
Powered by PunBB, supported by Informer Technologies, Inc.