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
117
brutal.jolt/Brutal.Jolt/Generated/Classes/SpringPart.gen.cs
Normal file
117
brutal.jolt/Brutal.Jolt/Generated/Classes/SpringPart.gen.cs
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/SpringPart.h#L13">Jolt/Physics/Constraints/ConstraintPart/SpringPart.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class SpringPart</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class used in other constraint parts to calculate the required bias factor in the lagrange multiplier for
|
||||
/// creating springs
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct SpringPart : IDisposable
|
||||
{
|
||||
public static SpringPart Create() => Jolt.PInvoke.SpringPart_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/SpringPart.h#L71">Jolt/Physics/Constraints/ConstraintPart/SpringPart.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>inline void CalculateSpringPropertiesWithBias(float inBias)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Turn off the spring and set a bias only
|
||||
///
|
||||
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void CalculateSpringPropertiesWithBias(float bias) => Jolt.PInvoke.SpringPart_CalculateSpringPropertiesWithBias(this, bias);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/SpringPart.h#L86">Jolt/Physics/Constraints/ConstraintPart/SpringPart.h:86</see>
|
||||
/// <br/>
|
||||
/// <c>inline void CalculateSpringPropertiesWithFrequencyAndDamping(float inDeltaTime, float inInvEffectiveMass, float inBias, float inC, float inFrequency, float inDamping, float &outEffectiveMass)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Calculate spring properties based on frequency and damping ratio
|
||||
///
|
||||
/// @param inDeltaTime Time step
|
||||
/// @param inInvEffectiveMass Inverse effective mass K
|
||||
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
|
||||
/// @param inC Value of the constraint equation (C). Set to zero if you don't want to drive the constraint to zero with a spring.
|
||||
/// @param inFrequency Oscillation frequency (Hz). Set to zero if you don't want to drive the constraint to zero with a spring.
|
||||
/// @param inDamping Damping factor (0 = no damping, 1 = critical damping). Set to zero if you don't want to drive the constraint to zero with a spring.
|
||||
/// @param outEffectiveMass On return, this contains the new effective mass K^-1
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void CalculateSpringPropertiesWithFrequencyAndDamping(float deltaTime, float invEffectiveMass, float bias, float c, float frequency, float damping, out float effectiveMass) => Jolt.PInvoke.SpringPart_CalculateSpringPropertiesWithFrequencyAndDamping(this, deltaTime, invEffectiveMass, bias, c, frequency, damping, out effectiveMass);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/SpringPart.h#L116">Jolt/Physics/Constraints/ConstraintPart/SpringPart.h:116</see>
|
||||
/// <br/>
|
||||
/// <c>inline void CalculateSpringPropertiesWithStiffnessAndDamping(float inDeltaTime, float inInvEffectiveMass, float inBias, float inC, float inStiffness, float inDamping, float &outEffectiveMass)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Calculate spring properties with spring Stiffness (k) and damping (c), this is based on the spring equation: F = -k * x - c * v
|
||||
///
|
||||
/// @param inDeltaTime Time step
|
||||
/// @param inInvEffectiveMass Inverse effective mass K
|
||||
/// @param inBias Bias term (b) for the constraint impulse: lambda = J v + b
|
||||
/// @param inC Value of the constraint equation (C). Set to zero if you don't want to drive the constraint to zero with a spring.
|
||||
/// @param inStiffness Spring stiffness k. Set to zero if you don't want to drive the constraint to zero with a spring.
|
||||
/// @param inDamping Spring damping coefficient c. Set to zero if you don't want to drive the constraint to zero with a spring.
|
||||
/// @param outEffectiveMass On return, this contains the new effective mass K^-1
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void CalculateSpringPropertiesWithStiffnessAndDamping(float deltaTime, float invEffectiveMass, float bias, float c, float stiffness, float damping, out float effectiveMass) => Jolt.PInvoke.SpringPart_CalculateSpringPropertiesWithStiffnessAndDamping(this, deltaTime, invEffectiveMass, bias, c, stiffness, damping, out effectiveMass);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/SpringPart.h#L131">Jolt/Physics/Constraints/ConstraintPart/SpringPart.h:131</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool IsActive() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Returns if this spring is active
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsActive() => Jolt.PInvoke.SpringPart_IsActive(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/SpringPart.h#L137">Jolt/Physics/Constraints/ConstraintPart/SpringPart.h:137</see>
|
||||
/// <br/>
|
||||
/// <c>inline float GetBias(float inTotalLambda) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get total bias b, including supplied bias and bias for spring: lambda = J v + b
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetBias(float totalLambda) => Jolt.PInvoke.SpringPart_GetBias(this, totalLambda);
|
||||
public void Dispose() => Jolt.PInvoke.SpringPart_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue