brutal/brutal.jolt/Brutal.Jolt/Generated/Enums/EMotionQuality.gen.cs
2026-10-15 14:12:02 +13:00

63 lines
3 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionQuality.h#L10">Jolt/Physics/Body/MotionQuality.h:10</see>
/// <br/>
/// <c>enum class EMotionQuality : uint8</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Motion quality, or how well it detects collisions when it has a high velocity
/// </para>
/// </remarks>
public enum EMotionQuality : byte
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionQuality.h#L14">Jolt/Physics/Body/MotionQuality.h:14</see>
/// <br/>
/// <c>Discrete</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Update the body in discrete steps. Body will tunnel through thin objects if its velocity is high enough.
/// This is the cheapest way of simulating a body.
/// </code>
/// </remarks>
Discrete,
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionQuality.h#L28">Jolt/Physics/Body/MotionQuality.h:28</see>
/// <br/>
/// <c>LinearCast</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Update the body using linear casting. When stepping the body, its collision shape is cast from
/// start to destination using the starting rotation. The body will not be able to tunnel through thin
/// objects at high velocity, but tunneling is still possible if the body is long and thin and has high
/// angular velocity. Time is stolen from the object (which means it will move up to the first collision
/// and will not bounce off the surface until the next integration step). This will make the body appear
/// to go slower when it collides with high velocity. In order to not get stuck, the body is always
/// allowed to move by a fraction of it's inner radius, which may eventually lead it to pass through geometry.
///
/// Note that if you're using a collision listener, you can receive contact added/persisted notifications of contacts
/// that may in the end not happen. This happens between bodies that are using casting: If bodies A and B collide at t1
/// and B and C collide at t2 where t2 &amp;lt; t1 and A and C don't collide. In this case you may receive an incorrect contact
/// point added callback between A and B (which will be removed the next frame).
/// </code>
/// </remarks>
LinearCast,
}
}