mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
178 lines
11 KiB
C#
178 lines
11 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 = "RotationEulerConstraintPart_Create")]
|
|
public static partial RotationEulerConstraintPart RotationEulerConstraintPart_Create();
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_Destroy")]
|
|
public static partial void RotationEulerConstraintPart_Destroy(RotationEulerConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L63">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:63</see>
|
|
/// <br/>
|
|
/// <c>static Quat sGetInvInitialOrientation(const Body &inBody1, const Body &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 = "RotationEulerConstraintPart_sGetInvInitialOrientation")]
|
|
public static partial floatQuat RotationEulerConstraintPart_sGetInvInitialOrientation(Body body1, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L82">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:82</see>
|
|
/// <br/>
|
|
/// <c>static Quat sGetInvInitialOrientationXY(Vec3Arg inAxisX1, Vec3Arg inAxisY1, Vec3Arg inAxisX2, Vec3Arg inAxisY2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @brief Return inverse of initial rotation from body 1 to body 2 in body 1 space
|
|
/// @param inAxisX1 Reference axis X for body 1
|
|
/// @param inAxisY1 Reference axis Y for body 1
|
|
/// @param inAxisX2 Reference axis X for body 2
|
|
/// @param inAxisY2 Reference axis Y for body 2
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_sGetInvInitialOrientationXY")]
|
|
public static partial floatQuat RotationEulerConstraintPart_sGetInvInitialOrientationXY(float3 axisX1, float3 axisY1, float3 axisX2, float3 axisY2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L123">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:123</see>
|
|
/// <br/>
|
|
/// <c>static Quat sGetInvInitialOrientationXZ(Vec3Arg inAxisX1, Vec3Arg inAxisZ1, Vec3Arg inAxisX2, Vec3Arg inAxisZ2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @brief Return inverse of initial rotation from body 1 to body 2 in body 1 space
|
|
/// @param inAxisX1 Reference axis X for body 1
|
|
/// @param inAxisZ1 Reference axis Z for body 1
|
|
/// @param inAxisX2 Reference axis X for body 2
|
|
/// @param inAxisZ2 Reference axis Z for body 2
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_sGetInvInitialOrientationXZ")]
|
|
public static partial floatQuat RotationEulerConstraintPart_sGetInvInitialOrientationXZ(float3 axisX1, float3 axisZ1, float3 axisX2, float3 axisZ2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L139">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:139</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, Mat44Arg inRotation1, const Body &inBody2, Mat44Arg inRotation2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate properties used during the functions below
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_CalculateConstraintProperties")]
|
|
public static partial void RotationEulerConstraintPart_CalculateConstraintProperties(RotationEulerConstraintPart self, Body body1, float4x4 rotation1, Body body2, float4x4 rotation2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L164">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:164</see>
|
|
/// <br/>
|
|
/// <c>inline void Deactivate()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Deactivate this constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_Deactivate")]
|
|
public static partial void RotationEulerConstraintPart_Deactivate(RotationEulerConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L171">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:171</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsActive() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if constraint is active
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_IsActive")]
|
|
public static partial Brutal.Bool8 RotationEulerConstraintPart_IsActive(RotationEulerConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L177">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:177</see>
|
|
/// <br/>
|
|
/// <c>inline void WarmStart(Body &ioBody1, Body &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 = "RotationEulerConstraintPart_WarmStart")]
|
|
public static partial void RotationEulerConstraintPart_WarmStart(RotationEulerConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L184">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:184</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Body &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 = "RotationEulerConstraintPart_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 RotationEulerConstraintPart_SolveVelocityConstraint(RotationEulerConstraintPart self, Body body1, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h#L195">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:195</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolvePositionConstraint(Body &ioBody1, Body &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 = "RotationEulerConstraintPart_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 RotationEulerConstraintPart_SolvePositionConstraint(RotationEulerConstraintPart 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/RotationEulerConstraintPart.h#L259">Jolt/Physics/Constraints/ConstraintPart/RotationEulerConstraintPart.h:259</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetTotalLambda() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Return lagrange multiplier
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RotationEulerConstraintPart_GetTotalLambda")]
|
|
public static partial float3 RotationEulerConstraintPart_GetTotalLambda(RotationEulerConstraintPart self);
|
|
}
|
|
}
|
|
}
|