Show / Hide Table of Contents

    Class NearInteractionTouchable

    Add a NearInteractionTouchable to your scene and configure a touchable surface in order to get PointerDown and PointerUp events whenever a PokePointer touches this surface.

    Inheritance
    Object
    BaseNearInteractionTouchable
    ColliderNearInteractionTouchable
    NearInteractionTouchable
    Inherited Members
    ColliderNearInteractionTouchable.ColliderEnabled
    ColliderNearInteractionTouchable.TouchableCollider
    BaseNearInteractionTouchable.eventsToReceive
    BaseNearInteractionTouchable.EventsToReceive
    BaseNearInteractionTouchable.pokeThreshold
    BaseNearInteractionTouchable.PokeThreshold
    BaseNearInteractionTouchable.debounceThreshold
    BaseNearInteractionTouchable.DebounceThreshold
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class NearInteractionTouchable : ColliderNearInteractionTouchable

    Fields

    bounds

    Local space forward direction

    Declaration
    protected Vector2 bounds
    Field Value
    Type Description
    Vector2

    localCenter

    Local space object center

    Declaration
    protected Vector3 localCenter
    Field Value
    Type Description
    Vector3

    localForward

    Local space forward direction

    Declaration
    protected Vector3 localForward
    Field Value
    Type Description
    Vector3

    localUp

    Local space forward direction

    Declaration
    protected Vector3 localUp
    Field Value
    Type Description
    Vector3

    Properties

    AreLocalVectorsOrthogonal

    Returns true if the LocalForward and LocalUp vectors are orthogonal.

    Declaration
    public bool AreLocalVectorsOrthogonal { get; }
    Property Value
    Type Description
    Boolean
    Remarks

    LocalRight is computed using the cross product and is always orthogonal to LocalForward and LocalUp.

    Bounds

    Declaration
    public Vector2 Bounds { get; set; }
    Property Value
    Type Description
    Vector2

    Forward

    Declaration
    public Vector3 Forward { get; }
    Property Value
    Type Description
    Vector3

    LocalCenter

    Declaration
    public Vector3 LocalCenter { get; set; }
    Property Value
    Type Description
    Vector3

    LocalForward

    Declaration
    public Vector3 LocalForward { get; }
    Property Value
    Type Description
    Vector3

    LocalRight

    Declaration
    public Vector3 LocalRight { get; }
    Property Value
    Type Description
    Vector3

    LocalUp

    Declaration
    public Vector3 LocalUp { get; }
    Property Value
    Type Description
    Vector3

    Methods

    DistanceToTouchable(Vector3, out Vector3)

    Declaration
    public override float DistanceToTouchable(Vector3 samplePoint, out Vector3 normal)
    Parameters
    Type Name Description
    Vector3 samplePoint
    Vector3 normal
    Returns
    Type Description
    Single
    Overrides
    BaseNearInteractionTouchable.DistanceToTouchable(Vector3, out Vector3)

    OnValidate()

    Declaration
    protected void OnValidate()

    SetLocalForward(Vector3)

    Declaration
    public void SetLocalForward(Vector3 newLocalForward)
    Parameters
    Type Name Description
    Vector3 newLocalForward

    SetLocalUp(Vector3)

    Declaration
    public void SetLocalUp(Vector3 newLocalUp)
    Parameters
    Type Name Description
    Vector3 newLocalUp
    Back to top Generated by DocFX