//
// 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 = "RackAndPinionConstraintPart_Create")]
public static partial RackAndPinionConstraintPart RackAndPinionConstraintPart_Create();
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_Destroy")]
public static partial void RackAndPinionConstraintPart_Destroy(RackAndPinionConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:69
///
/// inline void CalculateConstraintProperties(const Body &inBody1, Vec3Arg inWorldSpaceHingeAxis, const Body &inBody2, Vec3Arg inWorldSpaceSliderAxis, float inRatio)
///
///
///
///
/// 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 inWorldSpaceHingeAxis The axis around which body 1 rotates
/// @param inWorldSpaceSliderAxis The axis along which body 2 slides
/// @param inRatio The ratio between rotation and translation
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_CalculateConstraintProperties")]
public static partial void RackAndPinionConstraintPart_CalculateConstraintProperties(RackAndPinionConstraintPart self, Body body1, float3 worldSpaceHingeAxis, Body body2, float3 worldSpaceSliderAxis, float ratio);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:90
///
/// inline void Deactivate()
///
///
///
///
/// Deactivate this constraint
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_Deactivate")]
public static partial void RackAndPinionConstraintPart_Deactivate(RackAndPinionConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:97
///
/// inline bool IsActive() const
///
///
///
///
/// Check if constraint is active
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_IsActive")]
public static partial Brutal.Bool8 RackAndPinionConstraintPart_IsActive(RackAndPinionConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:106
///
/// 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 = "RackAndPinionConstraintPart_WarmStart")]
public static partial void RackAndPinionConstraintPart_WarmStart(RackAndPinionConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:118
///
/// inline bool SolveVelocityConstraint(Body &ioBody1, Vec3Arg inWorldSpaceHingeAxis, Body &ioBody2, Vec3Arg inWorldSpaceSliderAxis, float inRatio)
///
///
///
///
/// 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 inWorldSpaceHingeAxis The axis around which body 1 rotates
/// @param inWorldSpaceSliderAxis The axis along which body 2 slides
/// @param inRatio The ratio between rotation and translation
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_SolveVelocityConstraint")]
public static partial Brutal.Bool8 RackAndPinionConstraintPart_SolveVelocityConstraint(RackAndPinionConstraintPart self, Body body1, float3 worldSpaceHingeAxis, Body body2, float3 worldSpaceSliderAxis, float ratio);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:130
///
/// float GetTotalLambda() const
///
///
///
///
/// Return lagrange multiplier
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_GetTotalLambda")]
public static partial float RackAndPinionConstraintPart_GetTotalLambda(RackAndPinionConstraintPart self);
///
///
/// C++:
/// Jolt/Physics/Constraints/ConstraintPart/RackAndPinionConstraintPart.h:140
///
/// inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, float inC, 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 inC Value of the constraint equation (C)
/// @param inBaumgarte Baumgarte constant (fraction of the error to correct)
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintPart_SolvePositionConstraint")]
public static partial Brutal.Bool8 RackAndPinionConstraintPart_SolvePositionConstraint(RackAndPinionConstraintPart self, Body body1, Body body2, float c, float baumgarte);
}
}
}