Class HandRay
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class HandRay : IHandRay
Properties
Ray
Ray used by input system for Far Pointers.
Declaration
public Ray Ray { get; }
Property Value
Type | Description |
---|---|
Ray |
ShouldShowRay
Check whether hand palm is angled in a way that hand rays should be used.
Declaration
public bool ShouldShowRay { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Update(Vector3, Vector3, Transform, Handedness)
Update data used by hand implementation, to compute next HandRay.
Declaration
public void Update(Vector3 handPosition, Vector3 palmNormal, Transform headTransform, Handedness sourceHandedness)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | handPosition | Position of hand |
Vector3 | palmNormal | Palm normal |
Transform | headTransform | Transform of CameraCache.main |
Handedness | sourceHandedness | Handedness of related hand |