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

71 lines
3.2 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="ShapeCastResult.Create()"/>
[LibraryImport("jolt", EntryPoint = "ShapeCastResult_Create")]
public static partial ShapeCastResult ShapeCastResult_Create();
/// <inheritdoc cref="ShapeCastResult.Create(float, float3, float3, float3, bool, uint, uint, uint)"/>
[LibraryImport("jolt", EntryPoint = "ShapeCastResult_Create_2")]
public static partial ShapeCastResult ShapeCastResult_Create_2(
float fraction,
float3 contactPoint1,
float3 contactPoint2,
float3 contactNormalOrPenetrationDepth,
Brutal.Bool8 backFaceHit,
uint subShapeID1,
uint subShapeID2,
uint bodyID2
);
/// <summary>
/// <para>
/// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'.
/// For rays/cast shapes we can just use the collision fraction. The fraction and penetration depth are
/// combined in such a way that deeper hits at fraction 0 go first.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L141">Jolt/Physics/Collision/ShapeCast.h:141</see>
/// <br/>
/// <c>inline float GetEarlyOutFraction() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "ShapeCastResult_GetEarlyOutFraction")]
public static partial float ShapeCastResult_GetEarlyOutFraction(ref ShapeCastResult 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/ShapeCast.h#L145">Jolt/Physics/Collision/ShapeCast.h:145</see>
/// <br/>
/// <c>ShapeCastResult Reversed(Vec3Arg inWorldSpaceCastDirection) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Reverses the hit result, swapping contact point 1 with contact point 2 etc.
/// @param inWorldSpaceCastDirection Direction of the shape cast in world space
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "ShapeCastResult_Reversed")]
public static partial ShapeCastResult ShapeCastResult_Reversed(
ref ShapeCastResult self,
float3 worldSpaceCastDirection
);
}
}
}