// /*===============================================================================
// Copyright (C) 2020 PhantomsXR Ltd. All Rights Reserved.
//
// This file is part of the XR-MOD SDK.
//
// The XR-MOD SDK cannot be copied, distributed, or made available to
// third-parties for commercial purposes without written permission of PhantomsXR Ltd.
//
// Contact nswell@phantomsxr.com for licensing requests.
// ===============================================================================*/
using UnityEngine;
namespace Phantom.XRMOD.ActionNotification.Runtime
{
///
/// 发现平面状态
///
public enum FindingType
{
Finding,
Found,
Limit
}
public enum PlaneAlignment
{
None = 0,
HorizontalUp = 100, // 0x00000064
HorizontalDown = 101, // 0x00000065
Vertical = 200, // 0x000000C8
NotAxisAligned = 300, // 0x0000012C
}
///
/// Represents the alignment of a plane (for example, whether it is horizontal or vertical).
///
///
public enum PlaneClassification
{
///
/// The plane does not match any available classification.
///
None = 0,
///
/// The plane is horizontal with an upward facing normal (for example, a floor).
///
Wall,
///
/// The plane is classified as the floor.
///
Floor,
///
/// The plane is classified as the ceiling.
///
Ceiling,
///
/// The plane is classified as a table.
///
Table,
///
/// The plane is classified as a seat.
///
Seat,
///
/// The plane is classified as a door.
///
Door,
///
/// The plane is classified as a window.
///
Window
}
public class OnEventFocusEventArgs : OnEventBaseArgs
{
///
/// The physical size (dimensions) of the plane in meters.
///
public Vector2 Size;
///
/// Hit position
///
public Vector3 FocusPos;
///
/// Hit rotation
///
public Quaternion FocusRot;
///
/// Hit type
///
public FindingType FocusState;
///
/// The alignment of this plane.
///
public PlaneAlignment PlaneAlignment;
///
/// The classification of this plane.
///
public PlaneClassification PlaneClassification;
}
}