日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class HandRay

    Inheritance
    Object
    HandRay
    Implements
    IHandRay
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    Implements

    IHandRay
    Back to top Generated by DocFX