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

87 lines
4.2 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L93">Jolt/Physics/Collision/CollideShape.h:93</see>
/// <br/>
/// <c>class CollideShapeSettings : public CollideSettingsBase</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Settings to be passed with a collision query
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct CollideShapeSettings : IDisposable
{
public static CollideShapeSettings Create() => Jolt.PInvoke.CollideShapeSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L100">Jolt/Physics/Collision/CollideShape.h:100</see>
/// <br/>
/// <c>float mMaxSeparationDistance = 0.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// When &amp;gt; 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not further away than this distance will be found.
/// Note that in this case CollideShapeResult::mPenetrationDepth can become negative to indicate that objects are not overlapping. (unit: meter)
/// </code>
/// </remarks>
public float GetMaxSeparationDistance() => Jolt.PInvoke.CollideShapeSettings_GetMaxSeparationDistance(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L100">Jolt/Physics/Collision/CollideShape.h:100</see>
/// <br/>
/// <c>float mMaxSeparationDistance = 0.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// When &amp;gt; 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not further away than this distance will be found.
/// Note that in this case CollideShapeResult::mPenetrationDepth can become negative to indicate that objects are not overlapping. (unit: meter)
/// </code>
/// </remarks>
public void SetMaxSeparationDistance(float value) => Jolt.PInvoke.CollideShapeSettings_SetMaxSeparationDistance(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L103">Jolt/Physics/Collision/CollideShape.h:103</see>
/// <br/>
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// How backfacing triangles should be treated
/// </para>
/// </remarks>
public EBackFaceMode GetBackFaceMode() => Jolt.PInvoke.CollideShapeSettings_GetBackFaceMode(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L103">Jolt/Physics/Collision/CollideShape.h:103</see>
/// <br/>
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// How backfacing triangles should be treated
/// </para>
/// </remarks>
public void SetBackFaceMode(EBackFaceMode value) => Jolt.PInvoke.CollideShapeSettings_SetBackFaceMode(this, value);
public static implicit operator CollideSettingsBase(CollideShapeSettings value) => Jolt.PInvoke.CollideShapeSettings_AsCollideSettingsBase(value);
public void Dispose() => Jolt.PInvoke.CollideShapeSettings_Destroy(this);
}
}