// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Input { /// /// A near interaction object which is a flat surface and can be pressed in one direction. /// public abstract class NearInteractionTouchableSurface : BaseNearInteractionTouchable { /// /// The local center point of interaction. This may be based on a collider position or Unity UI RectTransform. /// public abstract Vector3 LocalCenter { get; } /// /// This is the direction that a user will press on this element. /// public abstract Vector3 LocalPressDirection { get; } /// /// Bounds specify where touchable interactions can occur. They are local bounds on the plane specified by the LocalCenter and LocalPressDirection (as a normal). /// public abstract Vector2 Bounds { get; } } }