brutal/Brutal.Jolt/Generated/Classes/CollideSettingsBase.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

175 lines
8.4 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// Settings to be passed with a collision query
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L71">Jolt/Physics/Collision/CollideShape.h:71</see>
/// <br/>
/// <c>class CollideSettingsBase</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct CollideSettingsBase : IDisposable
{
public static CollideSettingsBase Create() => Jolt.PInvoke.CollideSettingsBase_Create();
/// <summary>
/// <para>
/// How active edges (edges that a moving object should bump into) are handled
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L77">Jolt/Physics/Collision/CollideShape.h:77</see>
/// <br/>
/// <c>EActiveEdgeMode mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive</c>
/// </para>
/// </summary>
public ActiveEdgeMode GetActiveEdgeMode() => Jolt.PInvoke.CollideSettingsBase_GetActiveEdgeMode(this);
/// <summary>
/// <para>
/// How active edges (edges that a moving object should bump into) are handled
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L77">Jolt/Physics/Collision/CollideShape.h:77</see>
/// <br/>
/// <c>EActiveEdgeMode mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive</c>
/// </para>
/// </summary>
public void SetActiveEdgeMode(ActiveEdgeMode value) =>
Jolt.PInvoke.CollideSettingsBase_SetActiveEdgeMode(this, value);
/// <summary>
/// <para>
/// If colliding faces should be collected or only the collision point
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L80">Jolt/Physics/Collision/CollideShape.h:80</see>
/// <br/>
/// <c>ECollectFacesMode mCollectFacesMode = ECollectFacesMode::NoFaces</c>
/// </para>
/// </summary>
public CollectFacesMode GetCollectFacesMode() => Jolt.PInvoke.CollideSettingsBase_GetCollectFacesMode(this);
/// <summary>
/// <para>
/// If colliding faces should be collected or only the collision point
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L80">Jolt/Physics/Collision/CollideShape.h:80</see>
/// <br/>
/// <c>ECollectFacesMode mCollectFacesMode = ECollectFacesMode::NoFaces</c>
/// </para>
/// </summary>
public void SetCollectFacesMode(CollectFacesMode value) =>
Jolt.PInvoke.CollideSettingsBase_SetCollectFacesMode(this, value);
/// <summary>
/// <para>
/// If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit:
/// meter)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L83">Jolt/Physics/Collision/CollideShape.h:83</see>
/// <br/>
/// <c>float mCollisionTolerance = cDefaultCollisionTolerance</c>
/// </para>
/// </summary>
public float GetCollisionTolerance() => Jolt.PInvoke.CollideSettingsBase_GetCollisionTolerance(this);
/// <summary>
/// <para>
/// If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit:
/// meter)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L83">Jolt/Physics/Collision/CollideShape.h:83</see>
/// <br/>
/// <c>float mCollisionTolerance = cDefaultCollisionTolerance</c>
/// </para>
/// </summary>
public void SetCollisionTolerance(float value) =>
Jolt.PInvoke.CollideSettingsBase_SetCollisionTolerance(this, value);
/// <summary>
/// <para>
/// A factor that determines the accuracy of the penetration depth calculation. If the change of the squared
/// distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit:
/// dimensionless)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L86">Jolt/Physics/Collision/CollideShape.h:86</see>
/// <br/>
/// <c>float mPenetrationTolerance = cDefaultPenetrationTolerance</c>
/// </para>
/// </summary>
public float GetPenetrationTolerance() => Jolt.PInvoke.CollideSettingsBase_GetPenetrationTolerance(this);
/// <summary>
/// <para>
/// A factor that determines the accuracy of the penetration depth calculation. If the change of the squared
/// distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit:
/// dimensionless)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L86">Jolt/Physics/Collision/CollideShape.h:86</see>
/// <br/>
/// <c>float mPenetrationTolerance = cDefaultPenetrationTolerance</c>
/// </para>
/// </summary>
public void SetPenetrationTolerance(float value) =>
Jolt.PInvoke.CollideSettingsBase_SetPenetrationTolerance(this, value);
/// <summary>
/// <para>
/// When mActiveEdgeMode is CollideOnlyWithActive a movement direction can be provided. When hitting an
/// inactive edge, the system will select the triangle normal as penetration depth only if it impedes the
/// movement less than with the calculated penetration depth.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L89">Jolt/Physics/Collision/CollideShape.h:89</see>
/// <br/>
/// <c>Vec3 mActiveEdgeMovementDirection = Vec3::sZero()</c>
/// </para>
/// </summary>
public float3 GetActiveEdgeMovementDirection() =>
Jolt.PInvoke.CollideSettingsBase_GetActiveEdgeMovementDirection(this);
/// <summary>
/// <para>
/// When mActiveEdgeMode is CollideOnlyWithActive a movement direction can be provided. When hitting an
/// inactive edge, the system will select the triangle normal as penetration depth only if it impedes the
/// movement less than with the calculated penetration depth.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L89">Jolt/Physics/Collision/CollideShape.h:89</see>
/// <br/>
/// <c>Vec3 mActiveEdgeMovementDirection = Vec3::sZero()</c>
/// </para>
/// </summary>
public void SetActiveEdgeMovementDirection(float3 value) =>
Jolt.PInvoke.CollideSettingsBase_SetActiveEdgeMovementDirection(this, value);
public void Dispose() => Jolt.PInvoke.CollideSettingsBase_Destroy(this);
}
}