Modifica

Condividi tramite


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.

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.

Applies to