//
// 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
{
///
///
/// Cast a ray and add any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:35
///
/// virtual void CastRay(const RayCast &inRay, RayCastBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastRay")]
public static partial uint BroadPhaseQuery_CastRay(
BroadPhaseQuery self,
in RayCast ray,
BroadPhaseCastResult* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
///
/// Cast a ray and add any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:35
///
/// virtual void CastRay(const RayCast &inRay, RayCastBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastRayClosest")]
public static partial uint BroadPhaseQuery_CastRayClosest(
BroadPhaseQuery self,
in RayCast ray,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
///
/// Get bodies intersecting with inBox and any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:38
///
/// virtual void CollideAABox(const AABox &inBox, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollideAABox")]
public static partial uint BroadPhaseQuery_CollideAABox(
BroadPhaseQuery self,
in AABox box,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
///
/// Get bodies intersecting with a sphere and any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:41
///
/// virtual void CollideSphere(Vec3Arg inCenter, float inRadius, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[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
);
///
///
/// Get bodies intersecting with a point and any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:44
///
/// virtual void CollidePoint(Vec3Arg inPoint, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollidePoint")]
public static partial uint BroadPhaseQuery_CollidePoint(
BroadPhaseQuery self,
float3 point,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
///
/// Get bodies intersecting with an oriented box and any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:47
///
/// virtual void CollideOrientedBox(const OrientedBox &inBox, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CollideOrientedBox")]
public static partial uint BroadPhaseQuery_CollideOrientedBox(
BroadPhaseQuery self,
OrientedBox box,
uint* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
///
/// Cast a box and add any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:50
///
/// virtual void CastAABox(const AABoxCast &inBox, CastShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastAABox")]
public static partial uint BroadPhaseQuery_CastAABox(
BroadPhaseQuery self,
in AABoxCast box,
BroadPhaseCastResult* buffer,
uint capacity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
///
/// Cast a box and add any hits to ioCollector
///
///
/// C++:
/// Jolt/Physics/Collision/BroadPhase/BroadPhaseQuery.h:50
///
/// virtual void CastAABox(const AABoxCast &inBox, CastShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter = { }, const ObjectLayerFilter &inObjectLayerFilter = { }) const = 0
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_CastAABoxClosest")]
public static partial uint BroadPhaseQuery_CastAABoxClosest(
BroadPhaseQuery self,
in AABoxCast box,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseQuery_GetBounds")]
public static partial AABox BroadPhaseQuery_GetBounds(BroadPhaseQuery self);
}
}
}