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

60 lines
2.7 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <inheritdoc cref="CollideShapeResult.Create()"/>
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_Create")]
public static partial CollideShapeResult CollideShapeResult_Create();
/// <inheritdoc cref="CollideShapeResult.Create(float3, float3, float3, float, uint, uint, uint)"/>
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_Create_2")]
public static partial CollideShapeResult CollideShapeResult_Create_2(
float3 contactPointOn1,
float3 contactPointOn2,
float3 penetrationAxis,
float penetrationDepth,
uint subShapeID1,
uint subShapeID2,
uint bodyID2
);
/// <summary>
/// <para>
/// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'.
/// We use -penetration depth to get the hit with the biggest penetration depth
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L39">Jolt/Physics/Collision/CollideShape.h:39</see>
/// <br/>
/// <c>inline float GetEarlyOutFraction() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetEarlyOutFraction")]
public static partial float CollideShapeResult_GetEarlyOutFraction(ref CollideShapeResult self);
/// <summary>
/// <para>
/// Reverses the hit result, swapping contact point 1 with contact point 2 etc.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L42">Jolt/Physics/Collision/CollideShape.h:42</see>
/// <br/>
/// <c>inline CollideShapeResult Reversed() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_Reversed")]
public static partial CollideShapeResult CollideShapeResult_Reversed(ref CollideShapeResult self);
}
}
}