This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37
276 changed files with 784842 additions and 0 deletions

View file

@ -0,0 +1,29 @@
// <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="AABBTreeBuilder.Create(TriangleSplitter, uint)"/>
[LibraryImport("jolt", EntryPoint = "AABBTreeBuilder_Create")]
public static partial AABBTreeBuilder AABBTreeBuilder_Create(
TriangleSplitter splitter,
uint maxTrianglesPerLeaf
);
[LibraryImport("jolt", EntryPoint = "AABBTreeBuilder_Destroy")]
public static partial void AABBTreeBuilder_Destroy(AABBTreeBuilder self);
/// <inheritdoc cref="AABBTreeBuilder.GetTriangles()"/>
[LibraryImport("jolt", EntryPoint = "AABBTreeBuilder_GetTriangles")]
public static partial void AABBTreeBuilder_GetTriangles(AABBTreeBuilder self, out NativeSpanView outResult);
}
}
}

View file

@ -0,0 +1,435 @@
// <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="AABox.Create()"/>
[LibraryImport("jolt", EntryPoint = "AABox_Create")]
public static partial AABox AABox_Create();
/// <inheritdoc cref="AABox.Create(float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "AABox_Create_2")]
public static partial AABox AABox_Create_2(float3 min, float3 max);
/// <inheritdoc cref="AABox.Create(double3, double3)"/>
[LibraryImport("jolt", EntryPoint = "AABox_Create_3")]
public static partial AABox AABox_Create_3(double3 min, double3 max);
/// <inheritdoc cref="AABox.Create(float3, float)"/>
[LibraryImport("jolt", EntryPoint = "AABox_Create_4")]
public static partial AABox AABox_Create_4(float3 center, float radius);
/// <inheritdoc cref="AABox.FromTwoPoints(float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "AABox_FromTwoPoints")]
public static partial AABox AABox_FromTwoPoints(float3 p1, float3 p2);
/// <inheritdoc cref="AABox.FromTriangle(ReadOnlySpan{float3}, in IndexedTriangle)"/>
[LibraryImport("jolt", EntryPoint = "AABox_FromTriangle")]
public static partial AABox AABox_FromTriangle(
float3* vertices,
nuint verticesCount,
in IndexedTriangle triangle
);
/// <inheritdoc cref="AABox.Biggest()"/>
[LibraryImport("jolt", EntryPoint = "AABox_Biggest")]
public static partial AABox AABox_Biggest();
/// <summary>
/// <para>
/// Reset the bounding box to an empty bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L49">Jolt/Geometry/AABox.h:49</see>
/// <br/>
/// <c>void SetEmpty()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_SetEmpty")]
public static partial void AABox_SetEmpty(ref AABox self);
/// <summary>
/// <para>
/// Check if the bounding box is valid (max &gt;= min)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L56">Jolt/Geometry/AABox.h:56</see>
/// <br/>
/// <c>bool IsValid() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_IsValid")]
public static partial Brutal.Bool8 AABox_IsValid(ref AABox self);
/// <summary>
/// <para>
/// Encapsulate triangle in bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L87">Jolt/Geometry/AABox.h:87</see>
/// <br/>
/// <c>void Encapsulate(const VertexList &amp;inVertices, const IndexedTriangle &amp;inTriangle)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// vertices is copied into a native container for the call; the span is only read.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate")]
public static partial void AABox_Encapsulate(
ref AABox self,
float3* vertices,
nuint verticesCount,
in IndexedTriangle triangle
);
/// <summary>
/// <para>
/// Encapsulate point in bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L62">Jolt/Geometry/AABox.h:62</see>
/// <br/>
/// <c>void Encapsulate(Vec3Arg inPos)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_2")]
public static partial void AABox_Encapsulate_2(ref AABox self, float3 pos);
/// <summary>
/// <para>
/// Encapsulate bounding box in bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L69">Jolt/Geometry/AABox.h:69</see>
/// <br/>
/// <c>void Encapsulate(const AABox &amp;inRHS)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_3")]
public static partial void AABox_Encapsulate_3(ref AABox self, in AABox rhs);
/// <summary>
/// <para>
/// Encapsulate triangle in bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L76">Jolt/Geometry/AABox.h:76</see>
/// <br/>
/// <c>void Encapsulate(const Triangle &amp;inRHS)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_4")]
public static partial void AABox_Encapsulate_4(ref AABox self, in Triangle rhs);
/// <summary>
/// <para>
/// Intersect this bounding box with inOther, returns the intersection
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L94">Jolt/Geometry/AABox.h:94</see>
/// <br/>
/// <c>AABox Intersect(const AABox &amp;inOther) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Intersect")]
public static partial AABox AABox_Intersect(ref AABox self, in AABox other);
/// <summary>
/// <para>
/// Make sure that each edge of the bounding box has a minimal length
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L100">Jolt/Geometry/AABox.h:100</see>
/// <br/>
/// <c>void EnsureMinimalEdgeLength(float inMinEdgeLength)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_EnsureMinimalEdgeLength")]
public static partial void AABox_EnsureMinimalEdgeLength(ref AABox self, float minEdgeLength);
/// <summary>
/// <para>
/// Widen the box on both sides by inVector
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L107">Jolt/Geometry/AABox.h:107</see>
/// <br/>
/// <c>void ExpandBy(Vec3Arg inVector)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_ExpandBy")]
public static partial void AABox_ExpandBy(ref AABox self, float3 vector);
/// <summary>
/// <para>
/// Get center of bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L114">Jolt/Geometry/AABox.h:114</see>
/// <br/>
/// <c>Vec3 GetCenter() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetCenter")]
public static partial float3 AABox_GetCenter(ref AABox self);
/// <summary>
/// <para>
/// Get extent of bounding box (half of the size)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L120">Jolt/Geometry/AABox.h:120</see>
/// <br/>
/// <c>Vec3 GetExtent() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetExtent")]
public static partial float3 AABox_GetExtent(ref AABox self);
/// <summary>
/// <para>
/// Get size of bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L126">Jolt/Geometry/AABox.h:126</see>
/// <br/>
/// <c>Vec3 GetSize() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetSize")]
public static partial float3 AABox_GetSize(ref AABox self);
/// <summary>
/// <para>
/// Get surface area of bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L132">Jolt/Geometry/AABox.h:132</see>
/// <br/>
/// <c>float GetSurfaceArea() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetSurfaceArea")]
public static partial float AABox_GetSurfaceArea(ref AABox self);
/// <summary>
/// <para>
/// Get volume of bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L139">Jolt/Geometry/AABox.h:139</see>
/// <br/>
/// <c>float GetVolume() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetVolume")]
public static partial float AABox_GetVolume(ref AABox self);
/// <summary>
/// <para>
/// Check if this box contains another box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L146">Jolt/Geometry/AABox.h:146</see>
/// <br/>
/// <c>bool Contains(const AABox &amp;inOther) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Contains")]
public static partial Brutal.Bool8 AABox_Contains(ref AABox self, in AABox other);
/// <summary>
/// <para>
/// Check if this box contains a point
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L152">Jolt/Geometry/AABox.h:152</see>
/// <br/>
/// <c>bool Contains(Vec3Arg inOther) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Contains_2")]
public static partial Brutal.Bool8 AABox_Contains_2(ref AABox self, float3 other);
/// <summary>
/// <para>
/// Check if this box contains a point
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L158">Jolt/Geometry/AABox.h:158</see>
/// <br/>
/// <c>bool Contains(DVec3Arg inOther) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Contains_3")]
public static partial Brutal.Bool8 AABox_Contains_3(ref AABox self, double3 other);
/// <summary>
/// <para>
/// Check if this box overlaps with another box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L164">Jolt/Geometry/AABox.h:164</see>
/// <br/>
/// <c>bool Overlaps(const AABox &amp;inOther) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Overlaps")]
public static partial Brutal.Bool8 AABox_Overlaps(ref AABox self, in AABox other);
/// <summary>
/// <para>
/// Check if this box overlaps with a plane
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L170">Jolt/Geometry/AABox.h:170</see>
/// <br/>
/// <c>bool Overlaps(const Plane &amp;inPlane) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Overlaps_2")]
public static partial Brutal.Bool8 AABox_Overlaps_2(ref AABox self, in Plane plane);
/// <summary>
/// <para>
/// Translate bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L179">Jolt/Geometry/AABox.h:179</see>
/// <br/>
/// <c>void Translate(Vec3Arg inTranslation)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Translate")]
public static partial void AABox_Translate(ref AABox self, float3 translation);
/// <summary>
/// <para>
/// Translate bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L186">Jolt/Geometry/AABox.h:186</see>
/// <br/>
/// <c>void Translate(DVec3Arg inTranslation)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Translate_2")]
public static partial void AABox_Translate_2(ref AABox self, double3 translation);
/// <summary>
/// <para>
/// Transform bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L193">Jolt/Geometry/AABox.h:193</see>
/// <br/>
/// <c>AABox Transformed(Mat44Arg inMatrix) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Transformed")]
public static partial AABox AABox_Transformed(ref AABox self, in float4x4 matrix);
/// <summary>
/// <para>
/// Transform bounding box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L216">Jolt/Geometry/AABox.h:216</see>
/// <br/>
/// <c>AABox Transformed(DMat44Arg inMatrix) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Transformed_2")]
public static partial AABox AABox_Transformed_2(ref AABox self, in double4x4 matrix);
/// <summary>
/// <para>
/// Scale this bounding box, can handle non-uniform and negative scaling
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L224">Jolt/Geometry/AABox.h:224</see>
/// <br/>
/// <c>AABox Scaled(Vec3Arg inScale) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Scaled")]
public static partial AABox AABox_Scaled(ref AABox self, float3 scale);
/// <summary>
/// <para>
/// Calculate the support vector for this convex shape.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L230">Jolt/Geometry/AABox.h:230</see>
/// <br/>
/// <c>Vec3 GetSupport(Vec3Arg inDirection) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetSupport")]
public static partial float3 AABox_GetSupport(ref AABox self, float3 direction);
/// <summary>
/// <para>
/// Get the closest point on or in this box to inPoint
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L297">Jolt/Geometry/AABox.h:297</see>
/// <br/>
/// <c>Vec3 GetClosestPoint(Vec3Arg inPoint) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetClosestPoint")]
public static partial float3 AABox_GetClosestPoint(ref AABox self, float3 point);
/// <summary>
/// <para>
/// Get the squared distance between inPoint and this box (will be 0 if in Point is inside the box)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/AABox.h#L303">Jolt/Geometry/AABox.h:303</see>
/// <br/>
/// <c>inline float GetSqDistanceTo(Vec3Arg inPoint) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetSqDistanceTo")]
public static partial float AABox_GetSqDistanceTo(ref AABox self, float3 point);
}
}
}

View file

