MapsSDK-Unity icon indicating copy to clipboard operation
MapsSDK-Unity copied to clipboard

Add reference modes to MapRenderer.Raycast API?

Open CubicVR opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently MapRenderer.Raycast api will raycast to everything on the map. It would be helpful to add a method that has reference modes similar to MapPin.AltitudeReference. For example being able to sketch only on the terrain while ignoring buildings. Or when dragging 3D models onto the map, ability to cast only onto the terrain...

Describe the solution you'd like Add a Raycast method to the existing API that does this: public bool Raycast(Ray ray, out MapRendererRaycastHit hitInfo, RaycastReference raycastReference);

Options could include RaycastReference.Surface and RaycastReference.Terrain.

Describe alternatives you've considered Not a must have but more granular filters would be also useful if there are ways to identify vegetation, terrain, water, buildings, roads etc.

CubicVR avatar Jan 27 '20 17:01 CubicVR

Noted, thanks for the feature request!

kircher1 avatar Feb 03 '20 19:02 kircher1