mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
204 lines
14 KiB
C#
204 lines
14 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 = "AngleConstraintPart_Create")]
|
|
public static partial AngleConstraintPart AngleConstraintPart_Create();
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_Destroy")]
|
|
public static partial void AngleConstraintPart_Destroy(AngleConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L81">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:81</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, const Body &inBody2, Vec3Arg inWorldSpaceAxis, float inBias = 0.0f)</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 inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
|
|
/// Set the following terms to zero if you don't want to drive the constraint to zero with a spring:
|
|
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintProperties")]
|
|
public static partial void AngleConstraintPart_CalculateConstraintProperties(AngleConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float bias);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L104">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:104</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintPropertiesWithFrequencyAndDamping(float inDeltaTime, const Body &inBody1, const Body &inBody2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, float inFrequency, float inDamping)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Calculate properties used during the functions below
|
|
/// @param inDeltaTime Time step
|
|
/// @param inBody1 The first body that this constraint is attached to
|
|
/// @param inBody2 The second body that this constraint is attached to
|
|
/// @param inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
|
|
/// Set the following terms to zero if you don't want to drive the constraint to zero with a spring:
|
|
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
|
|
/// @param inC Value of the constraint equation (C)
|
|
/// @param inFrequency Oscillation frequency (Hz)
|
|
/// @param inDamping Damping factor (0 = no damping, 1 = critical damping)
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithFrequencyAndDamping")]
|
|
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithFrequencyAndDamping(AngleConstraintPart self, float deltaTime, Body body1, Body body2, float3 worldSpaceAxis, float bias, float c, float frequency, float damping);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L124">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:124</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintPropertiesWithStiffnessAndDamping(float inDeltaTime, const Body &inBody1, const Body &inBody2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, float inStiffness, float inDamping)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Calculate properties used during the functions below
|
|
/// @param inDeltaTime Time step
|
|
/// @param inBody1 The first body that this constraint is attached to
|
|
/// @param inBody2 The second body that this constraint is attached to
|
|
/// @param inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
|
|
/// Set the following terms to zero if you don't want to drive the constraint to zero with a spring:
|
|
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
|
|
/// @param inC Value of the constraint equation (C)
|
|
/// @param inStiffness Spring stiffness k.
|
|
/// @param inDamping Spring damping coefficient c.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithStiffnessAndDamping")]
|
|
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithStiffnessAndDamping(AngleConstraintPart self, float deltaTime, Body body1, Body body2, float3 worldSpaceAxis, float bias, float c, float stiffness, float damping);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L135">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:135</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintPropertiesWithSettings(float inDeltaTime, const Body &inBody1, const Body &inBody2, Vec3Arg inWorldSpaceAxis, float inBias, float inC, const SpringSettings &inSpringSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Selects one of the above functions based on the spring settings
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_CalculateConstraintPropertiesWithSettings")]
|
|
public static partial void AngleConstraintPart_CalculateConstraintPropertiesWithSettings(AngleConstraintPart self, float deltaTime, Body body1, Body body2, float3 worldSpaceAxis, float bias, float c, SpringSettings springSettings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L148">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:148</see>
|
|
/// <br/>
|
|
/// <c>inline void Deactivate()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Deactivate this constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_Deactivate")]
|
|
public static partial void AngleConstraintPart_Deactivate(AngleConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L155">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:155</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsActive() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if constraint is active
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_IsActive")]
|
|
public static partial Brutal.Bool8 AngleConstraintPart_IsActive(AngleConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L164">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:164</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 = "AngleConstraintPart_WarmStart")]
|
|
public static partial void AngleConstraintPart_WarmStart(AngleConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L176">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:176</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2, Vec3Arg inWorldSpaceAxis, 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 inWorldSpaceAxis The axis of rotation along which the constraint acts (normalized)
|
|
/// @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 = "AngleConstraintPart_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 AngleConstraintPart_SolveVelocityConstraint(AngleConstraintPart self, Body body1, Body body2, float3 worldSpaceAxis, float minLambda, float maxLambda);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L190">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:190</see>
|
|
/// <br/>
|
|
/// <c>float GetTotalLambda() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Return lagrange multiplier
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "AngleConstraintPart_GetTotalLambda")]
|
|
public static partial float AngleConstraintPart_GetTotalLambda(AngleConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h#L200">Jolt/Physics/Constraints/ConstraintPart/AngleConstraintPart.h:200</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 = "AngleConstraintPart_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 AngleConstraintPart_SolvePositionConstraint(AngleConstraintPart self, Body body1, Body body2, float c, float baumgarte);
|
|
}
|
|
}
|
|
}
|