mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
141 lines
8.5 KiB
C#
141 lines
8.5 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 = "GearConstraintPart_Create")]
|
|
public static partial GearConstraintPart GearConstraintPart_Create();
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_Destroy")]
|
|
public static partial void GearConstraintPart_Destroy(GearConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L69">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:69</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, Vec3Arg inWorldSpaceHingeAxis1, const Body &inBody2, Vec3Arg inWorldSpaceHingeAxis2, 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 inWorldSpaceHingeAxis1 The axis around which body 1 rotates
|
|
/// @param inWorldSpaceHingeAxis2 The axis around which body 2 rotates
|
|
/// @param inRatio The ratio between rotation and translation
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_CalculateConstraintProperties")]
|
|
public static partial void GearConstraintPart_CalculateConstraintProperties(GearConstraintPart self, Body body1, float3 worldSpaceHingeAxis1, Body body2, float3 worldSpaceHingeAxis2, float ratio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L89">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:89</see>
|
|
/// <br/>
|
|
/// <c>inline void Deactivate()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Deactivate this constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_Deactivate")]
|
|
public static partial void GearConstraintPart_Deactivate(GearConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L96">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:96</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsActive() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if constraint is active
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_IsActive")]
|
|
public static partial Brutal.Bool8 GearConstraintPart_IsActive(GearConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L105">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:105</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 = "GearConstraintPart_WarmStart")]
|
|
public static partial void GearConstraintPart_WarmStart(GearConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L117">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:117</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Vec3Arg inWorldSpaceHingeAxis1, Body &ioBody2, Vec3Arg inWorldSpaceHingeAxis2, float inRatio)</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 inWorldSpaceHingeAxis1 The axis around which body 1 rotates
|
|
/// @param inWorldSpaceHingeAxis2 The axis around which body 2 rotates
|
|
/// @param inRatio The ratio between rotation and translation
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 GearConstraintPart_SolveVelocityConstraint(GearConstraintPart self, Body body1, float3 worldSpaceHingeAxis1, Body body2, float3 worldSpaceHingeAxis2, float ratio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L129">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:129</see>
|
|
/// <br/>
|
|
/// <c>float GetTotalLambda() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Return lagrange multiplier
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_GetTotalLambda")]
|
|
public static partial float GearConstraintPart_GetTotalLambda(GearConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h#L139">Jolt/Physics/Constraints/ConstraintPart/GearConstraintPart.h:139</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, 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 inC Value of the constraint equation (C)
|
|
/// @param inBaumgarte Baumgarte constant (fraction of the error to correct)
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintPart_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 GearConstraintPart_SolvePositionConstraint(GearConstraintPart self, Body body1, Body body2, float c, float baumgarte);
|
|
}
|
|
}
|
|
}
|