MagicPhysX-Test/Toolkit/RigidbodyConstraints.cs

52 lines
1.5 KiB
C#

using System;
namespace MagicPhysX.Toolkit
{
/// <summary>
/// <para>Use these flags to constrain motion of Rigidbodies.</para>
/// </summary>
public enum RigidbodyConstraints : int
{
/// <summary>
/// <para>No constraints.</para>
/// </summary>
None = 0,
/// <summary>
/// <para>Freeze motion along the X-axis.</para>
/// </summary>
FreezePositionX = 2,
/// <summary>
/// <para>Freeze motion along the Y-axis.</para>
/// </summary>
FreezePositionY = 4,
/// <summary>
/// <para>Freeze motion along the Z-axis.</para>
/// </summary>
FreezePositionZ = 8,
/// <summary>
/// <para>Freeze motion along all axes.</para>
/// </summary>
FreezePosition = 14,
/// <summary>
/// <para>Freeze rotation along the X-axis.</para>
/// </summary>
FreezeRotationX = 16,
/// <summary>
/// <para>Freeze rotation along the Y-axis.</para>
/// </summary>
FreezeRotationY = 32,
/// <summary>
/// <para>Freeze rotation along the Z-axis.</para>
/// </summary>
FreezeRotationZ = 64,
/// <summary>
/// <para>Freeze rotation along all axes.</para>
/// </summary>
FreezeRotation = 112,
/// <summary>
/// <para>Freeze rotation and motion along all axes.</para>
/// </summary>
FreezeAll = 126,
}
}