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