mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
23 lines
724 B
C#
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
|
|
);
|
|
}
|
|
}
|