Add ultimate xr

This commit is contained in:
2024-08-06 21:58:35 +02:00
parent 864033bf10
commit 7165bacd9d
3952 changed files with 2162037 additions and 35 deletions

View File

@@ -0,0 +1,41 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UxrTranslationConstraintMode.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using UnityEngine;
namespace UltimateXR.Manipulation
{
/// <summary>
/// Enumerates the ways a <see cref="UxrGrabbableObject" /> position can be constrained when being manipulated.
/// </summary>
public enum UxrTranslationConstraintMode
{
/// <summary>
/// No constraints.
/// </summary>
Free,
/// <summary>
/// The <see cref="UxrGrabbableObject" /> position is constrained to a box defined by a <see cref="BoxCollider" />.
/// </summary>
RestrictToBox,
/// <summary>
/// The local position is constrained between minimum and maximum offsets pointed by the initial local axes.
/// </summary>
RestrictLocalOffset,
/// <summary>
/// The <see cref="UxrGrabbableObject" /> position is constrained to a sphere defined by a
/// <see cref="SphereCollider" />.
/// </summary>
RestrictToSphere,
/// <summary>
/// The <see cref="UxrGrabbableObject"/> cannot move.
/// </summary>
Locked
}
}