mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
170
Brutal.Jolt/Generated/PInvoke/BroadPhase.gen.cs
Normal file
170
Brutal.Jolt/Generated/PInvoke/BroadPhase.gen.cs
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
// <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="BroadPhase.Init(BodyManager, BroadPhaseLayerInterface)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_Init")]
|
||||
public static partial void BroadPhase_Init(
|
||||
BroadPhase self,
|
||||
BodyManager bodyManager,
|
||||
BroadPhaseLayerInterface layerInterface
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.Optimize()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_Optimize")]
|
||||
public static partial void BroadPhase_Optimize(BroadPhase self);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.FrameSync()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_FrameSync")]
|
||||
public static partial void BroadPhase_FrameSync(BroadPhase self);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.LockModifications()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_LockModifications")]
|
||||
public static partial void BroadPhase_LockModifications(BroadPhase self);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.UnlockModifications()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_UnlockModifications")]
|
||||
public static partial void BroadPhase_UnlockModifications(BroadPhase self);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.RemoveBodies(Span{uint})"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_RemoveBodies")]
|
||||
public static partial void BroadPhase_RemoveBodies(BroadPhase self, uint* bodies, int number);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.NotifyBodiesAABBChanged(Span{uint}, bool)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesAABBChanged")]
|
||||
public static partial void BroadPhase_NotifyBodiesAABBChanged(
|
||||
BroadPhase self,
|
||||
uint* bodies,
|
||||
int number,
|
||||
Brutal.Bool8 takeLock
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="BroadPhase.NotifyBodiesLayerChanged(Span{uint})"/>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesLayerChanged")]
|
||||
public static partial void BroadPhase_NotifyBodiesLayerChanged(BroadPhase self, uint* bodies, int number);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Find all colliding pairs between dynamic bodies Note that this function is very specifically
|
||||
/// tailored for the PhysicsSystem::Update function, hence it is not part of the BroadPhaseQuery
|
||||
/// interface. One of the assumptions it can make is that no locking is needed during the query as it
|
||||
/// will only be called during a very particular part of the update.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L93">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:93</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void FindCollidingPairs(BodyID *ioActiveBodies, int inNumActiveBodies, float inSpeculativeContactDistance, const ObjectVsBroadPhaseLayerFilter &inObjectVsBroadPhaseLayerFilter, const ObjectLayerPairFilter &inObjectLayerPairFilter, BodyPairCollector &ioPairCollector) const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Find all colliding pairs between dynamic bodies
|
||||
/// Note that this function is very specifically tailored for the PhysicsSystem::Update function, hence it is not part of the BroadPhaseQuery interface.
|
||||
/// One of the assumptions it can make is that no locking is needed during the query as it will only be called during a very particular part of the update.
|
||||
/// @param ioActiveBodies is a list of bodies for which we need to find colliding pairs (this function can change the order of the ioActiveBodies array). This can be a subset of the set of active bodies in the system.
|
||||
/// @param inNumActiveBodies is the size of the ioActiveBodies array.
|
||||
/// @param inSpeculativeContactDistance Distance at which speculative contact points will be created.
|
||||
/// @param inObjectVsBroadPhaseLayerFilter is the filter that determines if an object can collide with a broadphase layer.
|
||||
/// @param inObjectLayerPairFilter is the filter that determines if two objects can collide.
|
||||
/// @param ioPairCollector receives callbacks for every body pair found.
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// Collects every hit into findcollidingpairsresults, 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>
|
||||
/// activeBodies is the buffer the native call works on, and its element count travels with it: the call
|
||||
/// may write through the span, and only for the duration of the call.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_FindCollidingPairs")]
|
||||
public static partial uint BroadPhase_FindCollidingPairs(
|
||||
BroadPhase self,
|
||||
uint* activeBodies,
|
||||
int numActiveBodies,
|
||||
float speculativeContactDistance,
|
||||
ObjectVsBroadPhaseLayerFilter objectVsBroadPhaseLayerFilter,
|
||||
ObjectLayerPairFilter objectLayerPairFilter,
|
||||
BodyPair* buffer,
|
||||
uint capacity
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Same as BroadPhaseQuery::CastAABox but can be implemented in a way to take no broad phase locks.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L96">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:96</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void CastAABoxNoLock(const AABoxCast &inBox, CastShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Collects every hit into castaaboxnolockresults, 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 = "BroadPhase_CastAABoxNoLock")]
|
||||
public static partial uint BroadPhase_CastAABoxNoLock(
|
||||
BroadPhase self,
|
||||
in AABoxCast box,
|
||||
BroadPhaseCastResult* buffer,
|
||||
uint capacity,
|
||||
BroadPhaseLayerFilter broadPhaseLayerFilter,
|
||||
ObjectLayerFilter objectLayerFilter
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Same as BroadPhaseQuery::CastAABox but can be implemented in a way to take no broad phase locks.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L96">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:96</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void CastAABoxNoLock(const AABoxCast &inBox, CastShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &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>
|
||||
/// <para>
|
||||
/// Pass default for broadPhaseLayerFilter to filter nothing out.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Pass default for objectLayerFilter to filter nothing out.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "BroadPhase_CastAABoxNoLockClosest")]
|
||||
public static partial uint BroadPhase_CastAABoxNoLockClosest(
|
||||
BroadPhase self,
|
||||
in AABoxCast box,
|
||||
out BroadPhaseCastResult result,
|
||||
BroadPhaseLayerFilter broadPhaseLayerFilter,
|
||||
ObjectLayerFilter objectLayerFilter
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue