This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,23 @@
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
);
}
}