@ -0,0 +1,139 @@
// <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 = "AngleConstraintPart_Create")]
public static partial AngleConstraintPart AngleConstraintPart_Create();
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_Destroy")]
public static partial void AngleConstraintPart_Destroy(AngleConstraintPart self);
/// <inheritdoc cref="AngleConstraintPart.CalculateConstraintProperties(Body, Body, float3, float)"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintProperties")]
public static partial void AngleConstraintPart_CalculateConstraintProperties(
AngleConstraintPart self,
Body body1,
Body body2,
float3 worldSpaceAxis,
float bias
);
/// <inheritdoc cref="AngleConstraintPart.CalculateConstraintPropertiesWithFrequencyAndDamping(float, Body, Body, float3, float, float, float, float)"/>
[LibraryImport(
"jolt",
EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithFrequencyAndDamping"
)]
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithFrequencyAndDamping(
AngleConstraintPart self,
float deltaTime,
Body body1,
Body body2,
float3 worldSpaceAxis,
float bias,
float c,
float frequency,
float damping
);
/// <inheritdoc cref="AngleConstraintPart.CalculateConstraintPropertiesWithStiffnessAndDamping(float, Body, Body, float3, float, float, float, float)"/>
[LibraryImport(
"jolt",
EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithStiffnessAndDamping"
)]
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithStiffnessAndDamping(
AngleConstraintPart self,
float deltaTime,
Body body1,
Body body2,
float3 worldSpaceAxis,
float bias,
float c,
float stiffness,
float damping
);
/// <inheritdoc cref="AngleConstraintPart.CalculateConstraintPropertiesWithSettingsForLimit(float, Body, Body, float3, float, float, SpringSettings)"/>
[LibraryImport(
"jolt",
EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithSettingsForLimit"
)]
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithSettingsForLimit(
AngleConstraintPart self,
float deltaTime,
Body body1,
Body body2,
float3 worldSpaceAxis,
float bias,
float c,
SpringSettings springSettings
);
/// <inheritdoc cref="AngleConstraintPart.CalculateConstraintPropertiesWithSettingsForMotor(float, Body, Body, float3, float, float, SpringSettings)"/>
[LibraryImport(
"jolt",
EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithSettingsForMotor"
)]
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithSettingsForMotor(
AngleConstraintPart self,
float deltaTime,
Body body1,
Body body2,
float3 worldSpaceAxis,
float bias,
float c,
SpringSettings springSettings
);
/// <inheritdoc cref="AngleConstraintPart.Deactivate()"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_Deactivate")]
public static partial void AngleConstraintPart_Deactivate(AngleConstraintPart self);
/// <inheritdoc cref="AngleConstraintPart.IsActive()"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_IsActive")]
public static partial Brutal.Bool8 AngleConstraintPart_IsActive(AngleConstraintPart self);
/// <inheritdoc cref="AngleConstraintPart.WarmStart(Body, Body, float)"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_WarmStart")]
public static partial void AngleConstraintPart_WarmStart(
AngleConstraintPart self,
Body body1,
Body body2,
float warmStartImpulseRatio
);
/// <inheritdoc cref="AngleConstraintPart.SolveVelocityConstraint(Body, Body, float3, float, float)"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 AngleConstraintPart_SolveVelocityConstraint(
AngleConstraintPart self,
Body body1,
Body body2,
float3 worldSpaceAxis,
float minLambda,
float maxLambda
);
/// <inheritdoc cref="AngleConstraintPart.GetTotalLambda()"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_GetTotalLambda")]
public static partial float AngleConstraintPart_GetTotalLambda(AngleConstraintPart self);
/// <inheritdoc cref="AngleConstraintPart.SolvePositionConstraint(Body, Body, float, float)"/>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_SolvePositionConstraint")]
public static partial Brutal.Bool8 AngleConstraintPart_SolvePositionConstraint(
AngleConstraintPart self,
Body body1,
Body body2,
float c,
float baumgarte
);
}
}
}

View file

@ -0,0 +1,145 @@
// <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 = "AxisConstraintPart_Create")]
public static partial AxisConstraintPart AxisConstraintPart_Create();
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_Destroy")]
public static partial void AxisConstraintPart_Destroy(AxisConstraintPart self);
/// <inheritdoc cref="AxisConstraintPart.CalculateConstraintProperties(Body, float3, Body, float3, float3, float)"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_CalculateConstraintProperties")]
public static partial void AxisConstraintPart_CalculateConstraintProperties(
AxisConstraintPart self,
Body body1,
float3 r1PlusU,
Body body2,
float3 r2,
float3 worldSpaceAxis,
float bias
);
/// <inheritdoc cref="AxisConstraintPart.CalculateConstraintPropertiesWithFrequencyAndDamping(float, Body, float3, Body, float3, float3, float, float, float, float)"/>
[LibraryImport(
"jolt",
EntryPoint = "AxisConstraintPart_CalculateConstraintPropertiesWithFrequencyAndDamping"
)]
public static partial void AxisConstraintPart_CalculateConstraintPropertiesWithFrequencyAndDamping(
AxisConstraintPart self,
float deltaTime,
Body body1,
float3 r1PlusU,
Body body2,
float3 r2,
float3 worldSpaceAxis,
float bias,
float c,
float frequency,
float damping
);
/// <inheritdoc cref="AxisConstraintPart.CalculateConstraintPropertiesWithStiffnessAndDamping(float, Body, float3, Body, float3, float3, float, float, float, float)"/>
[LibraryImport(
"jolt",
EntryPoint = "AxisConstraintPart_CalculateConstraintPropertiesWithStiffnessAndDamping"
)]
public static partial void AxisConstraintPart_CalculateConstraintPropertiesWithStiffnessAndDamping(
AxisConstraintPart self,
float deltaTime,
Body body1,
float3 r1PlusU,
Body body2,
float3 r2,
float3 worldSpaceAxis,
float bias,
float c,
float stiffness,
float damping
);
/// <inheritdoc cref="AxisConstraintPart.CalculateConstraintPropertiesWithSettingsForLimit(float, Body, float3, Body, float3, float3, float, float, SpringSettings)"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_CalculateConstraintPropertiesWithSettingsForLimit")]
public static partial void AxisConstraintPart_CalculateConstraintPropertiesWithSettingsForLimit(
AxisConstraintPart self,
float deltaTime,
Body body1,
float3 r1PlusU,
Body body2,
float3 r2,
float3 worldSpaceAxis,
float bias,
float c,
SpringSettings springSettings
);
/// <inheritdoc cref="AxisConstraintPart.CalculateConstraintPropertiesWithSettingsForMotor(float, Body, float3, Body, float3, float3, float, float, SpringSettings)"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_CalculateConstraintPropertiesWithSettingsForMotor")]
public static partial void AxisConstraintPart_CalculateConstraintPropertiesWithSettingsForMotor(
AxisConstraintPart self,
float deltaTime,
Body body1,
float3 r1PlusU,
Body body2,
float3 r2,
float3 worldSpaceAxis,
float bias,
float c,
SpringSettings springSettings
);
/// <inheritdoc cref="AxisConstraintPart.Deactivate()"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_Deactivate")]
public static partial void AxisConstraintPart_Deactivate(AxisConstraintPart self);
/// <inheritdoc cref="AxisConstraintPart.IsActive()"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_IsActive")]
public static partial Brutal.Bool8 AxisConstraintPart_IsActive(AxisConstraintPart self);
/// <inheritdoc cref="AxisConstraintPart.WarmStart(Body, Body, float3, float)"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_WarmStart")]
public static partial void AxisConstraintPart_WarmStart(
AxisConstraintPart self,
Body body1,
Body body2,
float3 worldSpaceAxis,
float warmStartImpulseRatio
);
/// <inheritdoc cref="AxisConstraintPart.SolveVelocityConstraint(Body, Body, float3, float, float)"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 AxisConstraintPart_SolveVelocityConstraint(
AxisConstraintPart self,
Body body1,
Body body2,
float3 worldSpaceAxis,
float minLambda,
float maxLambda
);
/// <inheritdoc cref="AxisConstraintPart.GetTotalLambda()"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_GetTotalLambda")]
public static partial float AxisConstraintPart_GetTotalLambda(AxisConstraintPart self);
/// <inheritdoc cref="AxisConstraintPart.SolvePositionConstraint(Body, Body, float3, float, float)"/>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SolvePositionConstraint")]
public static partial Brutal.Bool8 AxisConstraintPart_SolvePositionConstraint(
AxisConstraintPart self,
Body body1,
Body body2,
float3 worldSpaceAxis,
float c,
float baumgarte
);
}
}
}

View file

