mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +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,138 @@
|
|||
// <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 = "PointConstraintPart_Create")]
|
||||
public static partial PointConstraintPart PointConstraintPart_Create();
|
||||
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_Destroy")]
|
||||
public static partial void PointConstraintPart_Destroy(PointConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L80">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:80</see>
|
||||
/// <br/>
|
||||
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, Mat44Arg inRotation1, Vec3Arg inR1, const Body &inBody2, Mat44Arg inRotation2, Vec3Arg inR2)</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 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
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[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);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L129">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:129</see>
|
||||
/// <br/>
|
||||
/// <c>inline void Deactivate()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Deactivate this constraint
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_Deactivate")]
|
||||
public static partial void PointConstraintPart_Deactivate(PointConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L136">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:136</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool IsActive() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if constraint is active
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_IsActive")]
|
||||
public static partial Brutal.Bool8 PointConstraintPart_IsActive(PointConstraintPart self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L145">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:145</see>
|
||||
/// <br/>
|
||||
/// <c>inline void WarmStart(Body &ioBody1, Body &ioBody2, 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 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 = "PointConstraintPart_WarmStart")]
|
||||
public static partial void PointConstraintPart_WarmStart(PointConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L154">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:154</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2)</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
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_SolveVelocityConstraint")]
|
||||
public static partial Brutal.Bool8 PointConstraintPart_SolveVelocityConstraint(PointConstraintPart self, Body body1, Body body2);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L168">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:168</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, 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 inBaumgarte Baumgarte constant (fraction of the error to correct)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_SolvePositionConstraint")]
|
||||
public static partial Brutal.Bool8 PointConstraintPart_SolvePositionConstraint(PointConstraintPart self, Body body1, Body body2, float baumgarte);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h#L213">Jolt/Physics/Constraints/ConstraintPart/PointConstraintPart.h:213</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetTotalLambda() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Return lagrange multiplier
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "PointConstraintPart_GetTotalLambda")]
|
||||
public static partial float3 PointConstraintPart_GetTotalLambda(PointConstraintPart self);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue