brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/RotationQuatConstraintPart.gen.cs
2026-10-15 14:12:02 +13:00

140 lines
8.2 KiB
C#

// <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 = "RotationQuatConstraintPart_Create")]
public static partial RotationQuatConstraintPart RotationQuatConstraintPart_Create();
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_Destroy")]
public static partial void RotationQuatConstraintPart_Destroy(RotationQuatConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L114">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:114</see>
/// <br/>
/// <c>static Quat sGetInvInitialOrientation(const Body &amp;inBody1, const Body &amp;inBody2)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Return inverse of initial rotation from body 1 to body 2 in body 1 space
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_sGetInvInitialOrientation")]
public static partial floatQuat RotationQuatConstraintPart_sGetInvInitialOrientation(Body body1, Body body2);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L129">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:129</see>
/// <br/>
/// <c>inline void CalculateConstraintProperties(const Body &amp;inBody1, Mat44Arg inRotation1, const Body &amp;inBody2, Mat44Arg inRotation2, QuatArg inInvInitialOrientation)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate properties used during the functions below
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_CalculateConstraintProperties")]
public static partial void RotationQuatConstraintPart_CalculateConstraintProperties(RotationQuatConstraintPart self, Body body1, float4x4 rotation1, Body body2, float4x4 rotation2, floatQuat invInitialOrientation);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L150">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:150</see>
/// <br/>
/// <c>inline void Deactivate()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Deactivate this constraint
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_Deactivate")]
public static partial void RotationQuatConstraintPart_Deactivate(RotationQuatConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L158">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:158</see>
/// <br/>
/// <c>inline bool IsActive() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if constraint is active
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_IsActive")]
public static partial Brutal.Bool8 RotationQuatConstraintPart_IsActive(RotationQuatConstraintPart self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L164">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:164</see>
/// <br/>
/// <c>inline void WarmStart(Body &amp;ioBody1, Body &amp;ioBody2, float inWarmStartImpulseRatio)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called from the WarmStartVelocityConstraint call to apply the previous frame's impulses
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_WarmStart")]
public static partial void RotationQuatConstraintPart_WarmStart(RotationQuatConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L171">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:171</see>
/// <br/>
/// <c>inline bool SolveVelocityConstraint(Body &amp;ioBody1, Body &amp;ioBody2)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint
/// equation.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 RotationQuatConstraintPart_SolveVelocityConstraint(RotationQuatConstraintPart self, Body body1, Body body2);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L182">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:182</see>
/// <br/>
/// <c>inline bool SolvePositionConstraint(Body &amp;ioBody1, Body &amp;ioBody2, QuatArg inInvInitialOrientation, float inBaumgarte) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Iteratively update the position constraint. Makes sure C(...) = 0.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_SolvePositionConstraint")]
public static partial Brutal.Bool8 RotationQuatConstraintPart_SolvePositionConstraint(RotationQuatConstraintPart self, Body body1, Body body2, floatQuat invInitialOrientation, float baumgarte);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h#L221">Jolt/Physics/Constraints/ConstraintPart/RotationQuatConstraintPart.h:221</see>
/// <br/>
/// <c>Vec3 GetTotalLambda() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Return lagrange multiplier
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RotationQuatConstraintPart_GetTotalLambda")]
public static partial float3 RotationQuatConstraintPart_GetTotalLambda(RotationQuatConstraintPart self);
}
}
}