//
// 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 = "PointConstraintPart_Create")]
public static partial PointConstraintPart PointConstraintPart_Create();
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_Destroy")]
public static partial void PointConstraintPart_Destroy(PointConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:80
///
/// inline void CalculateConstraintProperties(const Body &inBody1, Mat44Arg inRotation1, Vec3Arg inR1, const Body &inBody2, Mat44Arg inRotation2, Vec3Arg inR2)
///
///
///
///
/// 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 inRotation1 The 3x3 rotation matrix for body 1 (translation part is ignored)
/// @param inRotation2 The 3x3 rotation matrix for body 2 (translation part is ignored)
/// @param inR1 Local space vector from center of mass to constraint point for body 1
/// @param inR2 Local space vector from center of mass to constraint point for body 2
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_CalculateConstraintProperties")]
public static partial void PointConstraintPart_CalculateConstraintProperties(PointConstraintPart self, Body body1, float4x4 rotation1, float3 r1, Body body2, float4x4 rotation2, float3 r2);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:129
///
/// inline void Deactivate()
///
///
///
///
/// Deactivate this constraint
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_Deactivate")]
public static partial void PointConstraintPart_Deactivate(PointConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:136
///
/// inline bool IsActive() const
///
///
///
///
/// Check if constraint is active
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_IsActive")]
public static partial Brutal.Bool8 PointConstraintPart_IsActive(PointConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:145
///
/// inline void WarmStart(Body &ioBody1, Body &ioBody2, float inWarmStartImpulseRatio)
///
///
///
///
/// 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
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_WarmStart")]
public static partial void PointConstraintPart_WarmStart(PointConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:154
///
/// inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2)
///
///
///
///
/// 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
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 PointConstraintPart_SolveVelocityConstraint(PointConstraintPart self, Body body1, Body body2);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:168
///
/// inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, float inBaumgarte) const
///
///
///
///
/// 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 inBaumgarte Baumgarte constant (fraction of the error to correct)
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_SolvePositionConstraint")]
public static partial Brutal.Bool8 PointConstraintPart_SolvePositionConstraint(PointConstraintPart self, Body body1, Body body2, float baumgarte);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:213
///
/// Vec3 GetTotalLambda() const
///
///
///
///
/// Return lagrange multiplier
///
///
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_GetTotalLambda")]
public static partial float3 PointConstraintPart_GetTotalLambda(PointConstraintPart self);
}
}
}