brutal/Brutal.Jolt/Manual/PInvoke.PenetrationDepth.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

23 lines
724 B
C#

using System.Runtime.InteropServices;
using Brutal.Numerics;
namespace Brutal.JoltApi;
// Hand-written LibraryImport for the GJK/EPA penetration depth test (JoltPenetrationDepthShim.cpp).
// EPAPenetrationDepth is a template the parse can't bind.
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
[LibraryImport("jolt", EntryPoint = "Jolt_GetPenetrationDepth")]
public static partial Brutal.Bool8 GetPenetrationDepth(
ref ConvexObject a,
ref ConvexObject b,
float collisionToleranceSq,
float penetrationTolerance,
ref float3 v,
out float3 pointA,
out float3 pointB
);
}
}