// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.MixedReality.Toolkit.Input;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Microsoft.MixedReality.Toolkit.Physics
{
///
/// Contains information about which game object has the focus currently.
/// Also contains information about the normal of that point.
///
public struct FocusDetails
{
///
/// Distance along the ray until a hit, or until the end of the ray if no hit
///
public float RayDistance { get; set; }
///
/// The hit point of the raycast.
///
public Vector3 Point { get; set; }
///
/// The normal of the raycast.
///
public Vector3 Normal { get; set; }
///
/// The object hit by the last raycast.
///
public GameObject Object { get; set; }
///
/// The last raycast hit info.
///
public MixedRealityRaycastHit LastRaycastHit { get; set; }
///
/// The last raycast hit info for graphic raycast
///
public RaycastResult LastGraphicsRaycastResult { get; set; }
public Vector3 PointLocalSpace { get; set; }
public Vector3 NormalLocalSpace { get; set; }
}
}