@ -0,0 +1,454 @@
// <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="Body.GetID()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetID")]
public static partial uint Body_GetID(Body self);
/// <inheritdoc cref="Body.GetBodyType()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetBodyType")]
public static partial BodyType Body_GetBodyType(Body self);
/// <inheritdoc cref="Body.IsRigidBody()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsRigidBody")]
public static partial Brutal.Bool8 Body_IsRigidBody(Body self);
/// <inheritdoc cref="Body.IsSoftBody()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsSoftBody")]
public static partial Brutal.Bool8 Body_IsSoftBody(Body self);
/// <inheritdoc cref="Body.IsActive()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsActive")]
public static partial Brutal.Bool8 Body_IsActive(Body self);
/// <inheritdoc cref="Body.IsStatic()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsStatic")]
public static partial Brutal.Bool8 Body_IsStatic(Body self);
/// <inheritdoc cref="Body.IsKinematic()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsKinematic")]
public static partial Brutal.Bool8 Body_IsKinematic(Body self);
/// <inheritdoc cref="Body.IsDynamic()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsDynamic")]
public static partial Brutal.Bool8 Body_IsDynamic(Body self);
/// <inheritdoc cref="Body.CanBeKinematicOrDynamic()"/>
[LibraryImport("jolt", EntryPoint = "Body_CanBeKinematicOrDynamic")]
public static partial Brutal.Bool8 Body_CanBeKinematicOrDynamic(Body self);
/// <inheritdoc cref="Body.SetIsSensor(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetIsSensor")]
public static partial void Body_SetIsSensor(Body self, Brutal.Bool8 isSensor);
/// <inheritdoc cref="Body.IsSensor()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsSensor")]
public static partial Brutal.Bool8 Body_IsSensor(Body self);
/// <inheritdoc cref="Body.SetCollideKinematicVsNonDynamic(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetCollideKinematicVsNonDynamic")]
public static partial void Body_SetCollideKinematicVsNonDynamic(Body self, Brutal.Bool8 collide);
/// <inheritdoc cref="Body.GetCollideKinematicVsNonDynamic()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetCollideKinematicVsNonDynamic")]
public static partial Brutal.Bool8 Body_GetCollideKinematicVsNonDynamic(Body self);
/// <inheritdoc cref="Body.SetUseManifoldReduction(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetUseManifoldReduction")]
public static partial void Body_SetUseManifoldReduction(Body self, Brutal.Bool8 useReduction);
/// <inheritdoc cref="Body.GetUseManifoldReduction()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetUseManifoldReduction")]
public static partial Brutal.Bool8 Body_GetUseManifoldReduction(Body self);
/// <inheritdoc cref="Body.GetUseManifoldReductionWithBody(Body)"/>
[LibraryImport("jolt", EntryPoint = "Body_GetUseManifoldReductionWithBody")]
public static partial Brutal.Bool8 Body_GetUseManifoldReductionWithBody(Body self, Body body2);
/// <inheritdoc cref="Body.SetApplyGyroscopicForce(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetApplyGyroscopicForce")]
public static partial void Body_SetApplyGyroscopicForce(Body self, Brutal.Bool8 apply);
/// <inheritdoc cref="Body.GetApplyGyroscopicForce()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetApplyGyroscopicForce")]
public static partial Brutal.Bool8 Body_GetApplyGyroscopicForce(Body self);
/// <inheritdoc cref="Body.SetEnhancedInternalEdgeRemoval(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetEnhancedInternalEdgeRemoval")]
public static partial void Body_SetEnhancedInternalEdgeRemoval(Body self, Brutal.Bool8 apply);
/// <inheritdoc cref="Body.GetEnhancedInternalEdgeRemoval()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetEnhancedInternalEdgeRemoval")]
public static partial Brutal.Bool8 Body_GetEnhancedInternalEdgeRemoval(Body self);
/// <inheritdoc cref="Body.GetEnhancedInternalEdgeRemovalWithBody(Body)"/>
[LibraryImport("jolt", EntryPoint = "Body_GetEnhancedInternalEdgeRemovalWithBody")]
public static partial Brutal.Bool8 Body_GetEnhancedInternalEdgeRemovalWithBody(Body self, Body body2);
/// <inheritdoc cref="Body.GetMotionType()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetMotionType")]
public static partial MotionType Body_GetMotionType(Body self);
/// <inheritdoc cref="Body.SetMotionType(MotionType)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetMotionType")]
public static partial void Body_SetMotionType(Body self, MotionType motionType);
/// <inheritdoc cref="Body.GetBroadPhaseLayer()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetBroadPhaseLayer")]
public static partial byte Body_GetBroadPhaseLayer(Body self);
/// <inheritdoc cref="Body.GetObjectLayer()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetObjectLayer")]
public static partial ushort Body_GetObjectLayer(Body self);
/// <inheritdoc cref="Body.GetCollisionGroup()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetCollisionGroup")]
public static partial CollisionGroup Body_GetCollisionGroup(Body self);
/// <inheritdoc cref="Body.SetCollisionGroup(CollisionGroup)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetCollisionGroup")]
public static partial void Body_SetCollisionGroup(Body self, CollisionGroup group);
/// <inheritdoc cref="Body.GetAllowSleeping()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetAllowSleeping")]
public static partial Brutal.Bool8 Body_GetAllowSleeping(Body self);
/// <inheritdoc cref="Body.SetAllowSleeping(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetAllowSleeping")]
public static partial void Body_SetAllowSleeping(Body self, Brutal.Bool8 allow);
/// <inheritdoc cref="Body.ResetSleepTimer()"/>
[LibraryImport("jolt", EntryPoint = "Body_ResetSleepTimer")]
public static partial void Body_ResetSleepTimer(Body self);
/// <inheritdoc cref="Body.GetFriction()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetFriction")]
public static partial float Body_GetFriction(Body self);
/// <inheritdoc cref="Body.SetFriction(float)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetFriction")]
public static partial void Body_SetFriction(Body self, float friction);
/// <inheritdoc cref="Body.GetRestitution()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetRestitution")]
public static partial float Body_GetRestitution(Body self);
/// <inheritdoc cref="Body.SetRestitution(float)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetRestitution")]
public static partial void Body_SetRestitution(Body self, float restitution);
/// <inheritdoc cref="Body.GetLinearVelocity()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetLinearVelocity")]
public static partial float3 Body_GetLinearVelocity(Body self);
/// <inheritdoc cref="Body.SetLinearVelocity(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetLinearVelocity")]
public static partial void Body_SetLinearVelocity(Body self, float3 linearVelocity);
/// <inheritdoc cref="Body.SetLinearVelocityClamped(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetLinearVelocityClamped")]
public static partial void Body_SetLinearVelocityClamped(Body self, float3 linearVelocity);
/// <inheritdoc cref="Body.GetAngularVelocity()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetAngularVelocity")]
public static partial float3 Body_GetAngularVelocity(Body self);
/// <inheritdoc cref="Body.SetAngularVelocity(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetAngularVelocity")]
public static partial void Body_SetAngularVelocity(Body self, float3 angularVelocity);
/// <inheritdoc cref="Body.SetAngularVelocityClamped(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetAngularVelocityClamped")]
public static partial void Body_SetAngularVelocityClamped(Body self, float3 angularVelocity);
/// <inheritdoc cref="Body.GetPointVelocityCOM(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_GetPointVelocityCOM")]
public static partial float3 Body_GetPointVelocityCOM(Body self, float3 pointRelativeToCOM);
/// <inheritdoc cref="Body.GetPointVelocity(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_GetPointVelocity")]
public static partial float3 Body_GetPointVelocity(Body self, float3 point);
/// <inheritdoc cref="Body.AddForce(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddForce")]
public static partial void Body_AddForce(Body self, float3 force);
/// <inheritdoc cref="Body.AddForce(float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddForce_2")]
public static partial void Body_AddForce_2(Body self, float3 force, float3 position);
/// <inheritdoc cref="Body.AddTorque(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddTorque")]
public static partial void Body_AddTorque(Body self, float3 torque);
/// <inheritdoc cref="Body.GetAccumulatedForce()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetAccumulatedForce")]
public static partial float3 Body_GetAccumulatedForce(Body self);
/// <inheritdoc cref="Body.GetAccumulatedTorque()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetAccumulatedTorque")]
public static partial float3 Body_GetAccumulatedTorque(Body self);
/// <inheritdoc cref="Body.ResetForce()"/>
[LibraryImport("jolt", EntryPoint = "Body_ResetForce")]
public static partial void Body_ResetForce(Body self);
/// <inheritdoc cref="Body.ResetTorque()"/>
[LibraryImport("jolt", EntryPoint = "Body_ResetTorque")]
public static partial void Body_ResetTorque(Body self);
/// <inheritdoc cref="Body.ResetMotion()"/>
[LibraryImport("jolt", EntryPoint = "Body_ResetMotion")]
public static partial void Body_ResetMotion(Body self);
/// <inheritdoc cref="Body.GetInverseInertia()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetInverseInertia")]
public static partial float4x4 Body_GetInverseInertia(Body self);
/// <inheritdoc cref="Body.AddImpulse(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddImpulse")]
public static partial void Body_AddImpulse(Body self, float3 impulse);
/// <inheritdoc cref="Body.AddImpulse(float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddImpulse_2")]
public static partial void Body_AddImpulse_2(Body self, float3 impulse, float3 position);
/// <inheritdoc cref="Body.AddAngularImpulse(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddAngularImpulse")]
public static partial void Body_AddAngularImpulse(Body self, float3 angularImpulse);
/// <inheritdoc cref="Body.MoveKinematic(float3, floatQuat, float)"/>
[LibraryImport("jolt", EntryPoint = "Body_MoveKinematic")]
public static partial void Body_MoveKinematic(
Body self,
float3 targetPosition,
floatQuat targetRotation,
float deltaTime
);
/// <inheritdoc cref="Body.GetSubmergedVolume(float3, float3, out float, out float, out float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_GetSubmergedVolume")]
public static partial void Body_GetSubmergedVolume(
Body self,
float3 surfacePosition,
float3 surfaceNormal,
out float totalVolume,
out float submergedVolume,
out float3 relativeCenterOfBuoyancy
);
/// <inheritdoc cref="Body.ApplyBuoyancyImpulse(float3, float3, float, float, float, float3, float3, float)"/>
[LibraryImport("jolt", EntryPoint = "Body_ApplyBuoyancyImpulse")]
public static partial Brutal.Bool8 Body_ApplyBuoyancyImpulse(
Body self,
float3 surfacePosition,
float3 surfaceNormal,
float buoyancy,
float linearDrag,
float angularDrag,
float3 fluidVelocity,
float3 gravity,
float deltaTime
);
/// <inheritdoc cref="Body.ApplyBuoyancyImpulse(float, float, float3, float, float, float, float3, float3, float)"/>
[LibraryImport("jolt", EntryPoint = "Body_ApplyBuoyancyImpulse_2")]
public static partial Brutal.Bool8 Body_ApplyBuoyancyImpulse_2(
Body self,
float totalVolume,
float submergedVolume,
float3 relativeCenterOfBuoyancy,
float buoyancy,
float linearDrag,
float angularDrag,
float3 fluidVelocity,
float3 gravity,
float deltaTime
);
/// <inheritdoc cref="Body.IsInBroadPhase()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsInBroadPhase")]
public static partial Brutal.Bool8 Body_IsInBroadPhase(Body self);
/// <inheritdoc cref="Body.IsCollisionCacheInvalid()"/>
[LibraryImport("jolt", EntryPoint = "Body_IsCollisionCacheInvalid")]
public static partial Brutal.Bool8 Body_IsCollisionCacheInvalid(Body self);
/// <inheritdoc cref="Body.GetShape()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetShape")]
public static partial Shape Body_GetShape(Body self);
/// <inheritdoc cref="Body.GetPosition()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetPosition")]
public static partial float3 Body_GetPosition(Body self);
/// <inheritdoc cref="Body.GetRotation()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetRotation")]
public static partial floatQuat Body_GetRotation(Body self);
/// <inheritdoc cref="Body.GetWorldTransform()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetWorldTransform")]
public static partial float4x4 Body_GetWorldTransform(Body self);
/// <inheritdoc cref="Body.GetCenterOfMassPosition()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetCenterOfMassPosition")]
public static partial float3 Body_GetCenterOfMassPosition(Body self);
/// <inheritdoc cref="Body.GetCenterOfMassTransform()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetCenterOfMassTransform")]
public static partial float4x4 Body_GetCenterOfMassTransform(Body self);
/// <inheritdoc cref="Body.GetInverseCenterOfMassTransform()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetInverseCenterOfMassTransform")]
public static partial float4x4 Body_GetInverseCenterOfMassTransform(Body self);
/// <inheritdoc cref="Body.GetWorldSpaceBounds()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetWorldSpaceBounds")]
public static partial AABox Body_GetWorldSpaceBounds(Body self);
/// <inheritdoc cref="Body.GetMotionProperties()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetMotionProperties")]
public static partial MotionProperties Body_GetMotionProperties(Body self);
/// <inheritdoc cref="Body.GetMotionPropertiesUnchecked()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetMotionPropertiesUnchecked")]
public static partial MotionProperties Body_GetMotionPropertiesUnchecked(Body self);
/// <inheritdoc cref="Body.GetUserData()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetUserData")]
public static partial ulong Body_GetUserData(Body self);
/// <inheritdoc cref="Body.SetUserData(ulong)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetUserData")]
public static partial void Body_SetUserData(Body self, ulong userData);
/// <inheritdoc cref="Body.GetWorldSpaceSurfaceNormal(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_GetWorldSpaceSurfaceNormal")]
public static partial float3 Body_GetWorldSpaceSurfaceNormal(Body self, uint subShapeID, float3 position);
/// <inheritdoc cref="Body.GetTransformedShape()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetTransformedShape")]
public static partial TransformedShape Body_GetTransformedShape(Body self);
/// <inheritdoc cref="Body.GetBodyCreationSettings()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetBodyCreationSettings")]
public static partial BodyCreationSettings Body_GetBodyCreationSettings(Body self);
/// <inheritdoc cref="Body.ApplyBodyCreationSettings(BodyCreationSettings, BroadPhaseLayerInterface)"/>
[LibraryImport("jolt", EntryPoint = "Body_ApplyBodyCreationSettings")]
public static partial void Body_ApplyBodyCreationSettings(
Body self,
BodyCreationSettings bodyCreationSettings,
BroadPhaseLayerInterface bPLInterface
);
/// <inheritdoc cref="Body.GetSoftBodyCreationSettings()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetSoftBodyCreationSettings")]
public static partial SoftBodyCreationSettings Body_GetSoftBodyCreationSettings(Body self);
/// <inheritdoc cref="Body.ApplySoftBodyCreationSettings(SoftBodyCreationSettings, BroadPhaseLayerInterface)"/>
[LibraryImport("jolt", EntryPoint = "Body_ApplySoftBodyCreationSettings")]
public static partial void Body_ApplySoftBodyCreationSettings(
Body self,
SoftBodyCreationSettings softBodyCreationSettings,
BroadPhaseLayerInterface bPLInterface
);
/// <inheritdoc cref="Body.FindCollidingPairsCanCollide(Body, Body)"/>
[LibraryImport("jolt", EntryPoint = "Body_FindCollidingPairsCanCollide")]
public static partial Brutal.Bool8 Body_FindCollidingPairsCanCollide(Body body1, Body body2);
/// <inheritdoc cref="Body.AddPositionStep(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddPositionStep")]
public static partial void Body_AddPositionStep(Body self, float3 linearVelocityTimesDeltaTime);
/// <inheritdoc cref="Body.SubPositionStep(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_SubPositionStep")]
public static partial void Body_SubPositionStep(Body self, float3 linearVelocityTimesDeltaTime);
/// <inheritdoc cref="Body.AddRotationStep(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_AddRotationStep")]
public static partial void Body_AddRotationStep(Body self, float3 angularVelocityTimesDeltaTime);
/// <inheritdoc cref="Body.SubRotationStep(float3)"/>
[LibraryImport("jolt", EntryPoint = "Body_SubRotationStep")]
public static partial void Body_SubRotationStep(Body self, float3 angularVelocityTimesDeltaTime);
/// <inheritdoc cref="Body.SetObjectLayerInternal(ushort, BroadPhaseLayerInterface)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetObjectLayerInternal")]
public static partial void Body_SetObjectLayerInternal(
Body self,
ushort layer,
BroadPhaseLayerInterface bPLInterface
);
/// <inheritdoc cref="Body.SetInBroadPhaseInternal(bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetInBroadPhaseInternal")]
public static partial void Body_SetInBroadPhaseInternal(Body self, Brutal.Bool8 inBroadPhase);
/// <inheritdoc cref="Body.InvalidateContactCacheInternal()"/>
[LibraryImport("jolt", EntryPoint = "Body_InvalidateContactCacheInternal")]
public static partial Brutal.Bool8 Body_InvalidateContactCacheInternal(Body self);
/// <inheritdoc cref="Body.ValidateContactCacheInternal()"/>
[LibraryImport("jolt", EntryPoint = "Body_ValidateContactCacheInternal")]
public static partial void Body_ValidateContactCacheInternal(Body self);
/// <inheritdoc cref="Body.CalculateWorldSpaceBoundsInternal()"/>
[LibraryImport("jolt", EntryPoint = "Body_CalculateWorldSpaceBoundsInternal")]
public static partial void Body_CalculateWorldSpaceBoundsInternal(Body self);
/// <inheritdoc cref="Body.SetPositionAndRotationInternal(float3, floatQuat, bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetPositionAndRotationInternal")]
public static partial void Body_SetPositionAndRotationInternal(
Body self,
float3 position,
floatQuat rotation,
Brutal.Bool8 resetSleepTimer
);
/// <inheritdoc cref="Body.UpdateCenterOfMassInternal(float3, bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_UpdateCenterOfMassInternal")]
public static partial void Body_UpdateCenterOfMassInternal(
Body self,
float3 previousCenterOfMass,
Brutal.Bool8 updateMassProperties
);
/// <inheritdoc cref="Body.SetShapeInternal(Shape, bool)"/>
[LibraryImport("jolt", EntryPoint = "Body_SetShapeInternal")]
public static partial void Body_SetShapeInternal(Body self, Shape shape, Brutal.Bool8 updateMassProperties);
/// <inheritdoc cref="Body.GetIndexInActiveBodiesInternal()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetIndexInActiveBodiesInternal")]
public static partial uint Body_GetIndexInActiveBodiesInternal(Body self);
/// <inheritdoc cref="Body.UpdateSleepStateInternal(float, float, float)"/>
[LibraryImport("jolt", EntryPoint = "Body_UpdateSleepStateInternal")]
public static partial CanSleep Body_UpdateSleepStateInternal(
Body self,
float deltaTime,
float maxMovement,
float timeBeforeSleep
);
/// <inheritdoc cref="Body.GetFixedToWorld()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetFixedToWorld")]
public static partial Body Body_GetFixedToWorld();
/// <inheritdoc cref="Body.GetInactiveIndex()"/>
[LibraryImport("jolt", EntryPoint = "Body_GetInactiveIndex")]
public static partial uint Body_GetInactiveIndex();
}
}
}

View file

@ -0,0 +1,52 @@
// <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="BodyActivationListener.OnBodyActivated(uint, ulong)"/>
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_OnBodyActivated")]
public static partial void BodyActivationListener_OnBodyActivated(
BodyActivationListener self,
uint bodyID,
ulong bodyUserData
);
/// <inheritdoc cref="BodyActivationListener.OnBodyDeactivated(uint, ulong)"/>
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_OnBodyDeactivated")]
public static partial void BodyActivationListener_OnBodyDeactivated(
BodyActivationListener self,
uint bodyID,
ulong bodyUserData
);
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_CreateProxy")]
public static partial nint BodyActivationListener_CreateProxy(nint userData);
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_DestroyProxy")]
public static partial void BodyActivationListener_DestroyProxy(nint self);
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_ProxyGetBase")]
public static partial BodyActivationListener BodyActivationListener_ProxyGetBase(nint self);
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_ProxySetOnBodyActivated")]
public static partial void BodyActivationListener_ProxySetOnBodyActivated(
nint self,
delegate* unmanaged[Cdecl]<uint, ulong, nint, void> callback
);
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_ProxySetOnBodyDeactivated")]
public static partial void BodyActivationListener_ProxySetOnBodyDeactivated(
nint self,
delegate* unmanaged[Cdecl]<uint, ulong, nint, void> callback
);
}
}
}

View file

@ -0,0 +1,483 @@
// <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="BodyCreationSettings.Create()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create")]
public static partial BodyCreationSettings BodyCreationSettings_Create();
/// <inheritdoc cref="BodyCreationSettings.Create(ShapeSettings, float3, floatQuat, MotionType, ushort)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_2")]
public static partial BodyCreationSettings BodyCreationSettings_Create_2(
ShapeSettings shape,
float3 position,
floatQuat rotation,
MotionType motionType,
ushort objectLayer
);
/// <inheritdoc cref="BodyCreationSettings.Create(Shape, float3, floatQuat, MotionType, ushort)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_3")]
public static partial BodyCreationSettings BodyCreationSettings_Create_3(
Shape shape,
float3 position,
floatQuat rotation,
MotionType motionType,
ushort objectLayer
);
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Destroy")]
public static partial void BodyCreationSettings_Destroy(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.GetShapeSettings()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShapeSettings")]
public static partial ShapeSettings BodyCreationSettings_GetShapeSettings(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetShapeSettings(ShapeSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShapeSettings")]
public static partial void BodyCreationSettings_SetShapeSettings(
BodyCreationSettings self,
ShapeSettings shape
);
/// <summary>
/// <para>
/// Convert ShapeSettings object into a Shape object. This will free the ShapeSettings object and make
/// the object ready for runtime. Serialization is no longer possible after this.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Body/BodyCreationSettings.h#L49">Jolt/Physics/Body/BodyCreationSettings.h:49</see>
/// <br/>
/// <c>Shape::ShapeResult ConvertShapeSettings()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_ConvertShapeSettings")]
public static partial Shape BodyCreationSettings_ConvertShapeSettings(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.GetShape()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShape")]
public static partial Shape BodyCreationSettings_GetShape(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetShape(Shape)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShape")]
public static partial void BodyCreationSettings_SetShape(BodyCreationSettings self, Shape shape);
/// <inheritdoc cref="BodyCreationSettings.HasMassProperties()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_HasMassProperties")]
public static partial Brutal.Bool8 BodyCreationSettings_HasMassProperties(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.GetMassProperties()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMassProperties")]
public static partial MassProperties BodyCreationSettings_GetMassProperties(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SaveBinaryState(StreamOut)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SaveBinaryState")]
public static partial void BodyCreationSettings_SaveBinaryState(
BodyCreationSettings self,
StreamOut stream
);
/// <inheritdoc cref="BodyCreationSettings.RestoreBinaryState(StreamIn)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_RestoreBinaryState")]
public static partial void BodyCreationSettings_RestoreBinaryState(
BodyCreationSettings self,
StreamIn stream
);
/// <inheritdoc cref="BodyCreationSettings.SaveWithChildren(StreamOut, ShapeToIDMap, MaterialToIDMap, GroupFilterToIDMap)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SaveWithChildren")]
public static partial void BodyCreationSettings_SaveWithChildren(
BodyCreationSettings self,
StreamOut stream,
ShapeToIDMap shapeMap,
MaterialToIDMap materialMap,
GroupFilterToIDMap groupFilterMap
);
/// <summary>
/// <para>
/// Restore body creation settings, its shape, materials and group filter. Pass in an empty map in
/// ioShapeMap / ioMaterialMap / ioGroupFilterMap or reuse the same map while reading multiple shapes
/// from the same stream in order to restore duplicates.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Body/BodyCreationSettings.h#L82">Jolt/Physics/Body/BodyCreationSettings.h:82</see>
/// <br/>
/// <c>static BCSResult sRestoreWithChildren(StreamIn &amp;inStream, IDToShapeMap &amp;ioShapeMap, IDToMaterialMap &amp;ioMaterialMap, IDToGroupFilterMap &amp;ioGroupFilterMap)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_RestoreWithChildren")]
public static partial BodyCreationSettings BodyCreationSettings_RestoreWithChildren(
StreamIn stream,
IDToShapeMap shapeMap,
IDToMaterialMap materialMap,
IDToGroupFilterMap groupFilterMap
);
/// <inheritdoc cref="BodyCreationSettings.GetPosition()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetPosition")]
[SuppressGCTransition]
public static partial float3 BodyCreationSettings_GetPosition(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetPosition(float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetPosition")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetPosition(BodyCreationSettings self, float3 value);
/// <inheritdoc cref="BodyCreationSettings.GetRotation()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRotation")]
[SuppressGCTransition]
public static partial floatQuat BodyCreationSettings_GetRotation(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetRotation(floatQuat)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRotation")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetRotation(BodyCreationSettings self, floatQuat value);
/// <inheritdoc cref="BodyCreationSettings.GetLinearVelocity()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearVelocity")]
[SuppressGCTransition]
public static partial float3 BodyCreationSettings_GetLinearVelocity(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetLinearVelocity(float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearVelocity")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetLinearVelocity(BodyCreationSettings self, float3 value);
/// <inheritdoc cref="BodyCreationSettings.GetAngularVelocity()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularVelocity")]
[SuppressGCTransition]
public static partial float3 BodyCreationSettings_GetAngularVelocity(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetAngularVelocity(float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularVelocity")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetAngularVelocity(BodyCreationSettings self, float3 value);
/// <inheritdoc cref="BodyCreationSettings.GetUserData()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUserData")]
[SuppressGCTransition]
public static partial ulong BodyCreationSettings_GetUserData(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetUserData(ulong)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUserData")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetUserData(BodyCreationSettings self, ulong value);
/// <inheritdoc cref="BodyCreationSettings.GetObjectLayer()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetObjectLayer")]
[SuppressGCTransition]
public static partial ushort BodyCreationSettings_GetObjectLayer(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetObjectLayer(ushort)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetObjectLayer")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetObjectLayer(BodyCreationSettings self, ushort value);
/// <inheritdoc cref="BodyCreationSettings.GetCollisionGroup()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetCollisionGroup")]
public static partial CollisionGroup BodyCreationSettings_GetCollisionGroup(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetCollisionGroup(CollisionGroup)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetCollisionGroup")]
public static partial void BodyCreationSettings_SetCollisionGroup(
BodyCreationSettings self,
CollisionGroup value
);
/// <inheritdoc cref="BodyCreationSettings.GetMotionType()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionType")]
[SuppressGCTransition]
public static partial MotionType BodyCreationSettings_GetMotionType(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetMotionType(MotionType)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionType")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetMotionType(BodyCreationSettings self, MotionType value);
/// <inheritdoc cref="BodyCreationSettings.GetAllowedDOFs()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowedDOFs")]
[SuppressGCTransition]
public static partial AllowedDOFs BodyCreationSettings_GetAllowedDOFs(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetAllowedDOFs(AllowedDOFs)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowedDOFs")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetAllowedDOFs(
BodyCreationSettings self,
AllowedDOFs value
);
/// <inheritdoc cref="BodyCreationSettings.GetAllowDynamicOrKinematic()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowDynamicOrKinematic")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetAllowDynamicOrKinematic(
BodyCreationSettings self
);
/// <inheritdoc cref="BodyCreationSettings.SetAllowDynamicOrKinematic(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowDynamicOrKinematic")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetAllowDynamicOrKinematic(
BodyCreationSettings self,
Brutal.Bool8 value
);
/// <inheritdoc cref="BodyCreationSettings.GetIsSensor()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetIsSensor")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetIsSensor(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetIsSensor(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetIsSensor")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetIsSensor(BodyCreationSettings self, Brutal.Bool8 value);
/// <inheritdoc cref="BodyCreationSettings.GetCollideKinematicVsNonDynamic()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetCollideKinematicVsNonDynamic")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetCollideKinematicVsNonDynamic(
BodyCreationSettings self
);
/// <inheritdoc cref="BodyCreationSettings.SetCollideKinematicVsNonDynamic(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetCollideKinematicVsNonDynamic")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetCollideKinematicVsNonDynamic(
BodyCreationSettings self,
Brutal.Bool8 value
);
/// <inheritdoc cref="BodyCreationSettings.GetUseManifoldReduction()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUseManifoldReduction")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetUseManifoldReduction(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetUseManifoldReduction(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUseManifoldReduction")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetUseManifoldReduction(
BodyCreationSettings self,
Brutal.Bool8 value
);
/// <inheritdoc cref="BodyCreationSettings.GetApplyGyroscopicForce()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetApplyGyroscopicForce")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetApplyGyroscopicForce(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetApplyGyroscopicForce(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetApplyGyroscopicForce")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetApplyGyroscopicForce(
BodyCreationSettings self,
Brutal.Bool8 value
);
/// <inheritdoc cref="BodyCreationSettings.GetMotionQuality()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionQuality")]
[SuppressGCTransition]
public static partial MotionQuality BodyCreationSettings_GetMotionQuality(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetMotionQuality(MotionQuality)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionQuality")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetMotionQuality(
BodyCreationSettings self,
MotionQuality value
);
/// <inheritdoc cref="BodyCreationSettings.GetEnhancedInternalEdgeRemoval()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetEnhancedInternalEdgeRemoval")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetEnhancedInternalEdgeRemoval(
BodyCreationSettings self
);
/// <inheritdoc cref="BodyCreationSettings.SetEnhancedInternalEdgeRemoval(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetEnhancedInternalEdgeRemoval")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetEnhancedInternalEdgeRemoval(
BodyCreationSettings self,
Brutal.Bool8 value
);
/// <inheritdoc cref="BodyCreationSettings.GetAllowSleeping()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowSleeping")]
[SuppressGCTransition]
public static partial Brutal.Bool8 BodyCreationSettings_GetAllowSleeping(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetAllowSleeping(bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowSleeping")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetAllowSleeping(
BodyCreationSettings self,
Brutal.Bool8 value
);
/// <inheritdoc cref="BodyCreationSettings.GetFriction()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetFriction")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetFriction(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetFriction(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetFriction")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetFriction(BodyCreationSettings self, float value);
/// <inheritdoc cref="BodyCreationSettings.GetRestitution()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRestitution")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetRestitution(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetRestitution(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRestitution")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetRestitution(BodyCreationSettings self, float value);
/// <inheritdoc cref="BodyCreationSettings.GetLinearDamping()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearDamping")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetLinearDamping(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetLinearDamping(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearDamping")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetLinearDamping(BodyCreationSettings self, float value);
/// <inheritdoc cref="BodyCreationSettings.GetAngularDamping()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularDamping")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetAngularDamping(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetAngularDamping(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularDamping")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetAngularDamping(BodyCreationSettings self, float value);
/// <inheritdoc cref="BodyCreationSettings.GetMaxLinearVelocity()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxLinearVelocity")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetMaxLinearVelocity(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetMaxLinearVelocity(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxLinearVelocity")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetMaxLinearVelocity(
BodyCreationSettings self,
float value
);
/// <inheritdoc cref="BodyCreationSettings.GetMaxAngularVelocity()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxAngularVelocity")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetMaxAngularVelocity(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetMaxAngularVelocity(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxAngularVelocity")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetMaxAngularVelocity(
BodyCreationSettings self,
float value
);
/// <inheritdoc cref="BodyCreationSettings.GetGravityFactor()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetGravityFactor")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetGravityFactor(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetGravityFactor(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetGravityFactor")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetGravityFactor(BodyCreationSettings self, float value);
/// <inheritdoc cref="BodyCreationSettings.GetNumVelocityStepsOverride()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumVelocityStepsOverride")]
[SuppressGCTransition]
public static partial uint BodyCreationSettings_GetNumVelocityStepsOverride(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetNumVelocityStepsOverride(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumVelocityStepsOverride")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetNumVelocityStepsOverride(
BodyCreationSettings self,
uint value
);
/// <inheritdoc cref="BodyCreationSettings.GetNumPositionStepsOverride()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumPositionStepsOverride")]
[SuppressGCTransition]
public static partial uint BodyCreationSettings_GetNumPositionStepsOverride(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetNumPositionStepsOverride(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumPositionStepsOverride")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetNumPositionStepsOverride(
BodyCreationSettings self,
uint value
);
/// <inheritdoc cref="BodyCreationSettings.GetOverrideMassProperties()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetOverrideMassProperties")]
[SuppressGCTransition]
public static partial OverrideMassProperties BodyCreationSettings_GetOverrideMassProperties(
BodyCreationSettings self
);
/// <inheritdoc cref="BodyCreationSettings.SetOverrideMassProperties(OverrideMassProperties)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetOverrideMassProperties")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetOverrideMassProperties(
BodyCreationSettings self,
OverrideMassProperties value
);
/// <inheritdoc cref="BodyCreationSettings.GetInertiaMultiplier()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetInertiaMultiplier")]
[SuppressGCTransition]
public static partial float BodyCreationSettings_GetInertiaMultiplier(BodyCreationSettings self);
/// <inheritdoc cref="BodyCreationSettings.SetInertiaMultiplier(float)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetInertiaMultiplier")]
[SuppressGCTransition]
public static partial void BodyCreationSettings_SetInertiaMultiplier(
BodyCreationSettings self,
float value
);
/// <inheritdoc cref="BodyCreationSettings.GetMassPropertiesOverride()"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMassPropertiesOverride")]
public static partial MassProperties BodyCreationSettings_GetMassPropertiesOverride(
BodyCreationSettings self
);
/// <inheritdoc cref="BodyCreationSettings.SetMassPropertiesOverride(MassProperties)"/>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMassPropertiesOverride")]
public static partial void BodyCreationSettings_SetMassPropertiesOverride(
BodyCreationSettings self,
MassProperties value
);
}
}
}

View file

@ -0,0 +1,40 @@
// <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 = "BodyDrawFilter_Create")]
public static partial BodyDrawFilter BodyDrawFilter_Create();
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_Destroy")]
public static partial void BodyDrawFilter_Destroy(BodyDrawFilter self);
/// <inheritdoc cref="BodyDrawFilter.ShouldDraw(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_ShouldDraw")]
public static partial Brutal.Bool8 BodyDrawFilter_ShouldDraw(BodyDrawFilter self, Body body);
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_CreateProxy")]
public static partial nint BodyDrawFilter_CreateProxy(nint userData);
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_DestroyProxy")]
public static partial void BodyDrawFilter_DestroyProxy(nint self);
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_ProxyGetBase")]
public static partial BodyDrawFilter BodyDrawFilter_ProxyGetBase(nint self);
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_ProxySetShouldDraw")]
public static partial void BodyDrawFilter_ProxySetShouldDraw(
nint self,
delegate* unmanaged[Cdecl]<Body, nint, Brutal.Bool8> callback
);
}
}
}

View file

@ -0,0 +1,50 @@
// <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 = "BodyFilter_Create")]
public static partial BodyFilter BodyFilter_Create();
[LibraryImport("jolt", EntryPoint = "BodyFilter_Destroy")]
public static partial void BodyFilter_Destroy(BodyFilter self);
/// <inheritdoc cref="BodyFilter.ShouldCollide(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyFilter_ShouldCollide")]
public static partial Brutal.Bool8 BodyFilter_ShouldCollide(BodyFilter self, uint bodyID);
/// <inheritdoc cref="BodyFilter.ShouldCollideLocked(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyFilter_ShouldCollideLocked")]
public static partial Brutal.Bool8 BodyFilter_ShouldCollideLocked(BodyFilter self, Body body);
[LibraryImport("jolt", EntryPoint = "BodyFilter_CreateProxy")]
public static partial nint BodyFilter_CreateProxy(nint userData);
[LibraryImport("jolt", EntryPoint = "BodyFilter_DestroyProxy")]
public static partial void BodyFilter_DestroyProxy(nint self);
[LibraryImport("jolt", EntryPoint = "BodyFilter_ProxyGetBase")]
public static partial BodyFilter BodyFilter_ProxyGetBase(nint self);
[LibraryImport("jolt", EntryPoint = "BodyFilter_ProxySetShouldCollide")]
public static partial void BodyFilter_ProxySetShouldCollide(
nint self,
delegate* unmanaged[Cdecl]<uint, nint, Brutal.Bool8> callback
);
[LibraryImport("jolt", EntryPoint = "BodyFilter_ProxySetShouldCollideLocked")]
public static partial void BodyFilter_ProxySetShouldCollideLocked(
nint self,
delegate* unmanaged[Cdecl]<Body, nint, Brutal.Bool8> callback
);
}
}
}

View file

@ -0,0 +1,657 @@
// <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="BodyInterface.Init(BodyLockInterface, BodyManager, BroadPhase)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_Init")]
public static partial void BodyInterface_Init(
BodyInterface self,
BodyLockInterface bodyLockInterface,
BodyManager bodyManager,
BroadPhase broadPhase
);
/// <inheritdoc cref="BodyInterface.CreateBody(BodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBody")]
public static partial Body BodyInterface_CreateBody(BodyInterface self, BodyCreationSettings settings);
/// <inheritdoc cref="BodyInterface.CreateSoftBody(SoftBodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBody")]
public static partial Body BodyInterface_CreateSoftBody(
BodyInterface self,
SoftBodyCreationSettings settings
);
/// <inheritdoc cref="BodyInterface.CreateBodyWithID(uint, BodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithID")]
public static partial Body BodyInterface_CreateBodyWithID(
BodyInterface self,
uint bodyID,
BodyCreationSettings settings
);
/// <inheritdoc cref="BodyInterface.CreateSoftBodyWithID(uint, SoftBodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithID")]
public static partial Body BodyInterface_CreateSoftBodyWithID(
BodyInterface self,
uint bodyID,
SoftBodyCreationSettings settings
);
/// <inheritdoc cref="BodyInterface.CreateBodyWithoutID(BodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithoutID")]
public static partial Body BodyInterface_CreateBodyWithoutID(
BodyInterface self,
BodyCreationSettings settings
);
/// <inheritdoc cref="BodyInterface.CreateSoftBodyWithoutID(SoftBodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithoutID")]
public static partial Body BodyInterface_CreateSoftBodyWithoutID(
BodyInterface self,
SoftBodyCreationSettings settings
);
/// <inheritdoc cref="BodyInterface.DestroyBodyWithoutID(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodyWithoutID")]
public static partial void BodyInterface_DestroyBodyWithoutID(BodyInterface self, Body body);
/// <inheritdoc cref="BodyInterface.AssignBodyID(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID")]
public static partial Brutal.Bool8 BodyInterface_AssignBodyID(BodyInterface self, Body body);
/// <inheritdoc cref="BodyInterface.AssignBodyID(Body, uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID_2")]
public static partial Brutal.Bool8 BodyInterface_AssignBodyID_2(BodyInterface self, Body body, uint bodyID);
/// <inheritdoc cref="BodyInterface.UnassignBodyID(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_UnassignBodyID")]
public static partial Body BodyInterface_UnassignBodyID(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.UnassignBodyIDs(ReadOnlySpan{uint}, Ptr{Body})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_UnassignBodyIDs")]
public static partial void BodyInterface_UnassignBodyIDs(
BodyInterface self,
uint* bodyIDs,
int number,
Body* bodies
);
/// <inheritdoc cref="BodyInterface.DestroyBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBody")]
public static partial void BodyInterface_DestroyBody(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.DestroyBodies(ReadOnlySpan{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodies")]
public static partial void BodyInterface_DestroyBodies(BodyInterface self, uint* bodyIDs, int number);
/// <inheritdoc cref="BodyInterface.AddBody(uint, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddBody")]
public static partial void BodyInterface_AddBody(
BodyInterface self,
uint bodyID,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.RemoveBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBody")]
public static partial void BodyInterface_RemoveBody(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.IsAdded(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsAdded")]
public static partial Brutal.Bool8 BodyInterface_IsAdded(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.CreateAndAddBody(BodyCreationSettings, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddBody")]
public static partial uint BodyInterface_CreateAndAddBody(
BodyInterface self,
BodyCreationSettings settings,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.CreateAndAddSoftBody(SoftBodyCreationSettings, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddSoftBody")]
public static partial uint BodyInterface_CreateAndAddSoftBody(
BodyInterface self,
SoftBodyCreationSettings settings,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.RemoveBodies(Span{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBodies")]
public static partial void BodyInterface_RemoveBodies(BodyInterface self, uint* bodies, int number);
/// <inheritdoc cref="BodyInterface.ActivateBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBody")]
public static partial void BodyInterface_ActivateBody(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.ActivateBodies(ReadOnlySpan{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodies")]
public static partial void BodyInterface_ActivateBodies(BodyInterface self, uint* bodyIDs, int number);
/// <inheritdoc cref="BodyInterface.ActivateBodiesInAABox(in AABox, BroadPhaseLayerFilter, ObjectLayerFilter)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodiesInAABox")]
public static partial void BodyInterface_ActivateBodiesInAABox(
BodyInterface self,
in AABox box,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
/// <inheritdoc cref="BodyInterface.DeactivateBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBody")]
public static partial void BodyInterface_DeactivateBody(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.DeactivateBodies(ReadOnlySpan{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBodies")]
public static partial void BodyInterface_DeactivateBodies(BodyInterface self, uint* bodyIDs, int number);
/// <inheritdoc cref="BodyInterface.IsActive(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsActive")]
public static partial Brutal.Bool8 BodyInterface_IsActive(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.ResetSleepTimer(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_ResetSleepTimer")]
public static partial void BodyInterface_ResetSleepTimer(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.CreateConstraint(TwoBodyConstraintSettings, uint, uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateConstraint")]
public static partial TwoBodyConstraint BodyInterface_CreateConstraint(
BodyInterface self,
TwoBodyConstraintSettings settings,
uint bodyID1,
uint bodyID2
);
/// <inheritdoc cref="BodyInterface.ActivateConstraint(TwoBodyConstraint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateConstraint")]
public static partial void BodyInterface_ActivateConstraint(
BodyInterface self,
TwoBodyConstraint constraint
);
/// <inheritdoc cref="BodyInterface.GetShape(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetShape")]
public static partial Shape BodyInterface_GetShape(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetShape(uint, Shape, bool, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetShape")]
public static partial void BodyInterface_SetShape(
BodyInterface self,
uint bodyID,
Shape shape,
Brutal.Bool8 updateMassProperties,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.NotifyShapeChanged(uint, float3, bool, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_NotifyShapeChanged")]
public static partial void BodyInterface_NotifyShapeChanged(
BodyInterface self,
uint bodyID,
float3 previousCenterOfMass,
Brutal.Bool8 updateMassProperties,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.SetObjectLayer(uint, ushort)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetObjectLayer")]
public static partial void BodyInterface_SetObjectLayer(BodyInterface self, uint bodyID, ushort layer);
/// <inheritdoc cref="BodyInterface.GetObjectLayer(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetObjectLayer")]
public static partial ushort BodyInterface_GetObjectLayer(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetPositionAndRotation(uint, float3, floatQuat, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotation")]
public static partial void BodyInterface_SetPositionAndRotation(
BodyInterface self,
uint bodyID,
float3 position,
floatQuat rotation,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.SetPositionAndRotationWhenChanged(uint, float3, floatQuat, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotationWhenChanged")]
public static partial void BodyInterface_SetPositionAndRotationWhenChanged(
BodyInterface self,
uint bodyID,
float3 position,
floatQuat rotation,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.GetPositionAndRotation(uint, out float3, out floatQuat)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPositionAndRotation")]
public static partial void BodyInterface_GetPositionAndRotation(
BodyInterface self,
uint bodyID,
out float3 position,
out floatQuat rotation
);
/// <inheritdoc cref="BodyInterface.SetPosition(uint, float3, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPosition")]
public static partial void BodyInterface_SetPosition(
BodyInterface self,
uint bodyID,
float3 position,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.GetPosition(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPosition")]
public static partial float3 BodyInterface_GetPosition(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetCenterOfMassPosition(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassPosition")]
public static partial float3 BodyInterface_GetCenterOfMassPosition(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetRotation(uint, floatQuat, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRotation")]
public static partial void BodyInterface_SetRotation(
BodyInterface self,
uint bodyID,
floatQuat rotation,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.GetRotation(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRotation")]
public static partial floatQuat BodyInterface_GetRotation(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetWorldTransform(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetWorldTransform")]
public static partial float4x4 BodyInterface_GetWorldTransform(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetCenterOfMassTransform(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassTransform")]
public static partial float4x4 BodyInterface_GetCenterOfMassTransform(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.MoveKinematic(uint, float3, floatQuat, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_MoveKinematic")]
public static partial void BodyInterface_MoveKinematic(
BodyInterface self,
uint bodyID,
float3 targetPosition,
floatQuat targetRotation,
float deltaTime
);
/// <inheritdoc cref="BodyInterface.SetLinearAndAngularVelocity(uint, float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearAndAngularVelocity")]
public static partial void BodyInterface_SetLinearAndAngularVelocity(
BodyInterface self,
uint bodyID,
float3 linearVelocity,
float3 angularVelocity
);
/// <inheritdoc cref="BodyInterface.GetLinearAndAngularVelocity(uint, out float3, out float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearAndAngularVelocity")]
public static partial void BodyInterface_GetLinearAndAngularVelocity(
BodyInterface self,
uint bodyID,
out float3 linearVelocity,
out float3 angularVelocity
);
/// <inheritdoc cref="BodyInterface.SetLinearVelocity(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearVelocity")]
public static partial void BodyInterface_SetLinearVelocity(
BodyInterface self,
uint bodyID,
float3 linearVelocity
);
/// <inheritdoc cref="BodyInterface.GetLinearVelocity(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearVelocity")]
public static partial float3 BodyInterface_GetLinearVelocity(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.AddLinearVelocity(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearVelocity")]
public static partial void BodyInterface_AddLinearVelocity(
BodyInterface self,
uint bodyID,
float3 linearVelocity
);
/// <inheritdoc cref="BodyInterface.AddLinearAndAngularVelocity(uint, float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearAndAngularVelocity")]
public static partial void BodyInterface_AddLinearAndAngularVelocity(
BodyInterface self,
uint bodyID,
float3 linearVelocity,
float3 angularVelocity
);
/// <inheritdoc cref="BodyInterface.SetAngularVelocity(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetAngularVelocity")]
public static partial void BodyInterface_SetAngularVelocity(
BodyInterface self,
uint bodyID,
float3 angularVelocity
);
/// <inheritdoc cref="BodyInterface.GetAngularVelocity(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetAngularVelocity")]
public static partial float3 BodyInterface_GetAngularVelocity(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetPointVelocity(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPointVelocity")]
public static partial float3 BodyInterface_GetPointVelocity(BodyInterface self, uint bodyID, float3 point);
/// <inheritdoc cref="BodyInterface.SetPositionRotationAndVelocity(uint, float3, floatQuat, float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionRotationAndVelocity")]
public static partial void BodyInterface_SetPositionRotationAndVelocity(
BodyInterface self,
uint bodyID,
float3 position,
floatQuat rotation,
float3 linearVelocity,
float3 angularVelocity
);
/// <inheritdoc cref="BodyInterface.AddForce(uint, float3, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce")]
public static partial void BodyInterface_AddForce(
BodyInterface self,
uint bodyID,
float3 force,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.AddForce(uint, float3, float3, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce_2")]
public static partial void BodyInterface_AddForce_2(
BodyInterface self,
uint bodyID,
float3 force,
float3 point,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.AddTorque(uint, float3, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddTorque")]
public static partial void BodyInterface_AddTorque(
BodyInterface self,
uint bodyID,
float3 torque,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.AddForceAndTorque(uint, float3, float3, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForceAndTorque")]
public static partial void BodyInterface_AddForceAndTorque(
BodyInterface self,
uint bodyID,
float3 force,
float3 torque,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.AddImpulse(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse")]
public static partial void BodyInterface_AddImpulse(BodyInterface self, uint bodyID, float3 impulse);
/// <inheritdoc cref="BodyInterface.AddImpulse(uint, float3, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse_2")]
public static partial void BodyInterface_AddImpulse_2(
BodyInterface self,
uint bodyID,
float3 impulse,
float3 point
);
/// <inheritdoc cref="BodyInterface.AddAngularImpulse(uint, float3)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddAngularImpulse")]
public static partial void BodyInterface_AddAngularImpulse(
BodyInterface self,
uint bodyID,
float3 angularImpulse
);
/// <inheritdoc cref="BodyInterface.ApplyBuoyancyImpulse(uint, float3, float3, float, float, float, float3, float3, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_ApplyBuoyancyImpulse")]
public static partial Brutal.Bool8 BodyInterface_ApplyBuoyancyImpulse(
BodyInterface self,
uint bodyID,
float3 surfacePosition,
float3 surfaceNormal,
float buoyancy,
float linearDrag,
float angularDrag,
float3 fluidVelocity,
float3 gravity,
float deltaTime
);
/// <inheritdoc cref="BodyInterface.GetBodyType(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetBodyType")]
public static partial BodyType BodyInterface_GetBodyType(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetMotionType(uint, MotionType, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionType")]
public static partial void BodyInterface_SetMotionType(
BodyInterface self,
uint bodyID,
MotionType motionType,
Activation activationMode
);
/// <inheritdoc cref="BodyInterface.GetMotionType(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionType")]
public static partial MotionType BodyInterface_GetMotionType(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetMotionQuality(uint, MotionQuality)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionQuality")]
public static partial void BodyInterface_SetMotionQuality(
BodyInterface self,
uint bodyID,
MotionQuality motionQuality
);
/// <inheritdoc cref="BodyInterface.GetMotionQuality(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionQuality")]
public static partial MotionQuality BodyInterface_GetMotionQuality(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetInverseInertia(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetInverseInertia")]
public static partial float4x4 BodyInterface_GetInverseInertia(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetRestitution(uint, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRestitution")]
public static partial void BodyInterface_SetRestitution(BodyInterface self, uint bodyID, float restitution);
/// <inheritdoc cref="BodyInterface.GetRestitution(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRestitution")]
public static partial float BodyInterface_GetRestitution(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetFriction(uint, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetFriction")]
public static partial void BodyInterface_SetFriction(BodyInterface self, uint bodyID, float friction);
/// <inheritdoc cref="BodyInterface.GetFriction(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetFriction")]
public static partial float BodyInterface_GetFriction(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetGravityFactor(uint, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetGravityFactor")]
public static partial void BodyInterface_SetGravityFactor(
BodyInterface self,
uint bodyID,
float gravityFactor
);
/// <inheritdoc cref="BodyInterface.GetGravityFactor(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetGravityFactor")]
public static partial float BodyInterface_GetGravityFactor(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetMaxLinearVelocity(uint, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxLinearVelocity")]
public static partial void BodyInterface_SetMaxLinearVelocity(
BodyInterface self,
uint bodyID,
float linearVelocity
);
/// <inheritdoc cref="BodyInterface.GetMaxLinearVelocity(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxLinearVelocity")]
public static partial float BodyInterface_GetMaxLinearVelocity(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetMaxAngularVelocity(uint, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxAngularVelocity")]
public static partial void BodyInterface_SetMaxAngularVelocity(
BodyInterface self,
uint bodyID,
float angularVelocity
);
/// <inheritdoc cref="BodyInterface.GetMaxAngularVelocity(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxAngularVelocity")]
public static partial float BodyInterface_GetMaxAngularVelocity(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetUseManifoldReduction(uint, bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUseManifoldReduction")]
public static partial void BodyInterface_SetUseManifoldReduction(
BodyInterface self,
uint bodyID,
Brutal.Bool8 useReduction
);
/// <inheritdoc cref="BodyInterface.GetUseManifoldReduction(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUseManifoldReduction")]
public static partial Brutal.Bool8 BodyInterface_GetUseManifoldReduction(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetIsSensor(uint, bool)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetIsSensor")]
public static partial void BodyInterface_SetIsSensor(
BodyInterface self,
uint bodyID,
Brutal.Bool8 isSensor
);
/// <inheritdoc cref="BodyInterface.IsSensor(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsSensor")]
public static partial Brutal.Bool8 BodyInterface_IsSensor(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetCollisionGroup(uint, CollisionGroup)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetCollisionGroup")]
public static partial void BodyInterface_SetCollisionGroup(
BodyInterface self,
uint bodyID,
CollisionGroup collisionGroup
);
/// <inheritdoc cref="BodyInterface.GetCollisionGroup(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCollisionGroup")]
public static partial CollisionGroup BodyInterface_GetCollisionGroup(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetTransformedShape(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetTransformedShape")]
public static partial TransformedShape BodyInterface_GetTransformedShape(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.GetUserData(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUserData")]
public static partial ulong BodyInterface_GetUserData(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetUserData(uint, ulong)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUserData")]
public static partial void BodyInterface_SetUserData(BodyInterface self, uint bodyID, ulong userData);
/// <inheritdoc cref="BodyInterface.GetMaterial(uint, uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaterial")]
public static partial PhysicsMaterial BodyInterface_GetMaterial(
BodyInterface self,
uint bodyID,
uint subShapeID
);
/// <inheritdoc cref="BodyInterface.InvalidateContactCache(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_InvalidateContactCache")]
public static partial void BodyInterface_InvalidateContactCache(BodyInterface self, uint bodyID);
/// <inheritdoc cref="BodyInterface.SetPositionsAndRotations(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{floatQuat}, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionsAndRotations")]
public static partial void BodyInterface_SetPositionsAndRotations(
BodyInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* positions,
nuint positionsCount,
floatQuat* rotations,
nuint rotationsCount,
Activation activation
);
/// <inheritdoc cref="BodyInterface.SetPositionsAndRotationsWhenChanged(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{floatQuat}, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionsAndRotationsWhenChanged")]
public static partial void BodyInterface_SetPositionsAndRotationsWhenChanged(
BodyInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* positions,
nuint positionsCount,
floatQuat* rotations,
nuint rotationsCount,
Activation activation
);
/// <inheritdoc cref="BodyInterface.MoveKinematics(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{floatQuat}, float)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_MoveKinematics")]
public static partial void BodyInterface_MoveKinematics(
BodyInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* positions,
nuint positionsCount,
floatQuat* rotations,
nuint rotationsCount,
float deltaTime
);
/// <inheritdoc cref="BodyInterface.SetLinearAndAngularVelocities(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{float3})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearAndAngularVelocities")]
public static partial void BodyInterface_SetLinearAndAngularVelocities(
BodyInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* linearVelocities,
nuint linearVelocitiesCount,
float3* angularVelocities,
nuint angularVelocitiesCount
);
/// <inheritdoc cref="BodyInterface.AddForces(ReadOnlySpan{uint}, ReadOnlySpan{float3}, Activation)"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForces")]
public static partial void BodyInterface_AddForces(
BodyInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* forces,
nuint forcesCount,
Activation activation
);
/// <inheritdoc cref="BodyInterface.AddImpulses(ReadOnlySpan{uint}, ReadOnlySpan{float3})"/>
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulses")]
public static partial void BodyInterface_AddImpulses(
BodyInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* impulses,
nuint impulsesCount
);
}
}
}

View file

@ -0,0 +1,63 @@
// <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="BodyLockInterface.TryGetBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterface_TryGetBody")]
public static partial Body BodyLockInterface_TryGetBody(BodyLockInterface self, uint bodyID);
/// <inheritdoc cref="BodyLockInterface.GetWorldTransforms(ReadOnlySpan{uint}, Span{float4x4})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterface_GetWorldTransforms")]
public static partial void BodyLockInterface_GetWorldTransforms(
BodyLockInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float4x4* transforms,
nuint transformsCount
);
/// <inheritdoc cref="BodyLockInterface.GetPositionsAndRotations(ReadOnlySpan{uint}, Span{float3}, Span{floatQuat})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterface_GetPositionsAndRotations")]
public static partial void BodyLockInterface_GetPositionsAndRotations(
BodyLockInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* positions,
nuint positionsCount,
floatQuat* rotations,
nuint rotationsCount
);
/// <inheritdoc cref="BodyLockInterface.GetLinearAndAngularVelocities(ReadOnlySpan{uint}, Span{float3}, Span{float3})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterface_GetLinearAndAngularVelocities")]
public static partial void BodyLockInterface_GetLinearAndAngularVelocities(
BodyLockInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* linearVelocities,
nuint linearVelocitiesCount,
float3* angularVelocities,
nuint angularVelocitiesCount
);
/// <inheritdoc cref="BodyLockInterface.GetBodyStates(ReadOnlySpan{uint}, Span{BodyState})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterface_GetBodyStates")]
public static partial void BodyLockInterface_GetBodyStates(
BodyLockInterface self,
uint* bodyIDs,
nuint bodyIDsCount,
BodyState* states,
nuint statesCount
);
}
}
}

View file

@ -0,0 +1,59 @@
// <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="BodyLockInterfaceLocking.GetWorldTransforms(ReadOnlySpan{uint}, Span{float4x4})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceLocking_GetWorldTransforms")]
public static partial void BodyLockInterfaceLocking_GetWorldTransforms(
BodyLockInterfaceLocking self,
uint* bodyIDs,
nuint bodyIDsCount,
float4x4* transforms,
nuint transformsCount
);
/// <inheritdoc cref="BodyLockInterfaceLocking.GetPositionsAndRotations(ReadOnlySpan{uint}, Span{float3}, Span{floatQuat})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceLocking_GetPositionsAndRotations")]
public static partial void BodyLockInterfaceLocking_GetPositionsAndRotations(
BodyLockInterfaceLocking self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* positions,
nuint positionsCount,
floatQuat* rotations,
nuint rotationsCount
);
/// <inheritdoc cref="BodyLockInterfaceLocking.GetLinearAndAngularVelocities(ReadOnlySpan{uint}, Span{float3}, Span{float3})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceLocking_GetLinearAndAngularVelocities")]
public static partial void BodyLockInterfaceLocking_GetLinearAndAngularVelocities(
BodyLockInterfaceLocking self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* linearVelocities,
nuint linearVelocitiesCount,
float3* angularVelocities,
nuint angularVelocitiesCount
);
/// <inheritdoc cref="BodyLockInterfaceLocking.GetBodyStates(ReadOnlySpan{uint}, Span{BodyState})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceLocking_GetBodyStates")]
public static partial void BodyLockInterfaceLocking_GetBodyStates(
BodyLockInterfaceLocking self,
uint* bodyIDs,
nuint bodyIDsCount,
BodyState* states,
nuint statesCount
);
}
}
}

View file

@ -0,0 +1,59 @@
// <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="BodyLockInterfaceNoLock.GetWorldTransforms(ReadOnlySpan{uint}, Span{float4x4})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceNoLock_GetWorldTransforms")]
public static partial void BodyLockInterfaceNoLock_GetWorldTransforms(
BodyLockInterfaceNoLock self,
uint* bodyIDs,
nuint bodyIDsCount,
float4x4* transforms,
nuint transformsCount
);
/// <inheritdoc cref="BodyLockInterfaceNoLock.GetPositionsAndRotations(ReadOnlySpan{uint}, Span{float3}, Span{floatQuat})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceNoLock_GetPositionsAndRotations")]
public static partial void BodyLockInterfaceNoLock_GetPositionsAndRotations(
BodyLockInterfaceNoLock self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* positions,
nuint positionsCount,
floatQuat* rotations,
nuint rotationsCount
);
/// <inheritdoc cref="BodyLockInterfaceNoLock.GetLinearAndAngularVelocities(ReadOnlySpan{uint}, Span{float3}, Span{float3})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceNoLock_GetLinearAndAngularVelocities")]
public static partial void BodyLockInterfaceNoLock_GetLinearAndAngularVelocities(
BodyLockInterfaceNoLock self,
uint* bodyIDs,
nuint bodyIDsCount,
float3* linearVelocities,
nuint linearVelocitiesCount,
float3* angularVelocities,
nuint angularVelocitiesCount
);
/// <inheritdoc cref="BodyLockInterfaceNoLock.GetBodyStates(ReadOnlySpan{uint}, Span{BodyState})"/>
[LibraryImport("jolt", EntryPoint = "BodyLockInterfaceNoLock_GetBodyStates")]
public static partial void BodyLockInterfaceNoLock_GetBodyStates(
BodyLockInterfaceNoLock self,
uint* bodyIDs,
nuint bodyIDsCount,
BodyState* states,
nuint statesCount
);
}
}
}

View file

@ -0,0 +1,38 @@
// <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 = "BodyLockRead_Destroy")]
public static partial void BodyLockRead_Destroy(BodyLockRead self);
/// <inheritdoc cref="BodyLockRead.Create(BodyLockInterface, uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyLockRead_Create")]
public static partial BodyLockRead BodyLockRead_Create(BodyLockInterface lockInterface, uint bodyID);
/// <inheritdoc cref="BodyLockRead.Succeeded()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockRead_Succeeded")]
public static partial Brutal.Bool8 BodyLockRead_Succeeded(BodyLockRead self);
/// <inheritdoc cref="BodyLockRead.SucceededAndIsInBroadPhase()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockRead_SucceededAndIsInBroadPhase")]
public static partial Brutal.Bool8 BodyLockRead_SucceededAndIsInBroadPhase(BodyLockRead self);
/// <inheritdoc cref="BodyLockRead.GetBody()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockRead_GetBody")]
public static partial Body BodyLockRead_GetBody(BodyLockRead self);
/// <inheritdoc cref="BodyLockRead.ReleaseLock()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockRead_ReleaseLock")]
public static partial void BodyLockRead_ReleaseLock(BodyLockRead self);
}
}
}

View file

@ -0,0 +1,38 @@
// <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 = "BodyLockWrite_Destroy")]
public static partial void BodyLockWrite_Destroy(BodyLockWrite self);
/// <inheritdoc cref="BodyLockWrite.Create(BodyLockInterface, uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyLockWrite_Create")]
public static partial BodyLockWrite BodyLockWrite_Create(BodyLockInterface lockInterface, uint bodyID);
/// <inheritdoc cref="BodyLockWrite.Succeeded()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockWrite_Succeeded")]
public static partial Brutal.Bool8 BodyLockWrite_Succeeded(BodyLockWrite self);
/// <inheritdoc cref="BodyLockWrite.SucceededAndIsInBroadPhase()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockWrite_SucceededAndIsInBroadPhase")]
public static partial Brutal.Bool8 BodyLockWrite_SucceededAndIsInBroadPhase(BodyLockWrite self);
/// <inheritdoc cref="BodyLockWrite.GetBody()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockWrite_GetBody")]
public static partial Body BodyLockWrite_GetBody(BodyLockWrite self);
/// <inheritdoc cref="BodyLockWrite.ReleaseLock()"/>
[LibraryImport("jolt", EntryPoint = "BodyLockWrite_ReleaseLock")]
public static partial void BodyLockWrite_ReleaseLock(BodyLockWrite self);
}
}
}

View file

@ -0,0 +1,223 @@
// <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="BodyManager.Init(uint, uint, BroadPhaseLayerInterface)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_Init")]
public static partial void BodyManager_Init(
BodyManager self,
uint maxBodies,
uint numBodyMutexes,
BroadPhaseLayerInterface layerInterface
);
/// <inheritdoc cref="BodyManager.GetNumBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumBodies")]
public static partial uint BodyManager_GetNumBodies(BodyManager self);
/// <inheritdoc cref="BodyManager.GetMaxBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetMaxBodies")]
public static partial uint BodyManager_GetMaxBodies(BodyManager self);
/// <inheritdoc cref="BodyManager.GetBodyStats()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyStats")]
public static partial void BodyManager_GetBodyStats(BodyManager self, out BodyManager.BodyStats outResult);
/// <inheritdoc cref="BodyManager.AllocateBody(BodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_AllocateBody")]
public static partial Body BodyManager_AllocateBody(
BodyManager self,
BodyCreationSettings bodyCreationSettings
);
/// <inheritdoc cref="BodyManager.AllocateSoftBody(SoftBodyCreationSettings)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_AllocateSoftBody")]
public static partial Body BodyManager_AllocateSoftBody(
BodyManager self,
SoftBodyCreationSettings softBodyCreationSettings
);
/// <inheritdoc cref="BodyManager.FreeBody(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_FreeBody")]
public static partial void BodyManager_FreeBody(BodyManager self, Body body);
/// <inheritdoc cref="BodyManager.AddBody(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_AddBody")]
public static partial Brutal.Bool8 BodyManager_AddBody(BodyManager self, Body body);
/// <inheritdoc cref="BodyManager.AddBodyWithCustomID(Body, uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_AddBodyWithCustomID")]
public static partial Brutal.Bool8 BodyManager_AddBodyWithCustomID(
BodyManager self,
Body body,
uint bodyID
);
/// <inheritdoc cref="BodyManager.RemoveBodies(ReadOnlySpan{uint}, Ptr{Body})"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_RemoveBodies")]
public static partial void BodyManager_RemoveBodies(
BodyManager self,
uint* bodyIDs,
int number,
Body* bodies
);
/// <inheritdoc cref="BodyManager.DestroyBodies(ReadOnlySpan{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_DestroyBodies")]
public static partial void BodyManager_DestroyBodies(BodyManager self, uint* bodyIDs, int number);
/// <inheritdoc cref="BodyManager.ActivateBodies(ReadOnlySpan{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_ActivateBodies")]
public static partial void BodyManager_ActivateBodies(BodyManager self, uint* bodyIDs, int number);
/// <inheritdoc cref="BodyManager.DeactivateBodies(ReadOnlySpan{uint})"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_DeactivateBodies")]
public static partial void BodyManager_DeactivateBodies(BodyManager self, uint* bodyIDs, int number);
/// <inheritdoc cref="BodyManager.SetMotionQuality(Body, MotionQuality)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_SetMotionQuality")]
public static partial void BodyManager_SetMotionQuality(
BodyManager self,
Body body,
MotionQuality motionQuality
);
/// <inheritdoc cref="BodyManager.GetActiveBodies(BodyType)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetActiveBodies")]
public static partial void BodyManager_GetActiveBodies(BodyManager 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/Body/BodyManager.h#L117">Jolt/Physics/Body/BodyManager.h:117</see>
/// <br/>
/// <c>void GetActiveBodies(EBodyType inType, BodyIDVector &amp;outBodyIDs) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <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 = "BodyManager_GetActiveBodies_2")]
public static partial uint BodyManager_GetActiveBodies_2(
BodyManager self,
BodyType type,
uint* buffer,
uint capacity
);
/// <inheritdoc cref="BodyManager.GetNumActiveBodies(BodyType)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumActiveBodies")]
public static partial uint BodyManager_GetNumActiveBodies(BodyManager self, BodyType type);
/// <inheritdoc cref="BodyManager.GetNumActiveCCDBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumActiveCCDBodies")]
public static partial uint BodyManager_GetNumActiveCCDBodies(BodyManager self);
/// <inheritdoc cref="BodyManager.SetBodyActivationListener(BodyActivationListener)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_SetBodyActivationListener")]
public static partial void BodyManager_SetBodyActivationListener(
BodyManager self,
BodyActivationListener listener
);
/// <inheritdoc cref="BodyManager.GetBodyActivationListener()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyActivationListener")]
public static partial BodyActivationListener BodyManager_GetBodyActivationListener(BodyManager self);
/// <inheritdoc cref="BodyManager.IsValidBodyPointer(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_IsValidBodyPointer")]
public static partial Brutal.Bool8 BodyManager_IsValidBodyPointer(Body body);
/// <inheritdoc cref="BodyManager.GetBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodies")]
public static partial void BodyManager_GetBodies(BodyManager self, out NativeSpanView outResult);
/// <inheritdoc cref="BodyManager.GetBodyIDs()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyIDs")]
public static partial void BodyManager_GetBodyIDs(BodyManager self, out nint bodies);
/// <summary>
/// <para>
/// Get all body IDs under the protection of a lock
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Body/BodyManager.h#L142">Jolt/Physics/Body/BodyManager.h:142</see>
/// <br/>
/// <c>void GetBodyIDs(BodyIDVector &amp;outBodies) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <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 = "BodyManager_GetBodyIDs_2")]
public static partial uint BodyManager_GetBodyIDs_2(BodyManager self, uint* buffer, uint capacity);
/// <inheritdoc cref="BodyManager.GetBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBody")]
public static partial Body BodyManager_GetBody(BodyManager self, uint id);
/// <inheritdoc cref="BodyManager.TryGetBody(uint)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_TryGetBody")]
public static partial Body BodyManager_TryGetBody(BodyManager self, uint id);
/// <inheritdoc cref="BodyManager.LockAllBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_LockAllBodies")]
public static partial void BodyManager_LockAllBodies(BodyManager self);
/// <inheritdoc cref="BodyManager.UnlockAllBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_UnlockAllBodies")]
public static partial void BodyManager_UnlockAllBodies(BodyManager self);
/// <inheritdoc cref="BodyManager.InvalidateContactCacheForBody(Body)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_InvalidateContactCacheForBody")]
public static partial void BodyManager_InvalidateContactCacheForBody(BodyManager self, Body body);
/// <inheritdoc cref="BodyManager.ValidateContactCacheForAllBodies()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_ValidateContactCacheForAllBodies")]
public static partial void BodyManager_ValidateContactCacheForAllBodies(BodyManager self);
/// <inheritdoc cref="BodyManager.GetBroadPhaseLayerInterface()"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBroadPhaseLayerInterface")]
public static partial BroadPhaseLayerInterface BodyManager_GetBroadPhaseLayerInterface(BodyManager self);
/// <inheritdoc cref="BodyManager.SaveBodyState(Body, StateRecorder)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_SaveBodyState")]
public static partial void BodyManager_SaveBodyState(BodyManager self, Body body, StateRecorder stream);
/// <inheritdoc cref="BodyManager.RestoreBodyState(Body, StateRecorder)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_RestoreBodyState")]
public static partial void BodyManager_RestoreBodyState(BodyManager self, Body body, StateRecorder stream);
/// <inheritdoc cref="BodyManager.Draw(in BodyManager.DrawSettings, in PhysicsSettings, DebugRenderer, BodyDrawFilter)"/>
[LibraryImport("jolt", EntryPoint = "BodyManager_Draw")]
public static partial void BodyManager_Draw(
BodyManager self,
in BodyManager.DrawSettings settings,
in PhysicsSettings physicsSettings,
DebugRenderer renderer,
BodyDrawFilter bodyFilter
);
}
}
}

View file

@ -0,0 +1,43 @@
// <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="BoxShape.Create()"/>
[LibraryImport("jolt", EntryPoint = "BoxShape_Create")]
public static partial BoxShape BoxShape_Create();
/// <inheritdoc cref="BoxShape.Create(BoxShapeSettings)"/>
[LibraryImport("jolt", EntryPoint = "BoxShape_Create_2")]
public static partial BoxShape BoxShape_Create_2(BoxShapeSettings settings);
/// <inheritdoc cref="BoxShape.Create(float3, float, PhysicsMaterial)"/>
[LibraryImport("jolt", EntryPoint = "BoxShape_Create_3")]
public static partial BoxShape BoxShape_Create_3(
float3 halfExtent,
float convexRadius,
PhysicsMaterial material
);
/// <inheritdoc cref="BoxShape.GetHalfExtent()"/>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetHalfExtent")]
public static partial float3 BoxShape_GetHalfExtent(BoxShape self);
/// <inheritdoc cref="BoxShape.GetConvexRadius()"/>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetConvexRadius")]
public static partial float BoxShape_GetConvexRadius(BoxShape self);
/// <inheritdoc cref="BoxShape.Register()"/>
[LibraryImport("jolt", EntryPoint = "BoxShape_Register")]
public static partial void BoxShape_Register();
}
}
}

View file

@ -0,0 +1,47 @@
// <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="BoxShapeSettings.Create()"/>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Create")]
public static partial BoxShapeSettings BoxShapeSettings_Create();
/// <inheritdoc cref="BoxShapeSettings.Create(float3, float, PhysicsMaterial)"/>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Create_2")]
public static partial BoxShapeSettings BoxShapeSettings_Create_2(
float3 halfExtent,
float convexRadius,
PhysicsMaterial material
);
/// <inheritdoc cref="BoxShapeSettings.GetHalfExtent()"/>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetHalfExtent")]
[SuppressGCTransition]
public static partial float3 BoxShapeSettings_GetHalfExtent(BoxShapeSettings self);
/// <inheritdoc cref="BoxShapeSettings.SetHalfExtent(float3)"/>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_SetHalfExtent")]
[SuppressGCTransition]
public static partial void BoxShapeSettings_SetHalfExtent(BoxShapeSettings self, float3 value);
/// <inheritdoc cref="BoxShapeSettings.GetConvexRadius()"/>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetConvexRadius")]
[SuppressGCTransition]
public static partial float BoxShapeSettings_GetConvexRadius(BoxShapeSettings self);
/// <inheritdoc cref="BoxShapeSettings.SetConvexRadius(float)"/>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_SetConvexRadius")]
[SuppressGCTransition]
public static partial void BoxShapeSettings_SetConvexRadius(BoxShapeSettings self, float value);
}
}
}

View 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 &amp;inObjectVsBroadPhaseLayerFilter, const ObjectLayerPairFilter &amp;inObjectLayerPairFilter, BodyPairCollector &amp;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 &amp;inBox, CastShapeBodyCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;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 &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>
/// <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
);
}
}
}

View file

@ -0,0 +1,274 @@
// <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 = "BroadPhaseBruteForce_Create")]
public static partial BroadPhaseBruteForce BroadPhaseBruteForce_Create();
[LibraryImport("jolt", EntryPoint = "BroadPhaseBruteForce_Destroy")]
public static partial void BroadPhaseBruteForce_Destroy(BroadPhaseBruteForce self);
/// <inheritdoc cref="BroadPhaseBruteForce.NotifyBodiesAABBChanged(Span{uint}, bool)"/>
[LibraryImport("jolt", EntryPoint = "BroadPhaseBruteForce_NotifyBodiesAABBChanged")]
public static partial void BroadPhaseBruteForce_NotifyBodiesAABBChanged(
BroadPhaseBruteForce self,
uint* bodies,
int number,
Brutal.Bool8 takeLock
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h#L23">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:23</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 = "BroadPhaseBruteForce_CastRay")]
public static partial uint BroadPhaseBruteForce_CastRay(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L23">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:23</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 = "BroadPhaseBruteForce_CastRayClosest")]
public static partial uint BroadPhaseBruteForce_CastRayClosest(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L24">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:24</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 = "BroadPhaseBruteForce_CollideAABox")]
public static partial uint BroadPhaseBruteForce_CollideAABox(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L25">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:25</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 = "BroadPhaseBruteForce_CollideSphere")]
public static partial uint BroadPhaseBruteForce_CollideSphere(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L26">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:26</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 = "BroadPhaseBruteForce_CollidePoint")]
public static partial uint BroadPhaseBruteForce_CollidePoint(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L27">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:27</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 = "BroadPhaseBruteForce_CollideOrientedBox")]
public static partial uint BroadPhaseBruteForce_CollideOrientedBox(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L29">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:29</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 = "BroadPhaseBruteForce_CastAABox")]
public static partial uint BroadPhaseBruteForce_CastAABox(
BroadPhaseBruteForce 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/BroadPhaseBruteForce.h#L29">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:29</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 = "BroadPhaseBruteForce_CastAABoxClosest")]
public static partial uint BroadPhaseBruteForce_CastAABoxClosest(
BroadPhaseBruteForce self,
in AABoxCast box,
out BroadPhaseCastResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter
);
}
}
}

Some files were not shown because too many files have changed in this diff Show more