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,42 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UxrPlacementOptions.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using System;
namespace UltimateXR.Manipulation
{
/// <summary>
/// Enumerates the different ways a <see cref="UxrGrabbableObject" /> can transition when being placed on an
/// <see cref="UxrGrabbableObjectAnchor" />.
/// </summary>
[Flags]
public enum UxrPlacementOptions
{
/// <summary>
/// Place immediately. If the object is being grabbed, release it.
/// </summary>
None = 0,
/// <summary>
/// Place using smooth transition (interpolation).
/// </summary>
Smooth = 1 << 0,
/// <summary>
/// Do not release the object when placing.
/// </summary>
DontRelease = 1 << 1,
/// <summary>
/// Overrides <see cref="UxrSnapToAnchorMode"/> so that it forces to snap the position.
/// </summary>
ForceSnapPosition = 1 << 2,
/// <summary>
/// Overrides <see cref="UxrSnapToAnchorMode"/> so that it forces to snap the rotation.
/// </summary>
ForceSnapRotation = 1 << 3
}
}