IMixedRealityNearPointer.TryGetNormalToNearestSurface(Vector3) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Near pointers often interact with surfaces.
This method provides a mechanism to get the normal of the closest surface the near pointer is interacting with.
public:
bool TryGetNormalToNearestSurface([Runtime::InteropServices::Out] UnityEngine::Vector3 % normal);
public bool TryGetNormalToNearestSurface (out UnityEngine.Vector3 normal);
abstract member TryGetNormalToNearestSurface : Vector3 -> bool
Public Function TryGetNormalToNearestSurface (ByRef normal As Vector3) As Boolean
Parameters
- normal
- UnityEngine.Vector3
Out parameter filled with the surface normal if available, otherwise Vector3.zero.
Returns
True if a normal was retrieved, false if not.