Прочетете на английски Редактиране

Споделяне чрез


IMixedRealityNearPointer.TryGetNormalToNearestSurface(Vector3) Method

Definition

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);

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.

Applies to

Продукт Версии
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