// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:24 ///
/// class InternalEdgeRemovingCollector : public CollideShapeCollector ///
///
/// /// /// 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. /// /// [InteropHandle] public readonly partial struct InternalEdgeRemovingCollector { /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:265 ///
/// struct Voided ///
///
/// /// /// 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. /// /// [StructLayout(LayoutKind.Explicit, Size = 16)] public struct Voided { /// /// /// Feature that is voided (of shape 2). Read with Vec3::sLoadFloat3Unsafe so must not be the last /// member. /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:267 ///
/// Float3 mFeature ///
///
[FieldOffset(0)] public float3 mFeature; /// /// /// Sub shape ID of the shape that is colliding against the feature (of shape 1). /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:268 ///
/// SubShapeID mSubShapeID ///
///
[FieldOffset(12)] public uint mSubShapeID; } /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:96 ///
/// virtual void Reset() override ///
///
/// /// /// See: CollideShapeCollector::Reset /// /// public void Reset() => Jolt.PInvoke.InternalEdgeRemovingCollector_Reset(this); /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:107 ///
/// virtual void OnBody(const Body &inBody) override ///
///
/// /// /// See: CollideShapeCollector::OnBody /// /// public void OnBody(Body body) => Jolt.PInvoke.InternalEdgeRemovingCollector_OnBody(this, body); /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:114 ///
/// virtual void AddHit(const CollideShapeResult &inResult) override ///
///
/// /// /// See: CollideShapeCollector::AddHit /// /// public void AddHit(CollideShapeResult result) => Jolt.PInvoke.InternalEdgeRemovingCollector_AddHit(this, result); /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:138 ///
/// void Flush() ///
///
/// /// /// After all hits have been added, call this function to process the delayed results /// /// public void Flush() => Jolt.PInvoke.InternalEdgeRemovingCollector_Flush(this); /// /// /// C++: /// Jolt/Physics/Collision/InternalEdgeRemovingCollector.h:236 ///
/// virtual void OnBodyEnd() override ///
///
/// /// /// See: CollideShapeCollector::OnBodyEnd /// /// public void OnBodyEnd() => Jolt.PInvoke.InternalEdgeRemovingCollector_OnBodyEnd(this); } }