IMixedRealityNearPointer.TryGetNormalToNearestSurface(Vector3) Method
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.
C++
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
- normal
- UnityEngine.Vector3
Out parameter filled with the surface normal if available, otherwise Vector3.zero.
True if a normal was retrieved, false if not.
Продукт | Версии |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |