SOURCE DUMP v1

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

View file

@ -0,0 +1,32 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L101">Jolt/AABBTree/AABBTreeBuilder.h:101</see>
/// <br/>
/// <c>explicit AABBTreeBuilder(TriangleSplitter &amp;inSplitter, uint inMaxTrianglesPerLeaf = 16)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[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);
}
}
}

View file

@ -0,0 +1,402 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L21">Jolt/Geometry/AABox.h:21</see>
/// <br/>
/// <c>AABox()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Create")]
public static partial AABox AABox_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L22">Jolt/Geometry/AABox.h:22</see>
/// <br/>
/// <c>AABox(Vec3Arg inMin, Vec3Arg inMax)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Create_2")]
public static partial AABox AABox_Create_2(float3 min, float3 max);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L24">Jolt/Geometry/AABox.h:24</see>
/// <br/>
/// <c>AABox(Vec3Arg inCenter, float inRadius)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_Create_3")]
public static partial AABox AABox_Create_3(float3 center, float radius);
[LibraryImport("jolt", EntryPoint = "AABox_Destroy")]
public static partial void AABox_Destroy(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L49">Jolt/Geometry/AABox.h:49</see>
/// <br/>
/// <c>void SetEmpty()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset the bounding box to an empty bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_SetEmpty")]
public static partial void AABox_SetEmpty(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L56">Jolt/Geometry/AABox.h:56</see>
/// <br/>
/// <c>bool IsValid() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if the bounding box is valid (max &gt;= min)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_IsValid")]
public static partial Brutal.Bool8 AABox_IsValid(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L62">Jolt/Geometry/AABox.h:62</see>
/// <br/>
/// <c>void Encapsulate(Vec3Arg inPos)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Encapsulate point in bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate")]
public static partial void AABox_Encapsulate(AABox self, float3 pos);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L69">Jolt/Geometry/AABox.h:69</see>
/// <br/>
/// <c>void Encapsulate(const AABox &amp;inRHS)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Encapsulate bounding box in bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_2")]
public static partial void AABox_Encapsulate_2(AABox self, AABox rHS);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L76">Jolt/Geometry/AABox.h:76</see>
/// <br/>
/// <c>void Encapsulate(const Triangle &amp;inRHS)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Encapsulate triangle in bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_3")]
public static partial void AABox_Encapsulate_3(AABox self, Triangle rHS);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L100">Jolt/Geometry/AABox.h:100</see>
/// <br/>
/// <c>void EnsureMinimalEdgeLength(float inMinEdgeLength)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Make sure that each edge of the bounding box has a minimal length
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_EnsureMinimalEdgeLength")]
public static partial void AABox_EnsureMinimalEdgeLength(AABox self, float minEdgeLength);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L107">Jolt/Geometry/AABox.h:107</see>
/// <br/>
/// <c>void ExpandBy(Vec3Arg inVector)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Widen the box on both sides by inVector
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_ExpandBy")]
public static partial void AABox_ExpandBy(AABox self, float3 vector);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L114">Jolt/Geometry/AABox.h:114</see>
/// <br/>
/// <c>Vec3 GetCenter() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get center of bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetCenter")]
public static partial float3 AABox_GetCenter(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L120">Jolt/Geometry/AABox.h:120</see>
/// <br/>
/// <c>Vec3 GetExtent() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get extent of bounding box (half of the size)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetExtent")]
public static partial float3 AABox_GetExtent(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L126">Jolt/Geometry/AABox.h:126</see>
/// <br/>
/// <c>Vec3 GetSize() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get size of bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetSize")]
public static partial float3 AABox_GetSize(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L132">Jolt/Geometry/AABox.h:132</see>
/// <br/>
/// <c>float GetSurfaceArea() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get surface area of bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetSurfaceArea")]
public static partial float AABox_GetSurfaceArea(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L139">Jolt/Geometry/AABox.h:139</see>
/// <br/>
/// <c>float GetVolume() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get volume of bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetVolume")]
public static partial float AABox_GetVolume(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L146">Jolt/Geometry/AABox.h:146</see>
/// <br/>
/// <c>bool Contains(const AABox &amp;inOther) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if this box contains another box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Contains")]
public static partial Brutal.Bool8 AABox_Contains(AABox self, AABox other);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L152">Jolt/Geometry/AABox.h:152</see>
/// <br/>
/// <c>bool Contains(Vec3Arg inOther) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if this box contains a point
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Contains_2")]
public static partial Brutal.Bool8 AABox_Contains_2(AABox self, float3 other);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L164">Jolt/Geometry/AABox.h:164</see>
/// <br/>
/// <c>bool Overlaps(const AABox &amp;inOther) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if this box overlaps with another box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Overlaps")]
public static partial Brutal.Bool8 AABox_Overlaps(AABox self, AABox other);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L170">Jolt/Geometry/AABox.h:170</see>
/// <br/>
/// <c>bool Overlaps(const Plane &amp;inPlane) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if this box overlaps with a plane
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Overlaps_2")]
public static partial Brutal.Bool8 AABox_Overlaps_2(AABox self, Plane plane);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L179">Jolt/Geometry/AABox.h:179</see>
/// <br/>
/// <c>void Translate(Vec3Arg inTranslation)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Translate bounding box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_Translate")]
public static partial void AABox_Translate(AABox self, float3 translation);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L230">Jolt/Geometry/AABox.h:230</see>
/// <br/>
/// <c>Vec3 GetSupport(Vec3Arg inDirection) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate the support vector for this convex shape.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetSupport")]
public static partial float3 AABox_GetSupport(AABox self, float3 direction);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L297">Jolt/Geometry/AABox.h:297</see>
/// <br/>
/// <c>Vec3 GetClosestPoint(Vec3Arg inPoint) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the closest point on or in this box to inPoint
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetClosestPoint")]
public static partial float3 AABox_GetClosestPoint(AABox self, float3 point);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L303">Jolt/Geometry/AABox.h:303</see>
/// <br/>
/// <c>inline float GetSqDistanceTo(Vec3Arg inPoint) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the squared distance between inPoint and this box (will be 0 if in Point is inside the box)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetSqDistanceTo")]
public static partial float AABox_GetSqDistanceTo(AABox self, float3 point);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L309">Jolt/Geometry/AABox.h:309</see>
/// <br/>
/// <c>Vec3 mMin</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Bounding box min and max
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_GetMin")]
public static partial float3 AABox_GetMin(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L309">Jolt/Geometry/AABox.h:309</see>
/// <br/>
/// <c>Vec3 mMin</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Bounding box min and max
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AABox_SetMin")]
public static partial void AABox_SetMin(AABox self, float3 value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L310">Jolt/Geometry/AABox.h:310</see>
/// <br/>
/// <c>Vec3 mMax</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_GetMax")]
public static partial float3 AABox_GetMax(AABox self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L310">Jolt/Geometry/AABox.h:310</see>
/// <br/>
/// <c>Vec3 mMax</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "AABox_SetMax")]
public static partial void AABox_SetMax(AABox self, float3 value);
}
}
}

View file

@ -0,0 +1,204 @@
// <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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L81">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:81</see>
/// <br/>
/// <c>inline void CalculateConstraintProperties(const Body &amp;inBody1, const Body &amp;inBody2, Vec3Arg inWorldSpaceAxis, float inBias = 0.0f)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
/// Set the following terms to zero if you don't want to drive the constraint to zero with a spring:
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintProperties")]
public static partial void AngleConstraintPart_CalculateConstraintProperties(AngleConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float bias);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L104">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:104</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithFrequencyAndDamping(float inDeltaTime, const Body &amp;inBody1, const Body &amp;inBody2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, float inFrequency, float inDamping)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below
/// @param inDeltaTime Time step
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
/// Set the following terms to zero if you don't want to drive the constraint to zero with a spring:
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// @param inC Value of the constraint equation (C)
/// @param inFrequency Oscillation frequency (Hz)
/// @param inDamping Damping factor (0 = no damping, 1 = critical damping)
/// </code>
/// </remarks>
[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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L124">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:124</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithStiffnessAndDamping(float inDeltaTime, const Body &amp;inBody1, const Body &amp;inBody2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, float inStiffness, float inDamping)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below
/// @param inDeltaTime Time step
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
/// Set the following terms to zero if you don't want to drive the constraint to zero with a spring:
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// @param inC Value of the constraint equation (C)
/// @param inStiffness Spring stiffness k.
/// @param inDamping Spring damping coefficient c.
/// </code>
/// </remarks>
[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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L135">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:135</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithSettings(float inDeltaTime, const Body &amp;inBody1, const Body &amp;inBody2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, const SpringSettings &amp;inSpringSettings)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selects one of the above functions based on the spring settings
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithSettings")]
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithSettings(AngleConstraintPart self, float deltaTime, Body body1, Body body2, float3 worldSpaceAxis, float bias, float c, SpringSettings springSettings);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L148">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:148</see>
/// <br/>
/// <c>inline void Deactivate()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Deactivate this constraint
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_Deactivate")]
public static partial void AngleConstraintPart_Deactivate(AngleConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L155">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:155</see>
/// <br/>
/// <c>inline bool IsActive() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if constraint is active
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_IsActive")]
public static partial Brutal.Bool8 AngleConstraintPart_IsActive(AngleConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L164">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:164</see>
/// <br/>
/// <c>inline void WarmStart(Body &amp;ioBody1, Body &amp;ioBody2, float inWarmStartImpulseRatio)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Must be called from the WarmStartVelocityConstraint call to apply the previous frame's impulses
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inWarmStartImpulseRatio Ratio of new step to old time step (dt_new / dt_old) for scaling the lagrange multiplier of the previous frame
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_WarmStart")]
public static partial void AngleConstraintPart_WarmStart(AngleConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L176">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:176</see>
/// <br/>
/// <c>inline bool SolveVelocityConstraint(Body &amp;ioBody1, Body &amp;ioBody2, Vec3Arg inWorldSpaceAxis, float inMinLambda, float inMaxLambda)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint equation.
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
/// @param inMinLambda Minimum angular impulse to apply (N m s)
/// @param inMaxLambda Maximum angular impulse to apply (N m s)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 AngleConstraintPart_SolveVelocityConstraint(AngleConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float minLambda, float maxLambda);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L190">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:190</see>
/// <br/>
/// <c>float GetTotalLambda() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Return lagrange multiplier
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_GetTotalLambda")]
public static partial float AngleConstraintPart_GetTotalLambda(AngleConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L200">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:200</see>
/// <br/>
/// <c>inline bool SolvePositionConstraint(Body &amp;ioBody1, Body &amp;ioBody2, float inC, float inBaumgarte) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Iteratively update the position constraint. Makes sure C(...) == 0.
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inC Value of the constraint equation (C)
/// @param inBaumgarte Baumgarte constant (fraction of the error to correct)
/// </code>
/// </remarks>
[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,293 @@
// <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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L249">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:249</see>
/// <br/>
/// <c>inline void CalculateConstraintProperties(const Body &amp;inBody1, Vec3Arg inR1PlusU, const Body &amp;inBody2, Vec3Arg inR2, Vec3Arg inWorldSpaceAxis, float inBias = 0.0f)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inR1PlusU See equations above (r1 + u)
/// @param inR2 See equations above (r2)
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized, pointing from body 1 to 2)
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// </code>
/// </remarks>
[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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L273">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:273</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithMassOverride(const Body &amp;inBody1, float inInvMass1, float inInvInertiaScale1, Vec3Arg inR1PlusU, const Body &amp;inBody2, float inInvMass2, float inInvInertiaScale2, Vec3Arg inR2, Vec3Arg inWorldSpaceAxis, float inBias = 0.0f)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below, version that supports mass scaling
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inInvMass1 The inverse mass of body 1 (only used when body 1 is dynamic)
/// @param inInvMass2 The inverse mass of body 2 (only used when body 2 is dynamic)
/// @param inInvInertiaScale1 Scale factor for the inverse inertia of body 1
/// @param inInvInertiaScale2 Scale factor for the inverse inertia of body 2
/// @param inR1PlusU See equations above (r1 + u)
/// @param inR2 See equations above (r2)
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized, pointing from body 1 to 2)
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_CalculateConstraintPropertiesWithMassOverride")]
public static partial void AxisConstraintPart_CalculateConstraintPropertiesWithMassOverride(AxisConstraintPart self, Body body1, float invMass1, float invInertiaScale1, float3 r1PlusU, Body body2, float invMass2, float invInertiaScale2, float3 r2, float3 worldSpaceAxis, float bias);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L297">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:297</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithFrequencyAndDamping(float inDeltaTime, const Body &amp;inBody1, Vec3Arg inR1PlusU, const Body &amp;inBody2, Vec3Arg inR2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, float inFrequency, float inDamping)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below
/// @param inDeltaTime Time step
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inR1PlusU See equations above (r1 + u)
/// @param inR2 See equations above (r2)
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized, pointing from body 1 to 2)
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// @param inC Value of the constraint equation (C).
/// @param inFrequency Oscillation frequency (Hz).
/// @param inDamping Damping factor (0 = no damping, 1 = critical damping).
/// </code>
/// </remarks>
[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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L318">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:318</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithStiffnessAndDamping(float inDeltaTime, const Body &amp;inBody1, Vec3Arg inR1PlusU, const Body &amp;inBody2, Vec3Arg inR2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, float inStiffness, float inDamping)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate properties used during the functions below
/// @param inDeltaTime Time step
/// @param inBody1 The first body that this constraint is attached to
/// @param inBody2 The second body that this constraint is attached to
/// @param inR1PlusU See equations above (r1 + u)
/// @param inR2 See equations above (r2)
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized, pointing from body 1 to 2)
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
/// @param inC Value of the constraint equation (C).
/// @param inStiffness Spring stiffness k.
/// @param inDamping Spring damping coefficient c.
/// </code>
/// </remarks>
[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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L329">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:329</see>
/// <br/>
/// <c>inline void CalculateConstraintPropertiesWithSettings(float inDeltaTime, const Body &amp;inBody1, Vec3Arg inR1PlusU, const Body &amp;inBody2, Vec3Arg inR2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, const SpringSettings &amp;inSpringSettings)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selects one of the above functions based on the spring settings
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_CalculateConstraintPropertiesWithSettings")]
public static partial void AxisConstraintPart_CalculateConstraintPropertiesWithSettings(AxisConstraintPart self, float deltaTime, Body body1, float3 r1PlusU, Body body2, float3 r2, float3 worldSpaceAxis, float bias, float c, SpringSettings springSettings);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L342">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:342</see>
/// <br/>
/// <c>inline void Deactivate()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Deactivate this constraint
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_Deactivate")]
public static partial void AxisConstraintPart_Deactivate(AxisConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L349">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:349</see>
/// <br/>
/// <c>inline bool IsActive() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if constraint is active
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_IsActive")]
public static partial Brutal.Bool8 AxisConstraintPart_IsActive(AxisConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L368">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:368</see>
/// <br/>
/// <c>inline void WarmStart(Body &amp;ioBody1, Body &amp;ioBody2, Vec3Arg inWorldSpaceAxis, float inWarmStartImpulseRatio)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Must be called from the WarmStartVelocityConstraint call to apply the previous frame's impulses
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized)
/// @param inWarmStartImpulseRatio Ratio of new step to old time step (dt_new / dt_old) for scaling the lagrange multiplier of the previous frame
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_WarmStart")]
public static partial void AxisConstraintPart_WarmStart(AxisConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float warmStartImpulseRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L450">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:450</see>
/// <br/>
/// <c>inline bool SolveVelocityConstraint(Body &amp;ioBody1, Body &amp;ioBody2, Vec3Arg inWorldSpaceAxis, float inMinLambda, float inMaxLambda)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint equation.
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized)
/// @param inMinLambda Minimum value of constraint impulse to apply (N s)
/// @param inMaxLambda Maximum value of constraint impulse to apply (N s)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 AxisConstraintPart_SolveVelocityConstraint(AxisConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float minLambda, float maxLambda);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L503">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:503</see>
/// <br/>
/// <c>inline bool SolveVelocityConstraintWithMassOverride(Body &amp;ioBody1, float inInvMass1, Body &amp;ioBody2, float inInvMass2, Vec3Arg inWorldSpaceAxis, float inMinLambda, float inMaxLambda)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint equation.
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inInvMass1 The inverse mass of body 1 (only used when body 1 is dynamic)
/// @param inInvMass2 The inverse mass of body 2 (only used when body 2 is dynamic)
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized)
/// @param inMinLambda Minimum value of constraint impulse to apply (N s)
/// @param inMaxLambda Maximum value of constraint impulse to apply (N s)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SolveVelocityConstraintWithMassOverride")]
public static partial Brutal.Bool8 AxisConstraintPart_SolveVelocityConstraintWithMassOverride(AxisConstraintPart self, Body body1, float invMass1, Body body2, float invMass2, float3 worldSpaceAxis, float minLambda, float maxLambda);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L554">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:554</see>
/// <br/>
/// <c>inline bool SolvePositionConstraint(Body &amp;ioBody1, Body &amp;ioBody2, Vec3Arg inWorldSpaceAxis, float inC, float inBaumgarte) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Iteratively update the position constraint. Makes sure C(...) = 0.
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized)
/// @param inC Value of the constraint equation (C)
/// @param inBaumgarte Baumgarte constant (fraction of the error to correct)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SolvePositionConstraint")]
public static partial Brutal.Bool8 AxisConstraintPart_SolvePositionConstraint(AxisConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float c, float baumgarte);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L605">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:605</see>
/// <br/>
/// <c>inline bool SolvePositionConstraintWithMassOverride(Body &amp;ioBody1, float inInvMass1, Body &amp;ioBody2, float inInvMass2, Vec3Arg inWorldSpaceAxis, float inC, float inBaumgarte) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Iteratively update the position constraint. Makes sure C(...) = 0.
/// @param ioBody1 The first body that this constraint is attached to
/// @param ioBody2 The second body that this constraint is attached to
/// @param inInvMass1 The inverse mass of body 1 (only used when body 1 is dynamic)
/// @param inInvMass2 The inverse mass of body 2 (only used when body 2 is dynamic)
/// @param inWorldSpaceAxis Axis along which the constraint acts (normalized)
/// @param inC Value of the constraint equation (C)
/// @param inBaumgarte Baumgarte constant (fraction of the error to correct)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SolvePositionConstraintWithMassOverride")]
public static partial Brutal.Bool8 AxisConstraintPart_SolvePositionConstraintWithMassOverride(AxisConstraintPart self, Body body1, float invMass1, Body body2, float invMass2, float3 worldSpaceAxis, float c, float baumgarte);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L649">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:649</see>
/// <br/>
/// <c>inline void SetTotalLambda(float inLambda)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Override total lagrange multiplier, can be used to set the initial value for warm starting
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_SetTotalLambda")]
public static partial void AxisConstraintPart_SetTotalLambda(AxisConstraintPart self, float lambda);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h#L655">Jolt/Physics/Constraints/ConstraintPart/AxisConstraintPart.h:655</see>
/// <br/>
/// <c>inline float GetTotalLambda() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Return lagrange multiplier
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "AxisConstraintPart_GetTotalLambda")]
public static partial float AxisConstraintPart_GetTotalLambda(AxisConstraintPart self);
}
}
}

File diff suppressed because it is too large Load diff

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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyActivationListener.h#L21">Jolt/Physics/Body/BodyActivationListener.h:21</see>
/// <br/>
/// <c>virtual void OnBodyActivated(const BodyID &amp;inBodyID, uint64 inBodyUserData) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Called whenever a body activates, note this can be called from any thread so make sure your code is thread safe.
/// At the time of the callback the body inBodyID will be locked and no bodies can be written/activated/deactivated from the callback.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_OnBodyActivated")]
public static partial void BodyActivationListener_OnBodyActivated(BodyActivationListener self, uint bodyID, ulong bodyUserData);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyActivationListener.h#L25">Jolt/Physics/Body/BodyActivationListener.h:25</see>
/// <br/>
/// <c>virtual void OnBodyDeactivated(const BodyID &amp;inBodyID, uint64 inBodyUserData) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Called whenever a body deactivates, note this can be called from any thread so make sure your code is thread safe.
/// At the time of the callback the body inBodyID will be locked and no bodies can be written/activated/deactivated from the callback.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyActivationListener_OnBodyDeactivated")]
public static partial void BodyActivationListener_OnBodyDeactivated(BodyActivationListener self, uint bodyID, ulong bodyUserData);
}
}
}

View file

@ -0,0 +1,939 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L36">Jolt/Physics/Body/BodyCreationSettings.h:36</see>
/// <br/>
/// <c>BodyCreationSettings() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create")]
public static partial BodyCreationSettings BodyCreationSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L37">Jolt/Physics/Body/BodyCreationSettings.h:37</see>
/// <br/>
/// <c>BodyCreationSettings(const ShapeSettings *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_2")]
public static partial BodyCreationSettings BodyCreationSettings_Create_2(ShapeSettings shape, float3 position, floatQuat rotation, EMotionType motionType, ushort objectLayer);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L38">Jolt/Physics/Body/BodyCreationSettings.h:38</see>
/// <br/>
/// <c>BodyCreationSettings(const Shape *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_3")]
public static partial BodyCreationSettings BodyCreationSettings_Create_3(Shape shape, float3 position, floatQuat rotation, EMotionType motionType, ushort objectLayer);
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Destroy")]
public static partial void BodyCreationSettings_Destroy(BodyCreationSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L41">Jolt/Physics/Body/BodyCreationSettings.h:41</see>
/// <br/>
/// <c>const ShapeSettings * GetShapeSettings() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access to the shape settings object. This contains serializable (non-runtime optimized) information
/// about the Shape.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShapeSettings")]
public static partial ShapeSettings BodyCreationSettings_GetShapeSettings(BodyCreationSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L42">Jolt/Physics/Body/BodyCreationSettings.h:42</see>
/// <br/>
/// <c>void SetShapeSettings(const ShapeSettings *inShape)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShapeSettings")]
public static partial void BodyCreationSettings_SetShapeSettings(BodyCreationSettings self, ShapeSettings shape);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L45">Jolt/Physics/Body/BodyCreationSettings.h:45</see>
/// <br/>
/// <c>Shape::ShapeResult ConvertShapeSettings()</c>
/// </para>
/// </summary>
/// <remarks>
/// <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>
/// 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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L48">Jolt/Physics/Body/BodyCreationSettings.h:48</see>
/// <br/>
/// <c>const Shape * GetShape() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access to the run-time shape object. Will convert from ShapeSettings object if needed.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShape")]
public static partial Shape BodyCreationSettings_GetShape(BodyCreationSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L49">Jolt/Physics/Body/BodyCreationSettings.h:49</see>
/// <br/>
/// <c>void SetShape(const Shape *inShape)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShape")]
public static partial void BodyCreationSettings_SetShape(BodyCreationSettings self, Shape shape);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L52">Jolt/Physics/Body/BodyCreationSettings.h:52</see>
/// <br/>
/// <c>bool HasMassProperties() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if the mass properties of this body will be calculated (only relevant for kinematic or dynamic
/// objects that need a MotionProperties object)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_HasMassProperties")]
public static partial Brutal.Bool8 BodyCreationSettings_HasMassProperties(BodyCreationSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L58">Jolt/Physics/Body/BodyCreationSettings.h:58</see>
/// <br/>
/// <c>void SaveBinaryState(StreamOut &amp;inStream) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Saves the state of this object in binary form to inStream. Doesn't store the shape nor the group
/// filter.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SaveBinaryState")]
public static partial void BodyCreationSettings_SaveBinaryState(BodyCreationSettings self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L61">Jolt/Physics/Body/BodyCreationSettings.h:61</see>
/// <br/>
/// <c>void RestoreBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Restore the state of this object from inStream. Doesn't restore the shape nor the group filter.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_RestoreBinaryState")]
public static partial void BodyCreationSettings_RestoreBinaryState(BodyCreationSettings self, StreamIn stream);
/// <summary>
/// <para>
/// Position of the body (not of the center of mass)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L80">Jolt/Physics/Body/BodyCreationSettings.h:80</see>
/// <br/>
/// <c>RVec3 mPosition = RVec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetPosition")]
public static partial float3 BodyCreationSettings_GetPosition(BodyCreationSettings self);
/// <summary>
/// <para>
/// Position of the body (not of the center of mass)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L80">Jolt/Physics/Body/BodyCreationSettings.h:80</see>
/// <br/>
/// <c>RVec3 mPosition = RVec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetPosition")]
public static partial void BodyCreationSettings_SetPosition(BodyCreationSettings self, float3 value);
/// <summary>
/// <para>
/// Rotation of the body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L81">Jolt/Physics/Body/BodyCreationSettings.h:81</see>
/// <br/>
/// <c>Quat mRotation = Quat::sIdentity()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRotation")]
public static partial floatQuat BodyCreationSettings_GetRotation(BodyCreationSettings self);
/// <summary>
/// <para>
/// Rotation of the body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L81">Jolt/Physics/Body/BodyCreationSettings.h:81</see>
/// <br/>
/// <c>Quat mRotation = Quat::sIdentity()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRotation")]
public static partial void BodyCreationSettings_SetRotation(BodyCreationSettings self, floatQuat value);
/// <summary>
/// <para>
/// World space linear velocity of the center of mass (m/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L82">Jolt/Physics/Body/BodyCreationSettings.h:82</see>
/// <br/>
/// <c>Vec3 mLinearVelocity = Vec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearVelocity")]
public static partial float3 BodyCreationSettings_GetLinearVelocity(BodyCreationSettings self);
/// <summary>
/// <para>
/// World space linear velocity of the center of mass (m/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L82">Jolt/Physics/Body/BodyCreationSettings.h:82</see>
/// <br/>
/// <c>Vec3 mLinearVelocity = Vec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearVelocity")]
public static partial void BodyCreationSettings_SetLinearVelocity(BodyCreationSettings self, float3 value);
/// <summary>
/// <para>
/// World space angular velocity (rad/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L83">Jolt/Physics/Body/BodyCreationSettings.h:83</see>
/// <br/>
/// <c>Vec3 mAngularVelocity = Vec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularVelocity")]
public static partial float3 BodyCreationSettings_GetAngularVelocity(BodyCreationSettings self);
/// <summary>
/// <para>
/// World space angular velocity (rad/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L83">Jolt/Physics/Body/BodyCreationSettings.h:83</see>
/// <br/>
/// <c>Vec3 mAngularVelocity = Vec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularVelocity")]
public static partial void BodyCreationSettings_SetAngularVelocity(BodyCreationSettings self, float3 value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L86">Jolt/Physics/Body/BodyCreationSettings.h:86</see>
/// <br/>
/// <c>uint64 mUserData = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// User data value (can be used by application)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUserData")]
public static partial ulong BodyCreationSettings_GetUserData(BodyCreationSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L86">Jolt/Physics/Body/BodyCreationSettings.h:86</see>
/// <br/>
/// <c>uint64 mUserData = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// User data value (can be used by application)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUserData")]
public static partial void BodyCreationSettings_SetUserData(BodyCreationSettings self, ulong value);
/// <summary>
/// <para>
/// The collision layer this body belongs to (determines if two objects can collide)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L89">Jolt/Physics/Body/BodyCreationSettings.h:89</see>
/// <br/>
/// <c>ObjectLayer mObjectLayer = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Collision settings
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetObjectLayer")]
public static partial ushort BodyCreationSettings_GetObjectLayer(BodyCreationSettings self);
/// <summary>
/// <para>
/// The collision layer this body belongs to (determines if two objects can collide)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L89">Jolt/Physics/Body/BodyCreationSettings.h:89</see>
/// <br/>
/// <c>ObjectLayer mObjectLayer = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Collision settings
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetObjectLayer")]
public static partial void BodyCreationSettings_SetObjectLayer(BodyCreationSettings self, ushort value);
/// <summary>
/// <para>
/// Motion type, determines if the object is static, dynamic or kinematic
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L93">Jolt/Physics/Body/BodyCreationSettings.h:93</see>
/// <br/>
/// <c>EMotionType mMotionType = EMotionType::Dynamic</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Simulation properties
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionType")]
public static partial EMotionType BodyCreationSettings_GetMotionType(BodyCreationSettings self);
/// <summary>
/// <para>
/// Motion type, determines if the object is static, dynamic or kinematic
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L93">Jolt/Physics/Body/BodyCreationSettings.h:93</see>
/// <br/>
/// <c>EMotionType mMotionType = EMotionType::Dynamic</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Simulation properties
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionType")]
public static partial void BodyCreationSettings_SetMotionType(BodyCreationSettings self, EMotionType value);
/// <summary>
/// <para>
/// Which degrees of freedom this body has (can be used to limit simulation to 2D)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L94">Jolt/Physics/Body/BodyCreationSettings.h:94</see>
/// <br/>
/// <c>EAllowedDOFs mAllowedDOFs = EAllowedDOFs::All</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowedDOFs")]
public static partial EAllowedDOFs BodyCreationSettings_GetAllowedDOFs(BodyCreationSettings self);
/// <summary>
/// <para>
/// Which degrees of freedom this body has (can be used to limit simulation to 2D)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L94">Jolt/Physics/Body/BodyCreationSettings.h:94</see>
/// <br/>
/// <c>EAllowedDOFs mAllowedDOFs = EAllowedDOFs::All</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowedDOFs")]
public static partial void BodyCreationSettings_SetAllowedDOFs(BodyCreationSettings self, EAllowedDOFs value);
/// <summary>
/// <para>
/// When this body is created as static, this setting tells the system to create a MotionProperties
/// object so that the object can be switched to kinematic or dynamic
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L95">Jolt/Physics/Body/BodyCreationSettings.h:95</see>
/// <br/>
/// <c>bool mAllowDynamicOrKinematic = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowDynamicOrKinematic")]
public static partial Brutal.Bool8 BodyCreationSettings_GetAllowDynamicOrKinematic(BodyCreationSettings self);
/// <summary>
/// <para>
/// When this body is created as static, this setting tells the system to create a MotionProperties
/// object so that the object can be switched to kinematic or dynamic
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L95">Jolt/Physics/Body/BodyCreationSettings.h:95</see>
/// <br/>
/// <c>bool mAllowDynamicOrKinematic = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowDynamicOrKinematic")]
public static partial void BodyCreationSettings_SetAllowDynamicOrKinematic(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// If this body is a sensor. A sensor will receive collision callbacks, but will not cause any
/// collision responses and can be used as a trigger volume. See description at Body::SetIsSensor.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L96">Jolt/Physics/Body/BodyCreationSettings.h:96</see>
/// <br/>
/// <c>bool mIsSensor = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetIsSensor")]
public static partial Brutal.Bool8 BodyCreationSettings_GetIsSensor(BodyCreationSettings self);
/// <summary>
/// <para>
/// If this body is a sensor. A sensor will receive collision callbacks, but will not cause any
/// collision responses and can be used as a trigger volume. See description at Body::SetIsSensor.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L96">Jolt/Physics/Body/BodyCreationSettings.h:96</see>
/// <br/>
/// <c>bool mIsSensor = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetIsSensor")]
public static partial void BodyCreationSettings_SetIsSensor(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// If kinematic objects can generate contact points against other kinematic or static objects. See
/// description at Body::SetCollideKinematicVsNonDynamic.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L97">Jolt/Physics/Body/BodyCreationSettings.h:97</see>
/// <br/>
/// <c>bool mCollideKinematicVsNonDynamic = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetCollideKinematicVsNonDynamic")]
public static partial Brutal.Bool8 BodyCreationSettings_GetCollideKinematicVsNonDynamic(BodyCreationSettings self);
/// <summary>
/// <para>
/// If kinematic objects can generate contact points against other kinematic or static objects. See
/// description at Body::SetCollideKinematicVsNonDynamic.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L97">Jolt/Physics/Body/BodyCreationSettings.h:97</see>
/// <br/>
/// <c>bool mCollideKinematicVsNonDynamic = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetCollideKinematicVsNonDynamic")]
public static partial void BodyCreationSettings_SetCollideKinematicVsNonDynamic(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// If this body should use manifold reduction (see description at Body::SetUseManifoldReduction)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L98">Jolt/Physics/Body/BodyCreationSettings.h:98</see>
/// <br/>
/// <c>bool mUseManifoldReduction = true</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUseManifoldReduction")]
public static partial Brutal.Bool8 BodyCreationSettings_GetUseManifoldReduction(BodyCreationSettings self);
/// <summary>
/// <para>
/// If this body should use manifold reduction (see description at Body::SetUseManifoldReduction)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L98">Jolt/Physics/Body/BodyCreationSettings.h:98</see>
/// <br/>
/// <c>bool mUseManifoldReduction = true</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUseManifoldReduction")]
public static partial void BodyCreationSettings_SetUseManifoldReduction(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// Set to indicate that the gyroscopic force should be applied to this body (aka Dzhanibekov effect,
/// see https://en.wikipedia.org/wiki/Tennis_racket_theorem)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L99">Jolt/Physics/Body/BodyCreationSettings.h:99</see>
/// <br/>
/// <c>bool mApplyGyroscopicForce = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetApplyGyroscopicForce")]
public static partial Brutal.Bool8 BodyCreationSettings_GetApplyGyroscopicForce(BodyCreationSettings self);
/// <summary>
/// <para>
/// Set to indicate that the gyroscopic force should be applied to this body (aka Dzhanibekov effect,
/// see https://en.wikipedia.org/wiki/Tennis_racket_theorem)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L99">Jolt/Physics/Body/BodyCreationSettings.h:99</see>
/// <br/>
/// <c>bool mApplyGyroscopicForce = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetApplyGyroscopicForce")]
public static partial void BodyCreationSettings_SetApplyGyroscopicForce(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// Motion quality, or how well it detects collisions when it has a high velocity
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L100">Jolt/Physics/Body/BodyCreationSettings.h:100</see>
/// <br/>
/// <c>EMotionQuality mMotionQuality = EMotionQuality::Discrete</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionQuality")]
public static partial EMotionQuality BodyCreationSettings_GetMotionQuality(BodyCreationSettings self);
/// <summary>
/// <para>
/// Motion quality, or how well it detects collisions when it has a high velocity
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L100">Jolt/Physics/Body/BodyCreationSettings.h:100</see>
/// <br/>
/// <c>EMotionQuality mMotionQuality = EMotionQuality::Discrete</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionQuality")]
public static partial void BodyCreationSettings_SetMotionQuality(BodyCreationSettings self, EMotionQuality value);
/// <summary>
/// <para>
/// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with
/// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with
/// convex edges.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L101">Jolt/Physics/Body/BodyCreationSettings.h:101</see>
/// <br/>
/// <c>bool mEnhancedInternalEdgeRemoval = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetEnhancedInternalEdgeRemoval")]
public static partial Brutal.Bool8 BodyCreationSettings_GetEnhancedInternalEdgeRemoval(BodyCreationSettings self);
/// <summary>
/// <para>
/// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with
/// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with
/// convex edges.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L101">Jolt/Physics/Body/BodyCreationSettings.h:101</see>
/// <br/>
/// <c>bool mEnhancedInternalEdgeRemoval = false</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetEnhancedInternalEdgeRemoval")]
public static partial void BodyCreationSettings_SetEnhancedInternalEdgeRemoval(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// If this body can go to sleep or not
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L102">Jolt/Physics/Body/BodyCreationSettings.h:102</see>
/// <br/>
/// <c>bool mAllowSleeping = true</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowSleeping")]
public static partial Brutal.Bool8 BodyCreationSettings_GetAllowSleeping(BodyCreationSettings self);
/// <summary>
/// <para>
/// If this body can go to sleep or not
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L102">Jolt/Physics/Body/BodyCreationSettings.h:102</see>
/// <br/>
/// <c>bool mAllowSleeping = true</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowSleeping")]
public static partial void BodyCreationSettings_SetAllowSleeping(BodyCreationSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// Friction of the body (dimensionless number, usually between 0 and 1, 0 = no friction, 1 = friction
/// force equals force that presses the two bodies together). Note that bodies can have negative
/// friction but the combined friction (see PhysicsSystem::SetCombineFriction) should never go below
/// zero.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L103">Jolt/Physics/Body/BodyCreationSettings.h:103</see>
/// <br/>
/// <c>float mFriction = 0.2f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetFriction")]
public static partial float BodyCreationSettings_GetFriction(BodyCreationSettings self);
/// <summary>
/// <para>
/// Friction of the body (dimensionless number, usually between 0 and 1, 0 = no friction, 1 = friction
/// force equals force that presses the two bodies together). Note that bodies can have negative
/// friction but the combined friction (see PhysicsSystem::SetCombineFriction) should never go below
/// zero.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L103">Jolt/Physics/Body/BodyCreationSettings.h:103</see>
/// <br/>
/// <c>float mFriction = 0.2f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetFriction")]
public static partial void BodyCreationSettings_SetFriction(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Restitution of body (dimensionless number, usually between 0 and 1, 0 = completely inelastic
/// collision response, 1 = completely elastic collision response). Note that bodies can have negative
/// restitution but the combined restitution (see PhysicsSystem::SetCombineRestitution) should never go
/// below zero.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L104">Jolt/Physics/Body/BodyCreationSettings.h:104</see>
/// <br/>
/// <c>float mRestitution = 0.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRestitution")]
public static partial float BodyCreationSettings_GetRestitution(BodyCreationSettings self);
/// <summary>
/// <para>
/// Restitution of body (dimensionless number, usually between 0 and 1, 0 = completely inelastic
/// collision response, 1 = completely elastic collision response). Note that bodies can have negative
/// restitution but the combined restitution (see PhysicsSystem::SetCombineRestitution) should never go
/// below zero.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L104">Jolt/Physics/Body/BodyCreationSettings.h:104</see>
/// <br/>
/// <c>float mRestitution = 0.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRestitution")]
public static partial void BodyCreationSettings_SetRestitution(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L105">Jolt/Physics/Body/BodyCreationSettings.h:105</see>
/// <br/>
/// <c>float mLinearDamping = 0.05f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearDamping")]
public static partial float BodyCreationSettings_GetLinearDamping(BodyCreationSettings self);
/// <summary>
/// <para>
/// Linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L105">Jolt/Physics/Body/BodyCreationSettings.h:105</see>
/// <br/>
/// <c>float mLinearDamping = 0.05f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearDamping")]
public static partial void BodyCreationSettings_SetLinearDamping(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L106">Jolt/Physics/Body/BodyCreationSettings.h:106</see>
/// <br/>
/// <c>float mAngularDamping = 0.05f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularDamping")]
public static partial float BodyCreationSettings_GetAngularDamping(BodyCreationSettings self);
/// <summary>
/// <para>
/// Angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L106">Jolt/Physics/Body/BodyCreationSettings.h:106</see>
/// <br/>
/// <c>float mAngularDamping = 0.05f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularDamping")]
public static partial void BodyCreationSettings_SetAngularDamping(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Maximum linear velocity that this body can reach (m/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L107">Jolt/Physics/Body/BodyCreationSettings.h:107</see>
/// <br/>
/// <c>float mMaxLinearVelocity = 500.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxLinearVelocity")]
public static partial float BodyCreationSettings_GetMaxLinearVelocity(BodyCreationSettings self);
/// <summary>
/// <para>
/// Maximum linear velocity that this body can reach (m/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L107">Jolt/Physics/Body/BodyCreationSettings.h:107</see>
/// <br/>
/// <c>float mMaxLinearVelocity = 500.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxLinearVelocity")]
public static partial void BodyCreationSettings_SetMaxLinearVelocity(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Maximum angular velocity that this body can reach (rad/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L108">Jolt/Physics/Body/BodyCreationSettings.h:108</see>
/// <br/>
/// <c>float mMaxAngularVelocity = 0.25f * JPH_PI * 60.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxAngularVelocity")]
public static partial float BodyCreationSettings_GetMaxAngularVelocity(BodyCreationSettings self);
/// <summary>
/// <para>
/// Maximum angular velocity that this body can reach (rad/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L108">Jolt/Physics/Body/BodyCreationSettings.h:108</see>
/// <br/>
/// <c>float mMaxAngularVelocity = 0.25f * JPH_PI * 60.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxAngularVelocity")]
public static partial void BodyCreationSettings_SetMaxAngularVelocity(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Value to multiply gravity with for this body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L109">Jolt/Physics/Body/BodyCreationSettings.h:109</see>
/// <br/>
/// <c>float mGravityFactor = 1.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetGravityFactor")]
public static partial float BodyCreationSettings_GetGravityFactor(BodyCreationSettings self);
/// <summary>
/// <para>
/// Value to multiply gravity with for this body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L109">Jolt/Physics/Body/BodyCreationSettings.h:109</see>
/// <br/>
/// <c>float mGravityFactor = 1.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetGravityFactor")]
public static partial void BodyCreationSettings_SetGravityFactor(BodyCreationSettings self, float value);
/// <summary>
/// <para>
/// Used only when this body is dynamic and colliding. Override for the number of solver velocity
/// iterations to run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of
/// iterations to use is the max of all contacts and constraints in the island.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L110">Jolt/Physics/Body/BodyCreationSettings.h:110</see>
/// <br/>
/// <c>uint mNumVelocityStepsOverride = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumVelocityStepsOverride")]
public static partial uint BodyCreationSettings_GetNumVelocityStepsOverride(BodyCreationSettings self);
/// <summary>
/// <para>
/// Used only when this body is dynamic and colliding. Override for the number of solver velocity
/// iterations to run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of
/// iterations to use is the max of all contacts and constraints in the island.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L110">Jolt/Physics/Body/BodyCreationSettings.h:110</see>
/// <br/>
/// <c>uint mNumVelocityStepsOverride = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumVelocityStepsOverride")]
public static partial void BodyCreationSettings_SetNumVelocityStepsOverride(BodyCreationSettings self, uint value);
/// <summary>
/// <para>
/// Used only when this body is dynamic and colliding. Override for the number of solver position
/// iterations to run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of
/// iterations to use is the max of all contacts and constraints in the island.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L111">Jolt/Physics/Body/BodyCreationSettings.h:111</see>
/// <br/>
/// <c>uint mNumPositionStepsOverride = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumPositionStepsOverride")]
public static partial uint BodyCreationSettings_GetNumPositionStepsOverride(BodyCreationSettings self);
/// <summary>
/// <para>
/// Used only when this body is dynamic and colliding. Override for the number of solver position
/// iterations to run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of
/// iterations to use is the max of all contacts and constraints in the island.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L111">Jolt/Physics/Body/BodyCreationSettings.h:111</see>
/// <br/>
/// <c>uint mNumPositionStepsOverride = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumPositionStepsOverride")]
public static partial void BodyCreationSettings_SetNumPositionStepsOverride(BodyCreationSettings self, uint value);
/// <summary>
/// <para>
/// Determines how mMassPropertiesOverride will be used
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L114">Jolt/Physics/Body/BodyCreationSettings.h:114</see>
/// <br/>
/// <c>EOverrideMassProperties mOverrideMassProperties = EOverrideMassProperties::CalculateMassAndInertia</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Mass properties of the body (by default calculated by the shape)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetOverrideMassProperties")]
public static partial EOverrideMassProperties BodyCreationSettings_GetOverrideMassProperties(BodyCreationSettings self);
/// <summary>
/// <para>
/// Determines how mMassPropertiesOverride will be used
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L114">Jolt/Physics/Body/BodyCreationSettings.h:114</see>
/// <br/>
/// <c>EOverrideMassProperties mOverrideMassProperties = EOverrideMassProperties::CalculateMassAndInertia</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Mass properties of the body (by default calculated by the shape)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetOverrideMassProperties")]
public static partial void BodyCreationSettings_SetOverrideMassProperties(BodyCreationSettings self, EOverrideMassProperties value);
/// <summary>
/// <para>
/// When calculating the inertia (not when it is provided) the calculated inertia will be multiplied by
/// this value
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L115">Jolt/Physics/Body/BodyCreationSettings.h:115</see>
/// <br/>
/// <c>float mInertiaMultiplier = 1.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetInertiaMultiplier")]
public static partial float BodyCreationSettings_GetInertiaMultiplier(BodyCreationSettings self);
/// <summary>
/// <para>
/// When calculating the inertia (not when it is provided) the calculated inertia will be multiplied by
/// this value
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L115">Jolt/Physics/Body/BodyCreationSettings.h:115</see>
/// <br/>
/// <c>float mInertiaMultiplier = 1.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetInertiaMultiplier")]
public static partial void BodyCreationSettings_SetInertiaMultiplier(BodyCreationSettings self, float value);
}
}
}

View file

@ -0,0 +1,34 @@
// <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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyFilter.h#L123">Jolt/Physics/Body/BodyFilter.h:123</see>
/// <br/>
/// <c>virtual bool ShouldDraw(const Body&amp; inBody) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Filter function. Returns true if inBody should be rendered
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyDrawFilter_ShouldDraw")]
public static partial Brutal.Bool8 BodyDrawFilter_ShouldDraw(BodyDrawFilter self, Body body);
}
}
}

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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyFilter.h#L22">Jolt/Physics/Body/BodyFilter.h:22</see>
/// <br/>
/// <c>virtual bool ShouldCollide(const BodyID &amp;inBodyID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Filter function. Returns true if we should collide with inBodyID
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyFilter_ShouldCollide")]
public static partial Brutal.Bool8 BodyFilter_ShouldCollide(BodyFilter self, uint bodyID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyFilter.h#L28">Jolt/Physics/Body/BodyFilter.h:28</see>
/// <br/>
/// <c>virtual bool ShouldCollideLocked(const Body &amp;inBody) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Filter function. Returns true if we should collide with inBody (this is called after the body is
/// locked and makes it possible to filter based on body members)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyFilter_ShouldCollideLocked")]
public static partial Brutal.Bool8 BodyFilter_ShouldCollideLocked(BodyFilter self, Body body);
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,33 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyLockInterface.h#L50">Jolt/Physics/Body/BodyLockInterface.h:50</see>
/// <br/>
/// <c>inline Body * TryGetBody(const BodyID &amp;inBodyID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Convert body ID to body
/// </para>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyLockInterface_TryGetBody")]
public static partial Body BodyLockInterface_TryGetBody(BodyLockInterface self, uint bodyID);
}
}
}

View file

@ -0,0 +1,17 @@
// <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 = "BodyLockInterfaceLocking_AsBodyLockInterface")]
public static partial BodyLockInterface BodyLockInterfaceLocking_AsBodyLockInterface(BodyLockInterfaceLocking self);
}
}
}

View file

@ -0,0 +1,17 @@
// <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 = "BodyLockInterfaceNoLock_AsBodyLockInterface")]
public static partial BodyLockInterface BodyLockInterfaceNoLock_AsBodyLockInterface(BodyLockInterfaceNoLock self);
}
}
}

View file

@ -0,0 +1,440 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L55">Jolt/Physics/Body/BodyManager.h:55</see>
/// <br/>
/// <c>void Init(uint inMaxBodies, uint inNumBodyMutexes, const BroadPhaseLayerInterface &amp;inLayerInterface)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Initialize the manager
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_Init")]
public static partial void BodyManager_Init(BodyManager self, uint maxBodies, uint numBodyMutexes, BroadPhaseLayerInterface layerInterface);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L58">Jolt/Physics/Body/BodyManager.h:58</see>
/// <br/>
/// <c>uint GetNumBodies() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Gets the current amount of bodies that are in the body manager
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumBodies")]
public static partial uint BodyManager_GetNumBodies(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L61">Jolt/Physics/Body/BodyManager.h:61</see>
/// <br/>
/// <c>uint GetMaxBodies() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Gets the max bodies that we can support
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetMaxBodies")]
public static partial uint BodyManager_GetMaxBodies(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L85">Jolt/Physics/Body/BodyManager.h:85</see>
/// <br/>
/// <c>Body * AllocateBody(const BodyCreationSettings &amp;inBodyCreationSettings) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Create a body using creation settings. The returned body will not be part of the body manager yet.
/// </para>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_AllocateBody")]
public static partial Body BodyManager_AllocateBody(BodyManager self, BodyCreationSettings bodyCreationSettings);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L88">Jolt/Physics/Body/BodyManager.h:88</see>
/// <br/>
/// <c>Body * AllocateSoftBody(const SoftBodyCreationSettings &amp;inSoftBodyCreationSettings) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Create a soft body using creation settings. The returned body will not be part of the body manager
/// yet.
/// </para>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_AllocateSoftBody")]
public static partial Body BodyManager_AllocateSoftBody(BodyManager self, SoftBodyCreationSettings softBodyCreationSettings);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L91">Jolt/Physics/Body/BodyManager.h:91</see>
/// <br/>
/// <c>void FreeBody(Body *inBody) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Free a body that has not been added to the body manager yet (if it has, use DestroyBodies).
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_FreeBody")]
public static partial void BodyManager_FreeBody(BodyManager self, Body body);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L94">Jolt/Physics/Body/BodyManager.h:94</see>
/// <br/>
/// <c>bool AddBody(Body *ioBody)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Add a body to the body manager, assigning it the next available ID. Returns false if no more IDs are
/// available.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_AddBody")]
public static partial Brutal.Bool8 BodyManager_AddBody(BodyManager self, Body body);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L97">Jolt/Physics/Body/BodyManager.h:97</see>
/// <br/>
/// <c>bool AddBodyWithCustomID(Body *ioBody, const BodyID &amp;inBodyID)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Add a body to the body manager, assigning it a custom ID. Returns false if the ID is not valid.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_AddBodyWithCustomID")]
public static partial Brutal.Bool8 BodyManager_AddBodyWithCustomID(BodyManager self, Body body, uint bodyID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L103">Jolt/Physics/Body/BodyManager.h:103</see>
/// <br/>
/// <c>void DestroyBodies(const BodyID *inBodyIDs, int inNumber)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Remove a set of bodies from the body manager and frees them.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_DestroyBodies")]
public static partial void BodyManager_DestroyBodies(BodyManager self, uint* bodyIDs, int number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L107">Jolt/Physics/Body/BodyManager.h:107</see>
/// <br/>
/// <c>void ActivateBodies(const BodyID *inBodyIDs, int inNumber)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Activate a list of bodies.
/// This function should only be called when an exclusive lock for the bodies are held.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_ActivateBodies")]
public static partial void BodyManager_ActivateBodies(BodyManager self, uint* bodyIDs, int number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L111">Jolt/Physics/Body/BodyManager.h:111</see>
/// <br/>
/// <c>void DeactivateBodies(const BodyID *inBodyIDs, int inNumber)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Deactivate a list of bodies.
/// This function should only be called when an exclusive lock for the bodies are held.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_DeactivateBodies")]
public static partial void BodyManager_DeactivateBodies(BodyManager self, uint* bodyIDs, int number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L114">Jolt/Physics/Body/BodyManager.h:114</see>
/// <br/>
/// <c>void SetMotionQuality(Body &amp;ioBody, EMotionQuality inMotionQuality)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Update the motion quality for a body
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_SetMotionQuality")]
public static partial void BodyManager_SetMotionQuality(BodyManager self, Body body, EMotionQuality motionQuality);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L123">Jolt/Physics/Body/BodyManager.h:123</see>
/// <br/>
/// <c>uint32 GetNumActiveBodies(EBodyType inType) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the number of active bodies.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumActiveBodies")]
public static partial uint BodyManager_GetNumActiveBodies(BodyManager self, EBodyType type);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L126">Jolt/Physics/Body/BodyManager.h:126</see>
/// <br/>
/// <c>uint32 GetNumActiveCCDBodies() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the number of active bodies that are using continuous collision detection
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumActiveCCDBodies")]
public static partial uint BodyManager_GetNumActiveCCDBodies(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L129">Jolt/Physics/Body/BodyManager.h:129</see>
/// <br/>
/// <c>void SetBodyActivationListener(BodyActivationListener *inListener)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Listener that is notified whenever a body is activated/deactivated
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_SetBodyActivationListener")]
public static partial void BodyManager_SetBodyActivationListener(BodyManager self, BodyActivationListener listener);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L130">Jolt/Physics/Body/BodyManager.h:130</see>
/// <br/>
/// <c>BodyActivationListener * GetBodyActivationListener() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyActivationListener")]
public static partial BodyActivationListener BodyManager_GetBodyActivationListener(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L133">Jolt/Physics/Body/BodyManager.h:133</see>
/// <br/>
/// <c>static inline bool sIsValidBodyPointer(const Body *inBody)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if this is a valid body pointer. When a body is freed the memory that the pointer occupies is
/// reused to store a freelist.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_sIsValidBodyPointer")]
public static partial Brutal.Bool8 BodyManager_sIsValidBodyPointer(Body body);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L145">Jolt/Physics/Body/BodyManager.h:145</see>
/// <br/>
/// <c>const Body &amp; GetBody(const BodyID &amp;inID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access a body (not protected by lock)
/// </para>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBody")]
public static partial Body BodyManager_GetBody(BodyManager self, uint iD);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L151">Jolt/Physics/Body/BodyManager.h:151</see>
/// <br/>
/// <c>const Body * TryGetBody(const BodyID &amp;inID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access a body, will return a nullptr if the body ID is no longer valid (not protected by lock)
/// </para>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_TryGetBody")]
public static partial Body BodyManager_TryGetBody(BodyManager self, uint iD);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L195">Jolt/Physics/Body/BodyManager.h:195</see>
/// <br/>
/// <c>void LockAllBodies() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Lock all bodies. This should only be done during PhysicsSystem::Update().
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_LockAllBodies")]
public static partial void BodyManager_LockAllBodies(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L198">Jolt/Physics/Body/BodyManager.h:198</see>
/// <br/>
/// <c>void UnlockAllBodies() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Unlock all bodies. This should only be done during PhysicsSystem::Update().
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_UnlockAllBodies")]
public static partial void BodyManager_UnlockAllBodies(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L201">Jolt/Physics/Body/BodyManager.h:201</see>
/// <br/>
/// <c>inline void SetBodyObjectLayerInternal(Body &amp;ioBody, ObjectLayer inLayer) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Function to update body's layer (should only be called by the BodyInterface since it also requires
/// updating the broadphase)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_SetBodyObjectLayerInternal")]
public static partial void BodyManager_SetBodyObjectLayerInternal(BodyManager self, Body body, ushort layer);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L204">Jolt/Physics/Body/BodyManager.h:204</see>
/// <br/>
/// <c>void InvalidateContactCacheForBody(Body &amp;ioBody)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the Body::EFlags::InvalidateContactCache flag for the specified body. This means that the
/// collision cache is invalid for any body pair involving that body until the next physics step.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_InvalidateContactCacheForBody")]
public static partial void BodyManager_InvalidateContactCacheForBody(BodyManager self, Body body);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L207">Jolt/Physics/Body/BodyManager.h:207</see>
/// <br/>
/// <c>void ValidateContactCacheForAllBodies()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset the Body::EFlags::InvalidateContactCache flag for all bodies. All contact pairs in the contact
/// cache will now by valid again.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_ValidateContactCacheForAllBodies")]
public static partial void BodyManager_ValidateContactCacheForAllBodies(BodyManager self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L216">Jolt/Physics/Body/BodyManager.h:216</see>
/// <br/>
/// <c>void SaveBodyState(const Body &amp;inBody, StateRecorder &amp;inStream) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Save the state of a single body for replay
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_SaveBodyState")]
public static partial void BodyManager_SaveBodyState(BodyManager self, Body body, StateRecorder stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L219">Jolt/Physics/Body/BodyManager.h:219</see>
/// <br/>
/// <c>void RestoreBodyState(Body &amp;inBody, StateRecorder &amp;inStream)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Save the state of a single body for replay
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_RestoreBodyState")]
public static partial void BodyManager_RestoreBodyState(BodyManager self, Body body, StateRecorder stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyManager.h#L272">Jolt/Physics/Body/BodyManager.h:272</see>
/// <br/>
/// <c>void Draw(const DrawSettings &amp;inSettings, const PhysicsSettings &amp;inPhysicsSettings, DebugRenderer *inRenderer, const BodyDrawFilter *inBodyFilter = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Draw the state of the bodies (debugging purposes)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BodyManager_Draw")]
public static partial void BodyManager_Draw(BodyManager self, ref BodyManager.DrawSettings settings, ref PhysicsSettings physicsSettings, DebugRenderer renderer, BodyDrawFilter bodyFilter);
}
}
}

View file

@ -0,0 +1,206 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L39">Jolt/Physics/Collision/Shape/BoxShape.h:39</see>
/// <br/>
/// <c>BoxShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_Create")]
public static partial BoxShape BoxShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L44">Jolt/Physics/Collision/Shape/BoxShape.h:44</see>
/// <br/>
/// <c>explicit BoxShape(Vec3Arg inHalfExtent, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Create a box with half edge length inHalfExtent and convex radius inConvexRadius.
/// (internally the convex radius will be subtracted from the half extent so the total box will not grow with the convex radius).
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_Create_2")]
public static partial BoxShape BoxShape_Create_2(float3 halfExtent, float convexRadius, PhysicsMaterial material);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L47">Jolt/Physics/Collision/Shape/BoxShape.h:47</see>
/// <br/>
/// <c>Vec3 GetHalfExtent() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get half extent of box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetHalfExtent")]
public static partial float3 BoxShape_GetHalfExtent(BoxShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L53">Jolt/Physics/Collision/Shape/BoxShape.h:53</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetInnerRadius")]
public static partial float BoxShape_GetInnerRadius(BoxShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L59">Jolt/Physics/Collision/Shape/BoxShape.h:59</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSurfaceNormal
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetSurfaceNormal")]
public static partial float3 BoxShape_GetSurfaceNormal(BoxShape self, uint subShapeID, float3 localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L69">Jolt/Physics/Collision/Shape/BoxShape.h:69</see>
/// <br/>
/// <c>virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::Draw
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_Draw")]
public static partial void BoxShape_Draw(BoxShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L80">Jolt/Physics/Collision/Shape/BoxShape.h:80</see>
/// <br/>
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &amp;inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: Shape::CollideSoftBodyVertices
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_CollideSoftBodyVertices")]
public static partial void BoxShape_CollideSoftBodyVertices(BoxShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L83">Jolt/Physics/Collision/Shape/BoxShape.h:83</see>
/// <br/>
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &amp;ioContext, const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetTrianglesStart
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetTrianglesStart")]
public static partial void BoxShape_GetTrianglesStart(BoxShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L89">Jolt/Physics/Collision/Shape/BoxShape.h:89</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_SaveBinaryState")]
public static partial void BoxShape_SaveBinaryState(BoxShape self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L95">Jolt/Physics/Collision/Shape/BoxShape.h:95</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetVolume")]
public static partial float BoxShape_GetVolume(BoxShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L98">Jolt/Physics/Collision/Shape/BoxShape.h:98</see>
/// <br/>
/// <c>float GetConvexRadius() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the convex radius of this box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_GetConvexRadius")]
public static partial float BoxShape_GetConvexRadius(BoxShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L101">Jolt/Physics/Collision/Shape/BoxShape.h:101</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShape_sRegister")]
public static partial void BoxShape_sRegister();
[LibraryImport("jolt", EntryPoint = "BoxShape_AddRef")]
public static partial void BoxShape_AddRef(BoxShape self);
[LibraryImport("jolt", EntryPoint = "BoxShape_Release")]
public static partial void BoxShape_Release(BoxShape self);
[LibraryImport("jolt", EntryPoint = "BoxShape_GetRefCount")]
public static partial uint BoxShape_GetRefCount(BoxShape self);
[LibraryImport("jolt", EntryPoint = "BoxShape_AsConvexShape")]
public static partial ConvexShape BoxShape_AsConvexShape(BoxShape self);
[LibraryImport("jolt", EntryPoint = "BoxShape_AsShape")]
public static partial Shape BoxShape_AsShape(BoxShape self);
}
}
}

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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L19">Jolt/Physics/Collision/Shape/BoxShape.h:19</see>
/// <br/>
/// <c>BoxShapeSettings() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Default constructor for deserialization
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Create")]
public static partial BoxShapeSettings BoxShapeSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L23">Jolt/Physics/Collision/Shape/BoxShape.h:23</see>
/// <br/>
/// <c>explicit BoxShapeSettings(Vec3Arg inHalfExtent, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Create a box with half edge length inHalfExtent and convex radius inConvexRadius.
/// (internally the convex radius will be subtracted from the half extent so the total box will not grow with the convex radius).
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Create_2")]
public static partial BoxShapeSettings BoxShapeSettings_Create_2(float3 halfExtent, float convexRadius, PhysicsMaterial material);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L15">Jolt/Physics/Collision/Shape/BoxShape.h:15</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetRTTI")]
public static partial RTTI BoxShapeSettings_GetRTTI(BoxShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L15">Jolt/Physics/Collision/Shape/BoxShape.h:15</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_CastTo")]
public static partial void* BoxShapeSettings_CastTo(BoxShapeSettings self, RTTI rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L26">Jolt/Physics/Collision/Shape/BoxShape.h:26</see>
/// <br/>
/// <c>virtual ShapeResult Create() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: ShapeSettings
/// </para>
/// <para>
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_CreateShape")]
public static partial Shape BoxShapeSettings_CreateShape(BoxShapeSettings self);
/// <summary>
/// <para>
/// Half the size of the box (including convex radius)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L28">Jolt/Physics/Collision/Shape/BoxShape.h:28</see>
/// <br/>
/// <c>Vec3 mHalfExtent = Vec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetHalfExtent")]
public static partial float3 BoxShapeSettings_GetHalfExtent(BoxShapeSettings self);
/// <summary>
/// <para>
/// Half the size of the box (including convex radius)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L28">Jolt/Physics/Collision/Shape/BoxShape.h:28</see>
/// <br/>
/// <c>Vec3 mHalfExtent = Vec3::sZero()</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_SetHalfExtent")]
public static partial void BoxShapeSettings_SetHalfExtent(BoxShapeSettings self, float3 value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L29">Jolt/Physics/Collision/Shape/BoxShape.h:29</see>
/// <br/>
/// <c>float mConvexRadius = 0.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetConvexRadius")]
public static partial float BoxShapeSettings_GetConvexRadius(BoxShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L29">Jolt/Physics/Collision/Shape/BoxShape.h:29</see>
/// <br/>
/// <c>float mConvexRadius = 0.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_SetConvexRadius")]
public static partial void BoxShapeSettings_SetConvexRadius(BoxShapeSettings self, float value);
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_AddRef")]
public static partial void BoxShapeSettings_AddRef(BoxShapeSettings self);
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Release")]
public static partial void BoxShapeSettings_Release(BoxShapeSettings self);
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetRefCount")]
public static partial uint BoxShapeSettings_GetRefCount(BoxShapeSettings self);
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_AsConvexShapeSettings")]
public static partial ConvexShapeSettings BoxShapeSettings_AsConvexShapeSettings(BoxShapeSettings self);
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_AsShapeSettings")]
public static partial ShapeSettings BoxShapeSettings_AsShapeSettings(BoxShapeSettings self);
}
}
}

View file

@ -0,0 +1,144 @@
// <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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L32">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:32</see>
/// <br/>
/// <c>virtual void Init(BodyManager *inBodyManager, const BroadPhaseLayerInterface &amp;inLayerInterface)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Initialize the broadphase.
/// @param inBodyManager The body manager singleton
/// @param inLayerInterface Interface that maps object layers to broadphase layers.
/// Note that the broadphase takes a pointer to the data inside inObjectToBroadPhaseLayer so this object should remain static.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_Init")]
public static partial void BroadPhase_Init(BroadPhase self, BodyManager bodyManager, BroadPhaseLayerInterface layerInterface);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L35">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:35</see>
/// <br/>
/// <c>virtual void Optimize()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Should be called after many objects have been inserted to make the broadphase more efficient,
/// usually done on startup only
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_Optimize")]
public static partial void BroadPhase_Optimize(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L38">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:38</see>
/// <br/>
/// <c>virtual void FrameSync()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called just before updating the broadphase when none of the body mutexes are locked
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_FrameSync")]
public static partial void BroadPhase_FrameSync(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L41">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:41</see>
/// <br/>
/// <c>virtual void LockModifications()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called before UpdatePrepare to prevent modifications from being made to the tree
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_LockModifications")]
public static partial void BroadPhase_LockModifications(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L54">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:54</see>
/// <br/>
/// <c>virtual void UnlockModifications()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called after UpdateFinalize to allow modifications to the broadphase
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_UnlockModifications")]
public static partial void BroadPhase_UnlockModifications(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L75">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:75</see>
/// <br/>
/// <c>virtual void RemoveBodies(BodyID *ioBodies, int inNumber) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Remove inNumber bodies in ioBodies from the broadphase.
/// ioBodies may be shuffled around by this function.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_RemoveBodies")]
public static partial void BroadPhase_RemoveBodies(BroadPhase self, uint* bodies, int number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L79">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:79</see>
/// <br/>
/// <c>virtual void NotifyBodiesAABBChanged(BodyID *ioBodies, int inNumber, bool inTakeLock = true) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Call whenever the aabb of a body changes (can change order of ioBodies array)
/// inTakeLock should be false if we're between LockModifications/UnlockModifications, in which case care needs to be taken to not call this between UpdatePrepare/UpdateFinalize
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesAABBChanged")]
public static partial void BroadPhase_NotifyBodiesAABBChanged(BroadPhase self, uint* bodies, int number, Brutal.Bool8 takeLock);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L82">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:82</see>
/// <br/>
/// <c>virtual void NotifyBodiesLayerChanged(BodyID *ioBodies, int inNumber) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Call whenever the layer (and optionally the aabb as well) of a body changes (can change order of
/// ioBodies array)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesLayerChanged")]
public static partial void BroadPhase_NotifyBodiesLayerChanged(BroadPhase self, uint* bodies, int number);
[LibraryImport("jolt", EntryPoint = "BroadPhase_AsBroadPhaseQuery")]
public static partial BroadPhaseQuery BroadPhase_AsBroadPhaseQuery(BroadPhase self);
}
}
}

View file

@ -0,0 +1,53 @@
// <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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h#L20">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:20</see>
/// <br/>
/// <c>virtual void RemoveBodies(BodyID *ioBodies, int inNumber) override</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BroadPhaseBruteForce_RemoveBodies")]
public static partial void BroadPhaseBruteForce_RemoveBodies(BroadPhaseBruteForce self, uint* bodies, int number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h#L21">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:21</see>
/// <br/>
/// <c>virtual void NotifyBodiesAABBChanged(BodyID *ioBodies, int inNumber, bool inTakeLock) override</c>
/// </para>
/// </summary>
[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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h#L22">Jolt/Physics/Collision/BroadPhase/BroadPhaseBruteForce.h:22</see>
/// <br/>
/// <c>virtual void NotifyBodiesLayerChanged(BodyID *ioBodies, int inNumber) override</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BroadPhaseBruteForce_NotifyBodiesLayerChanged")]
public static partial void BroadPhaseBruteForce_NotifyBodiesLayerChanged(BroadPhaseBruteForce self, uint* bodies, int number);
[LibraryImport("jolt", EntryPoint = "BroadPhaseBruteForce_AsBroadPhase")]
public static partial BroadPhase BroadPhaseBruteForce_AsBroadPhase(BroadPhaseBruteForce self);
[LibraryImport("jolt", EntryPoint = "BroadPhaseBruteForce_AsBroadPhaseQuery")]
public static partial BroadPhaseQuery BroadPhaseBruteForce_AsBroadPhaseQuery(BroadPhaseBruteForce self);
}
}
}

View file

@ -0,0 +1,102 @@
// <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 = "BroadPhaseCastResult_Create")]
public static partial BroadPhaseCastResult BroadPhaseCastResult_Create();
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_Destroy")]
public static partial void BroadPhaseCastResult_Destroy(BroadPhaseCastResult self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CastResult.h#L19">Jolt/Physics/Collision/CastResult.h:19</see>
/// <br/>
/// <c>inline float GetEarlyOutFraction() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'.
/// For rays/cast shapes we can just use the collision fraction.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_GetEarlyOutFraction")]
public static partial float BroadPhaseCastResult_GetEarlyOutFraction(BroadPhaseCastResult self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CastResult.h#L22">Jolt/Physics/Collision/CastResult.h:22</see>
/// <br/>
/// <c>inline void Reset()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset this result so it can be reused for a new cast.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_Reset")]
public static partial void BroadPhaseCastResult_Reset(BroadPhaseCastResult self);
/// <summary>
/// <para>
/// Body that was hit
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CastResult.h#L24">Jolt/Physics/Collision/CastResult.h:24</see>
/// <br/>
/// <c>BodyID mBodyID</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_GetBodyID")]
public static partial uint BroadPhaseCastResult_GetBodyID(BroadPhaseCastResult self);
/// <summary>
/// <para>
/// Body that was hit
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CastResult.h#L24">Jolt/Physics/Collision/CastResult.h:24</see>
/// <br/>
/// <c>BodyID mBodyID</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_SetBodyID")]
public static partial void BroadPhaseCastResult_SetBodyID(BroadPhaseCastResult self, uint value);
/// <summary>
/// <para>
/// Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CastResult.h#L25">Jolt/Physics/Collision/CastResult.h:25</see>
/// <br/>
/// <c>float mFraction = 1.0f + FLT_EPSILON</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_GetFraction")]
public static partial float BroadPhaseCastResult_GetFraction(BroadPhaseCastResult self);
/// <summary>
/// <para>
/// Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CastResult.h#L25">Jolt/Physics/Collision/CastResult.h:25</see>
/// <br/>
/// <c>float mFraction = 1.0f + FLT_EPSILON</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_SetFraction")]
public static partial void BroadPhaseCastResult_SetFraction(BroadPhaseCastResult self, float value);
}
}
}

View file

@ -0,0 +1,35 @@
// <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 = "BroadPhaseLayerFilter_Create")]
public static partial BroadPhaseLayerFilter BroadPhaseLayerFilter_Create();
[LibraryImport("jolt", EntryPoint = "BroadPhaseLayerFilter_Destroy")]
public static partial void BroadPhaseLayerFilter_Destroy(BroadPhaseLayerFilter self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h#L100">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h:100</see>
/// <br/>
/// <c>virtual bool ShouldCollide(BroadPhaseLayer inLayer) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Function to filter out broadphase layers when doing collision query test (return true to allow
/// testing against objects with this layer)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhaseLayerFilter_ShouldCollide")]
public static partial Brutal.Bool8 BroadPhaseLayerFilter_ShouldCollide(BroadPhaseLayerFilter self, byte layer);
}
}
}

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