Editar

Compartilhar via


PokePointer.IMixedRealityNearPointer.TryGetNormalToNearestSurface 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.

 virtual bool Microsoft.MixedReality.Toolkit.Input.IMixedRealityNearPointer.TryGetNormalToNearestSurface([Runtime::InteropServices::Out] UnityEngine::Vector3 % normal) = Microsoft::MixedReality::Toolkit::Input::IMixedRealityNearPointer::TryGetNormalToNearestSurface;
bool IMixedRealityNearPointer.TryGetNormalToNearestSurface (out UnityEngine.Vector3 normal);
abstract member Microsoft.MixedReality.Toolkit.Input.IMixedRealityNearPointer.TryGetNormalToNearestSurface : Vector3 -> bool
override this.Microsoft.MixedReality.Toolkit.Input.IMixedRealityNearPointer.TryGetNormalToNearestSurface : Vector3 -> bool
Function TryGetNormalToNearestSurface (ByRef normal As Vector3) As Boolean Implements IMixedRealityNearPointer.TryGetNormalToNearestSurface

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.

Implements

Applies to