mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
23
Brutal.Jolt/Manual/PInvoke.PenetrationDepth.cs
Normal file
23
Brutal.Jolt/Manual/PInvoke.PenetrationDepth.cs
Normal 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
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue