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

274 lines
14 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
{
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_Create")]
public static partial BroadPhaseQuadTree BroadPhaseQuadTree_Create();
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_Destroy")]
public static partial void BroadPhaseQuadTree_Destroy(BroadPhaseQuadTree self);
/// <inheritdoc cref="BroadPhaseQuadTree.NotifyBodiesAABBChanged(Span{uint}, bool)"/>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_NotifyBodiesAABBChanged")]
public static partial void BroadPhaseQuadTree_NotifyBodiesAABBChanged(
BroadPhaseQuadTree self,
uint* bodies,
int number,
Brutal.Bool8 takeLock
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L36">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:36</see>
/// <br/>
/// <c>virtual void CastRay(const RayCast &amp;inRay, RayCastBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CastRay")]
public static partial uint BroadPhaseQuadTree_CastRay(
BroadPhaseQuadTree self,
in RayCast ray,
BroadPhaseCastResult* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L36">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:36</see>
/// <br/>
/// <c>virtual void CastRay(const RayCast &amp;inRay, RayCastBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CastRayClosest")]
public static partial uint BroadPhaseQuadTree_CastRayClosest(
BroadPhaseQuadTree self,
in RayCast ray,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L37">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:37</see>
/// <br/>
/// <c>virtual void CollideAABox(const AABox &amp;inBox, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CollideAABox")]
public static partial uint BroadPhaseQuadTree_CollideAABox(
BroadPhaseQuadTree self,
in AABox box,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L38">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:38</see>
/// <br/>
/// <c>virtual void CollideSphere(Vec3Arg inCenter, float inRadius, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CollideSphere")]
public static partial uint BroadPhaseQuadTree_CollideSphere(
BroadPhaseQuadTree self,
float3 center,
float radius,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L39">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:39</see>
/// <br/>
/// <c>virtual void CollidePoint(Vec3Arg inPoint, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CollidePoint")]
public static partial uint BroadPhaseQuadTree_CollidePoint(
BroadPhaseQuadTree self,
float3 point,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L40">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:40</see>
/// <br/>
/// <c>virtual void CollideOrientedBox(const OrientedBox &amp;inBox, CollideShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CollideOrientedBox")]
public static partial uint BroadPhaseQuadTree_CollideOrientedBox(
BroadPhaseQuadTree self,
OrientedBox box,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L42">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:42</see>
/// <br/>
/// <c>virtual void CastAABox(const AABoxCast &amp;inBox, CastShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CastAABox")]
public static partial uint BroadPhaseQuadTree_CastAABox(
BroadPhaseQuadTree self,
in AABoxCast box,
BroadPhaseCastResult* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h#L42">Jolt/Physics/Collision/BroadPhase/BroadPhaseQuadTree.h:42</see>
/// <br/>
/// <c>virtual void CastAABox(const AABoxCast &amp;inBox, CastShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter) const override</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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuadTree_CastAABoxClosest")]
public static partial uint BroadPhaseQuadTree_CastAABoxClosest(
BroadPhaseQuadTree self,
in AABoxCast box,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
}
}
}