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

239 lines
13 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
{
/// <summary>
/// <para>
/// Cast a ray and add any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L35">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:35</see>
/// <br/>
/// <c>virtual void CastRay(const RayCast &amp;inRay, RayCastBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collects every hit into castrayresults, which you allocate and size. Returns how many were written;
/// totalHits is how many the query found, so a larger span is needed when it exceeds the span's length.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastRay")]
public static partial uint BroadPhaseQuery_CastRay(
BroadPhaseQuery self,
in RayCast ray,
BroadPhaseCastResult* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Cast a ray and add any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L35">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:35</see>
/// <br/>
/// <c>virtual void CastRay(const RayCast &amp;inRay, RayCastBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Keeps only the closest (or deepest) hit. Returns false, and writes a native default-constructed
/// result (e.g. RayCastResult's fraction is 1 + epsilon), when nothing was hit.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastRayClosest")]
public static partial uint BroadPhaseQuery_CastRayClosest(
BroadPhaseQuery self,
in RayCast ray,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Get bodies intersecting with inBox and any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L38">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:38</see>
/// <br/>
/// <c>virtual void CollideAABox(const AABox &amp;inBox, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collects every hit into collideaaboxresults, which you allocate and size. Returns how many were
/// written; totalHits is how many the query found, so a larger span is needed when it exceeds the
/// span's length.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollideAABox")]
public static partial uint BroadPhaseQuery_CollideAABox(
BroadPhaseQuery self,
in AABox box,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Get bodies intersecting with a sphere and any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L41">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:41</see>
/// <br/>
/// <c>virtual void CollideSphere(Vec3Arg inCenter, float inRadius, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collects every hit into collidesphereresults, which you allocate and size. Returns how many were
/// written; totalHits is how many the query found, so a larger span is needed when it exceeds the
/// span's length.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollideSphere")]
public static partial uint BroadPhaseQuery_CollideSphere(
BroadPhaseQuery self,
float3 center,
float radius,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Get bodies intersecting with a point and any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L44">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:44</see>
/// <br/>
/// <c>virtual void CollidePoint(Vec3Arg inPoint, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collects every hit into collidepointresults, which you allocate and size. Returns how many were
/// written; totalHits is how many the query found, so a larger span is needed when it exceeds the
/// span's length.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollidePoint")]
public static partial uint BroadPhaseQuery_CollidePoint(
BroadPhaseQuery self,
float3 point,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Get bodies intersecting with an oriented box and any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L47">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:47</see>
/// <br/>
/// <c>virtual void CollideOrientedBox(const OrientedBox &amp;inBox, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collects every hit into collideorientedboxresults, which you allocate and size. Returns how many
/// were written; totalHits is how many the query found, so a larger span is needed when it exceeds the
/// span's length.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollideOrientedBox")]
public static partial uint BroadPhaseQuery_CollideOrientedBox(
BroadPhaseQuery self,
OrientedBox box,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Cast a box and add any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L50">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:50</see>
/// <br/>
/// <c>virtual void CastAABox(const AABoxCast &amp;inBox, CastShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collects every hit into castaaboxresults, which you allocate and size. Returns how many were
/// written; totalHits is how many the query found, so a larger span is needed when it exceeds the
/// span's length.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastAABox")]
public static partial uint BroadPhaseQuery_CastAABox(
BroadPhaseQuery self,
in AABoxCast box,
BroadPhaseCastResult* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// Cast a box and add any hits to ioCollector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h#L50">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:50</see>
/// <br/>
/// <c>virtual void CastAABox(const AABoxCast &amp;inBox, CastShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &amp;inObjectLayerFilter = { }) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Keeps only the closest (or deepest) hit. Returns false, and writes a native default-constructed
/// result (e.g. RayCastResult's fraction is 1 + epsilon), when nothing was hit.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastAABoxClosest")]
public static partial uint BroadPhaseQuery_CastAABoxClosest(
BroadPhaseQuery self,
in AABoxCast box,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <inheritdoc cref="BroadPhaseQuery.GetBounds()"/>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_GetBounds")]
public static partial AABox BroadPhaseQuery_GetBounds(BroadPhaseQuery self);
}
}
}