mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 05:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,151 @@
|
|||
// <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 = "IndependentAxisConstraintPart_Create")]
|
||||
public static partial IndependentAxisConstraintPart IndependentAxisConstraintPart_Create();
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_Destroy")]
|
||||
public static partial void IndependentAxisConstraintPart_Destroy(IndependentAxisConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L89">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:89</see>
|
||||
/// <br/>
|
||||
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, const Body &inBody2, Vec3Arg inR1, Vec3Arg inN1, Vec3Arg inR2, Vec3Arg inN2, float inRatio)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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 inR1 The position on which the constraint operates on body 1 relative to COM
|
||||
/// @param inN1 The world space normal in which the constraint operates for body 1
|
||||
/// @param inR2 The position on which the constraint operates on body 1 relative to COM
|
||||
/// @param inN2 The world space normal in which the constraint operates for body 2
|
||||
/// @param inRatio The ratio how forces are applied between bodies
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_CalculateConstraintProperties")]
|
||||
public static partial void IndependentAxisConstraintPart_CalculateConstraintProperties(IndependentAxisConstraintPart self, Body body1, Body body2, float3 r1, float3 n1, float3 r2, float3 n2, float ratio);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L123">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:123</see>
|
||||
/// <br/>
|
||||
/// <c>inline void Deactivate()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Deactivate this constraint
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_Deactivate")]
|
||||
public static partial void IndependentAxisConstraintPart_Deactivate(IndependentAxisConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L130">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:130</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool IsActive() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if constraint is active
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_IsActive")]
|
||||
public static partial Brutal.Bool8 IndependentAxisConstraintPart_IsActive(IndependentAxisConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L142">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:142</see>
|
||||
/// <br/>
|
||||
/// <c>inline void WarmStart(Body &ioBody1, Body &ioBody2, Vec3Arg inN1, Vec3Arg inN2, float inRatio, float inWarmStartImpulseRatio)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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 inN1 The world space normal in which the constraint operates for body 1
|
||||
/// @param inN2 The world space normal in which the constraint operates for body 2
|
||||
/// @param inRatio The ratio how forces are applied between bodies
|
||||
/// @param inWarmStartImpulseRatio Ratio of new step to old time step (dt_new / dt_old) for scaling the lagrange multiplier of the previous frame
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_WarmStart")]
|
||||
public static partial void IndependentAxisConstraintPart_WarmStart(IndependentAxisConstraintPart self, Body body1, Body body2, float3 n1, float3 n2, float ratio, float warmStartImpulseRatio);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L156">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:156</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2, Vec3Arg inN1, Vec3Arg inN2, float inRatio, float inMinLambda, float inMaxLambda)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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 inN1 The world space normal in which the constraint operates for body 1
|
||||
/// @param inN2 The world space normal in which the constraint operates for body 2
|
||||
/// @param inRatio The ratio how forces are applied between bodies
|
||||
/// @param inMinLambda Minimum angular impulse to apply (N m s)
|
||||
/// @param inMaxLambda Maximum angular impulse to apply (N m s)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_SolveVelocityConstraint")]
|
||||
public static partial Brutal.Bool8 IndependentAxisConstraintPart_SolveVelocityConstraint(IndependentAxisConstraintPart self, Body body1, Body body2, float3 n1, float3 n2, float ratio, float minLambda, float maxLambda);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L170">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:170</see>
|
||||
/// <br/>
|
||||
/// <c>float GetTotalLambda() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Return lagrange multiplier
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_GetTotalLambda")]
|
||||
public static partial float IndependentAxisConstraintPart_GetTotalLambda(IndependentAxisConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h#L183">Jolt/Physics/Constraints/ConstraintPart/IndependentAxisConstraintPart.h:183</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, Vec3Arg inN1, Vec3Arg inN2, float inRatio, float inC, float inBaumgarte) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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 inN1 The world space normal in which the constraint operates for body 1
|
||||
/// @param inN2 The world space normal in which the constraint operates for body 2
|
||||
/// @param inRatio The ratio how forces are applied between bodies
|
||||
/// @param inC Value of the constraint equation (C)
|
||||
/// @param inBaumgarte Baumgarte constant (fraction of the error to correct)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "IndependentAxisConstraintPart_SolvePositionConstraint")]
|
||||
public static partial Brutal.Bool8 IndependentAxisConstraintPart_SolvePositionConstraint(IndependentAxisConstraintPart self, Body body1, Body body2, float3 n1, float3 n2, float ratio, float c, float baumgarte);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue