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

146 lines
6.7 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/InternalEdgeRemovingCollector.h#L24">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:24</see>
/// <br/>
/// <c>class InternalEdgeRemovingCollector : public CollideShapeCollector</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Removes internal edges from collision results. Can be used to filter out 'ghost collisions'.
/// Based on: Contact generation for meshes - Pierre Terdiman (https://www.codercorner.com/MeshContacts.pdf)
///
/// Note that this class requires that CollideSettingsBase::mActiveEdgeMode == EActiveEdgeMode::CollideWithAll
/// and CollideSettingsBase::mCollectFacesMode == ECollectFacesMode::CollectFaces.
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct InternalEdgeRemovingCollector
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L265">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:265</see>
/// <br/>
/// <c>struct Voided</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// This algorithm tests a convex shape (shape 1) against a set of polygons (shape 2).
/// This assumption doesn't hold if the shape we're testing is a compound shape, so we must also
/// store the sub shape ID and ignore voided features that belong to another sub shape ID.
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 16)]
public struct Voided
{
/// <summary>
/// <para>
/// Feature that is voided (of shape 2). Read with Vec3::sLoadFloat3Unsafe so must not be the last
/// member.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L267">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:267</see>
/// <br/>
/// <c>Float3 mFeature</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public float3 mFeature;
/// <summary>
/// <para>
/// Sub shape ID of the shape that is colliding against the feature (of shape 1).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L268">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:268</see>
/// <br/>
/// <c>SubShapeID mSubShapeID</c>
/// </para>
/// </summary>
[FieldOffset(12)]
public uint mSubShapeID;
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L96">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:96</see>
/// <br/>
/// <c>virtual void Reset() override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: CollideShapeCollector::Reset
/// </para>
/// </remarks>
public void Reset() => Jolt.PInvoke.InternalEdgeRemovingCollector_Reset(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L107">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:107</see>
/// <br/>
/// <c>virtual void OnBody(const Body &amp;inBody) override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: CollideShapeCollector::OnBody
/// </para>
/// </remarks>
public void OnBody(Body body) => Jolt.PInvoke.InternalEdgeRemovingCollector_OnBody(this, body);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L114">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:114</see>
/// <br/>
/// <c>virtual void AddHit(const CollideShapeResult &amp;inResult) override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: CollideShapeCollector::AddHit
/// </para>
/// </remarks>
public void AddHit(CollideShapeResult result) => Jolt.PInvoke.InternalEdgeRemovingCollector_AddHit(this, result);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L138">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:138</see>
/// <br/>
/// <c>void Flush()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// After all hits have been added, call this function to process the delayed results
/// </para>
/// </remarks>
public void Flush() => Jolt.PInvoke.InternalEdgeRemovingCollector_Flush(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/InternalEdgeRemovingCollector.h#L236">Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:236</see>
/// <br/>
/// <c>virtual void OnBodyEnd() override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: CollideShapeCollector::OnBodyEnd
/// </para>
/// </remarks>
public void OnBodyEnd() => Jolt.PInvoke.InternalEdgeRemovingCollector_OnBodyEnd(this);
}
}