Interface IHandRay
Interface defining a hand ray, which is used by far pointers to direct interactions. Implementations of this class are managed and updated by a BaseHand implementation.
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public interface IHandRay
Properties
Ray
Ray used by input system for Far Pointers.
Declaration
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
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
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 |