mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
71
Brutal.Jolt/Generated/PInvoke/ShapeCastResult.gen.cs
Normal file
71
Brutal.Jolt/Generated/PInvoke/ShapeCastResult.gen.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// <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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue