mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
492
Brutal.Jolt/Generated/PInvoke/PhysicsSystem.gen.cs
Normal file
492
Brutal.Jolt/Generated/PInvoke/PhysicsSystem.gen.cs
Normal file
|
|
@ -0,0 +1,492 @@
|
|||
// <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="PhysicsSystem.Create()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_Create")]
|
||||
public static partial PhysicsSystem PhysicsSystem_Create();
|
||||
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_Destroy")]
|
||||
public static partial void PhysicsSystem_Destroy(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.Init(uint, uint, uint, uint, BroadPhaseLayerInterface, ObjectVsBroadPhaseLayerFilter, ObjectLayerPairFilter)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_Init")]
|
||||
public static partial void PhysicsSystem_Init(
|
||||
PhysicsSystem self,
|
||||
uint maxBodies,
|
||||
uint numBodyMutexes,
|
||||
uint maxBodyPairs,
|
||||
uint maxContactConstraints,
|
||||
BroadPhaseLayerInterface broadPhaseLayerInterface,
|
||||
ObjectVsBroadPhaseLayerFilter objectVsBroadPhaseLayerFilter,
|
||||
ObjectLayerPairFilter objectLayerPairFilter
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetBodyActivationListener(BodyActivationListener)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetBodyActivationListener")]
|
||||
public static partial void PhysicsSystem_SetBodyActivationListener(
|
||||
PhysicsSystem self,
|
||||
BodyActivationListener listener
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodyActivationListener()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodyActivationListener")]
|
||||
public static partial BodyActivationListener PhysicsSystem_GetBodyActivationListener(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetContactListener(ContactListener)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetContactListener")]
|
||||
public static partial void PhysicsSystem_SetContactListener(PhysicsSystem self, ContactListener listener);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetContactListener()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetContactListener")]
|
||||
public static partial ContactListener PhysicsSystem_GetContactListener(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetSoftBodyContactListener(SoftBodyContactListener)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetSoftBodyContactListener")]
|
||||
public static partial void PhysicsSystem_SetSoftBodyContactListener(
|
||||
PhysicsSystem self,
|
||||
SoftBodyContactListener listener
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetSoftBodyContactListener()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetSoftBodyContactListener")]
|
||||
public static partial SoftBodyContactListener PhysicsSystem_GetSoftBodyContactListener(PhysicsSystem self);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set the function that combines the friction of two bodies and returns it Default method is the
|
||||
/// geometric mean: sqrt(friction1 * friction2).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsSystem.h#L76">Jolt/Physics/PhysicsSystem.h:76</see>
|
||||
/// <br/>
|
||||
/// <c>void SetCombineFriction(ContactConstraintManager::CombineFunction inCombineFriction)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// combineFriction: The callback is invoked from native code: it must be a static method marked
|
||||
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
||||
/// verbatim. Jolt calls it without a null check, so null is rejected.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetCombineFriction")]
|
||||
public static partial void PhysicsSystem_SetCombineFriction(
|
||||
PhysicsSystem self,
|
||||
delegate* unmanaged[Cdecl]<Body, uint*, Body, uint*, float> combineFriction
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set the function that combines the restitution of two bodies and returns it Default method is
|
||||
/// max(restitution1, restitution1)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsSystem.h#L81">Jolt/Physics/PhysicsSystem.h:81</see>
|
||||
/// <br/>
|
||||
/// <c>void SetCombineRestitution(ContactConstraintManager::CombineFunction inCombineRestitution)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// combineRestitution: The callback is invoked from native code: it must be a static method marked
|
||||
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
||||
/// verbatim. Jolt calls it without a null check, so null is rejected.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetCombineRestitution")]
|
||||
public static partial void PhysicsSystem_SetCombineRestitution(
|
||||
PhysicsSystem self,
|
||||
delegate* unmanaged[Cdecl]<Body, uint*, Body, uint*, float> combineRestitution
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetSimShapeFilter(SimShapeFilter)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetSimShapeFilter")]
|
||||
public static partial void PhysicsSystem_SetSimShapeFilter(PhysicsSystem self, SimShapeFilter shapeFilter);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetSimShapeFilter()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetSimShapeFilter")]
|
||||
public static partial SimShapeFilter PhysicsSystem_GetSimShapeFilter(PhysicsSystem self);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Advanced use only: Default function that is used to collide two bodies during simulation.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsSystem.h#L108">Jolt/Physics/PhysicsSystem.h:108</see>
|
||||
/// <br/>
|
||||
/// <c>static void sDefaultSimCollideBodyVsBody(const Body &inBody1, const Body &inBody2, Mat44Arg inCenterOfMassTransform1, Mat44Arg inCenterOfMassTransform2, CollideShapeSettings &ioCollideShapeSettings, CollideShapeCollector &ioCollector, const ShapeFilter &inShapeFilter)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Collects every hit into defaultsimcollidebodyvsbodyresults, 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 shapeFilter to filter nothing out.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_DefaultSimCollideBodyVsBody")]
|
||||
public static partial uint PhysicsSystem_DefaultSimCollideBodyVsBody(
|
||||
Body body1,
|
||||
Body body2,
|
||||
in float4x4 centerOfMassTransform1,
|
||||
in float4x4 centerOfMassTransform2,
|
||||
CollideShapeSettings collideShapeSettings,
|
||||
CollideShapeResult* buffer,
|
||||
uint capacity,
|
||||
ShapeFilter shapeFilter
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Advanced use only: Default function that is used to collide two bodies during simulation.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsSystem.h#L108">Jolt/Physics/PhysicsSystem.h:108</see>
|
||||
/// <br/>
|
||||
/// <c>static void sDefaultSimCollideBodyVsBody(const Body &inBody1, const Body &inBody2, Mat44Arg inCenterOfMassTransform1, Mat44Arg inCenterOfMassTransform2, CollideShapeSettings &ioCollideShapeSettings, CollideShapeCollector &ioCollector, const ShapeFilter &inShapeFilter)</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 shapeFilter to filter nothing out.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_DefaultSimCollideBodyVsBodyClosest")]
|
||||
public static partial uint PhysicsSystem_DefaultSimCollideBodyVsBodyClosest(
|
||||
Body body1,
|
||||
Body body2,
|
||||
in float4x4 centerOfMassTransform1,
|
||||
in float4x4 centerOfMassTransform2,
|
||||
CollideShapeSettings collideShapeSettings,
|
||||
out CollideShapeResult result,
|
||||
ShapeFilter shapeFilter
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetPhysicsSettings(in PhysicsSettings)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetPhysicsSettings")]
|
||||
public static partial void PhysicsSystem_SetPhysicsSettings(
|
||||
PhysicsSystem self,
|
||||
in PhysicsSettings settings
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetPhysicsSettings()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetPhysicsSettings")]
|
||||
public static partial void PhysicsSystem_GetPhysicsSettings(
|
||||
PhysicsSystem self,
|
||||
out PhysicsSettings outResult
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodyInterface()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodyInterface")]
|
||||
public static partial BodyInterface PhysicsSystem_GetBodyInterface(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodyInterfaceNoLock()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodyInterfaceNoLock")]
|
||||
public static partial BodyInterface PhysicsSystem_GetBodyInterfaceNoLock(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBroadPhaseQuery()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBroadPhaseQuery")]
|
||||
public static partial BroadPhaseQuery PhysicsSystem_GetBroadPhaseQuery(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetNarrowPhaseQuery()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetNarrowPhaseQuery")]
|
||||
public static partial NarrowPhaseQuery PhysicsSystem_GetNarrowPhaseQuery(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetNarrowPhaseQueryNoLock()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetNarrowPhaseQueryNoLock")]
|
||||
public static partial NarrowPhaseQuery PhysicsSystem_GetNarrowPhaseQueryNoLock(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.AddConstraint(Constraint)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_AddConstraint")]
|
||||
public static partial void PhysicsSystem_AddConstraint(PhysicsSystem self, Constraint constraint);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.RemoveConstraint(Constraint)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_RemoveConstraint")]
|
||||
public static partial void PhysicsSystem_RemoveConstraint(PhysicsSystem self, Constraint constraint);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.AddConstraints(Ptr{Constraint}, int)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_AddConstraints")]
|
||||
public static partial void PhysicsSystem_AddConstraints(
|
||||
PhysicsSystem self,
|
||||
Constraint* constraints,
|
||||
int number
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.RemoveConstraints(Ptr{Constraint}, int)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_RemoveConstraints")]
|
||||
public static partial void PhysicsSystem_RemoveConstraints(
|
||||
PhysicsSystem self,
|
||||
Constraint* constraints,
|
||||
int number
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetConstraints()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetConstraints")]
|
||||
public static partial nint PhysicsSystem_GetConstraints(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.OptimizeBroadPhase()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_OptimizeBroadPhase")]
|
||||
public static partial void PhysicsSystem_OptimizeBroadPhase(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.AddStepListener(PhysicsStepListener)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_AddStepListener")]
|
||||
public static partial void PhysicsSystem_AddStepListener(PhysicsSystem self, PhysicsStepListener listener);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.RemoveStepListener(PhysicsStepListener)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_RemoveStepListener")]
|
||||
public static partial void PhysicsSystem_RemoveStepListener(
|
||||
PhysicsSystem self,
|
||||
PhysicsStepListener listener
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.Update(float, int, TempAllocator, JobSystem)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_Update")]
|
||||
public static partial PhysicsUpdateError PhysicsSystem_Update(
|
||||
PhysicsSystem self,
|
||||
float deltaTime,
|
||||
int collisionSteps,
|
||||
TempAllocator tempAllocator,
|
||||
JobSystem jobSystem
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SaveState(StateRecorder, StateRecorderState, StateRecorderFilter)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SaveState")]
|
||||
public static partial void PhysicsSystem_SaveState(
|
||||
PhysicsSystem self,
|
||||
StateRecorder stream,
|
||||
StateRecorderState state,
|
||||
StateRecorderFilter filter
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.RestoreState(StateRecorder, StateRecorderFilter)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_RestoreState")]
|
||||
public static partial Brutal.Bool8 PhysicsSystem_RestoreState(
|
||||
PhysicsSystem self,
|
||||
StateRecorder stream,
|
||||
StateRecorderFilter filter
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SaveBodyState(Body, StateRecorder)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SaveBodyState")]
|
||||
public static partial void PhysicsSystem_SaveBodyState(PhysicsSystem self, Body body, StateRecorder stream);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.RestoreBodyState(Body, StateRecorder)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_RestoreBodyState")]
|
||||
public static partial void PhysicsSystem_RestoreBodyState(
|
||||
PhysicsSystem self,
|
||||
Body body,
|
||||
StateRecorder stream
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.DrawBodies(in BodyManager.DrawSettings, DebugRenderer, BodyDrawFilter)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_DrawBodies")]
|
||||
public static partial void PhysicsSystem_DrawBodies(
|
||||
PhysicsSystem self,
|
||||
in BodyManager.DrawSettings settings,
|
||||
DebugRenderer renderer,
|
||||
BodyDrawFilter bodyFilter
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.DrawConstraints(DebugRenderer)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_DrawConstraints")]
|
||||
public static partial void PhysicsSystem_DrawConstraints(PhysicsSystem self, DebugRenderer renderer);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.DrawConstraintLimits(DebugRenderer)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_DrawConstraintLimits")]
|
||||
public static partial void PhysicsSystem_DrawConstraintLimits(PhysicsSystem self, DebugRenderer renderer);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.DrawConstraintReferenceFrame(DebugRenderer)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_DrawConstraintReferenceFrame")]
|
||||
public static partial void PhysicsSystem_DrawConstraintReferenceFrame(
|
||||
PhysicsSystem self,
|
||||
DebugRenderer renderer
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetGravity(float3)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetGravity")]
|
||||
public static partial void PhysicsSystem_SetGravity(PhysicsSystem self, float3 gravity);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetGravity()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetGravity")]
|
||||
public static partial float3 PhysicsSystem_GetGravity(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodyLockInterfaceNoLock()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodyLockInterfaceNoLock")]
|
||||
public static partial BodyLockInterfaceNoLock PhysicsSystem_GetBodyLockInterfaceNoLock(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodyLockInterface()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodyLockInterface")]
|
||||
public static partial BodyLockInterfaceLocking PhysicsSystem_GetBodyLockInterface(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBroadPhaseLayerInterface()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBroadPhaseLayerInterface")]
|
||||
public static partial BroadPhaseLayerInterface PhysicsSystem_GetBroadPhaseLayerInterface(
|
||||
PhysicsSystem self
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetObjectVsBroadPhaseLayerFilter()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetObjectVsBroadPhaseLayerFilter")]
|
||||
public static partial ObjectVsBroadPhaseLayerFilter PhysicsSystem_GetObjectVsBroadPhaseLayerFilter(
|
||||
PhysicsSystem self
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetObjectLayerPairFilter()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetObjectLayerPairFilter")]
|
||||
public static partial ObjectLayerPairFilter PhysicsSystem_GetObjectLayerPairFilter(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetDefaultBroadPhaseLayerFilter(ushort)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetDefaultBroadPhaseLayerFilter")]
|
||||
public static partial DefaultBroadPhaseLayerFilter PhysicsSystem_GetDefaultBroadPhaseLayerFilter(
|
||||
PhysicsSystem self,
|
||||
ushort layer
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetDefaultLayerFilter(ushort)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetDefaultLayerFilter")]
|
||||
public static partial DefaultObjectLayerFilter PhysicsSystem_GetDefaultLayerFilter(
|
||||
PhysicsSystem self,
|
||||
ushort layer
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetNumBodies()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetNumBodies")]
|
||||
public static partial uint PhysicsSystem_GetNumBodies(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetNumActiveBodies(BodyType)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetNumActiveBodies")]
|
||||
public static partial uint PhysicsSystem_GetNumActiveBodies(PhysicsSystem self, BodyType type);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetMaxBodies()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetMaxBodies")]
|
||||
public static partial uint PhysicsSystem_GetMaxBodies(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodyStats()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodyStats")]
|
||||
public static partial void PhysicsSystem_GetBodyStats(
|
||||
PhysicsSystem self,
|
||||
out BodyManager.BodyStats outResult
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBodies()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodies")]
|
||||
public static partial void PhysicsSystem_GetBodies(PhysicsSystem self, out nint bodyIDs);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get copy of the list of all bodies under protection of a lock.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsSystem.h#L235">Jolt/Physics/PhysicsSystem.h:235</see>
|
||||
/// <br/>
|
||||
/// <c>void GetBodies(BodyIDVector &outBodyIDs) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Get copy of the list of all bodies under protection of a lock.
|
||||
/// @param outBodyIDs On return, this will contain the list of BodyIDs
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// Copies the contents into results, which you allocate and size - the allocation-free form of the
|
||||
/// NativeArray overload beside this one. Returns how many elements were written; totalHits is how many
|
||||
/// there were, so a larger span is needed when it exceeds the span's length.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBodies_2")]
|
||||
public static partial uint PhysicsSystem_GetBodies_2(PhysicsSystem self, uint* buffer, uint capacity);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetActiveBodies(BodyType)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetActiveBodies")]
|
||||
public static partial void PhysicsSystem_GetActiveBodies(
|
||||
PhysicsSystem self,
|
||||
BodyType type,
|
||||
out nint bodyIDs
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get copy of the list of active bodies under protection of a lock.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsSystem.h#L240">Jolt/Physics/PhysicsSystem.h:240</see>
|
||||
/// <br/>
|
||||
/// <c>void GetActiveBodies(EBodyType inType, BodyIDVector &outBodyIDs) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Get copy of the list of active bodies under protection of a lock.
|
||||
/// @param inType The type of bodies to get
|
||||
/// @param outBodyIDs On return, this will contain the list of BodyIDs
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// Copies the contents into results, which you allocate and size - the allocation-free form of the
|
||||
/// NativeArray overload beside this one. Returns how many elements were written; totalHits is how many
|
||||
/// there were, so a larger span is needed when it exceeds the span's length.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetActiveBodies_2")]
|
||||
public static partial uint PhysicsSystem_GetActiveBodies_2(
|
||||
PhysicsSystem self,
|
||||
BodyType type,
|
||||
uint* buffer,
|
||||
uint capacity
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.WereBodiesInContact(uint, uint)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_WereBodiesInContact")]
|
||||
public static partial Brutal.Bool8 PhysicsSystem_WereBodiesInContact(
|
||||
PhysicsSystem self,
|
||||
uint body1ID,
|
||||
uint body2ID
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetBounds()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetBounds")]
|
||||
public static partial AABox PhysicsSystem_GetBounds(PhysicsSystem self);
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetMaxBodiesLimit()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetMaxBodiesLimit")]
|
||||
public static partial uint PhysicsSystem_GetMaxBodiesLimit();
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetMaxBodyPairsLimit()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetMaxBodyPairsLimit")]
|
||||
public static partial uint PhysicsSystem_GetMaxBodyPairsLimit();
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetMaxContactConstraintsLimit()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetMaxContactConstraintsLimit")]
|
||||
public static partial uint PhysicsSystem_GetMaxContactConstraintsLimit();
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.GetDrawMotionQualityLinearCast()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_GetDrawMotionQualityLinearCast")]
|
||||
public static partial Brutal.Bool8 PhysicsSystem_GetDrawMotionQualityLinearCast();
|
||||
|
||||
/// <inheritdoc cref="PhysicsSystem.SetDrawMotionQualityLinearCast(bool)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "PhysicsSystem_SetDrawMotionQualityLinearCast")]
|
||||
public static partial void PhysicsSystem_SetDrawMotionQualityLinearCast(Brutal.Bool8 value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue