brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/PulleyConstraint.gen.cs
2026-10-15 14:12:02 +13:00

224 lines
12 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L59">Jolt/Physics/Constraints/PulleyConstraint.h:59</see>
/// <br/>
/// <c>class PulleyConstraint final : public TwoBodyConstraint</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// A pulley constraint.
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct PulleyConstraint : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L65">Jolt/Physics/Constraints/PulleyConstraint.h:65</see>
/// <br/>
/// <c>PulleyConstraint(Body &amp;inBody1, Body &amp;inBody2, const PulleyConstraintSettings &amp;inSettings)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Construct pulley constraint
/// </para>
/// </remarks>
public static PulleyConstraint Create(Body body1, Body body2, PulleyConstraintSettings settings) => Jolt.PInvoke.PulleyConstraint_Create(body1, body2, settings);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L68">Jolt/Physics/Constraints/PulleyConstraint.h:68</see>
/// <br/>
/// <c>virtual EConstraintSubType GetSubType() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Generic interface of a constraint
/// </para>
/// </remarks>
public EConstraintSubType GetSubType() => Jolt.PInvoke.PulleyConstraint_GetSubType(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L69">Jolt/Physics/Constraints/PulleyConstraint.h:69</see>
/// <br/>
/// <c>virtual void NotifyShapeChanged(const BodyID &amp;inBodyID, Vec3Arg inDeltaCOM) override</c>
/// </para>
/// </summary>
public void NotifyShapeChanged(uint bodyID, float3 deltaCOM) => Jolt.PInvoke.PulleyConstraint_NotifyShapeChanged(this, bodyID, deltaCOM);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L70">Jolt/Physics/Constraints/PulleyConstraint.h:70</see>
/// <br/>
/// <c>virtual void SetupVelocityConstraint(float inDeltaTime) override</c>
/// </para>
/// </summary>
public void SetupVelocityConstraint(float deltaTime) => Jolt.PInvoke.PulleyConstraint_SetupVelocityConstraint(this, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L71">Jolt/Physics/Constraints/PulleyConstraint.h:71</see>
/// <br/>
/// <c>virtual void ResetWarmStart() override</c>
/// </para>
/// </summary>
public void ResetWarmStart() => Jolt.PInvoke.PulleyConstraint_ResetWarmStart(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L72">Jolt/Physics/Constraints/PulleyConstraint.h:72</see>
/// <br/>
/// <c>virtual void WarmStartVelocityConstraint(float inWarmStartImpulseRatio) override</c>
/// </para>
/// </summary>
public void WarmStartVelocityConstraint(float warmStartImpulseRatio) => Jolt.PInvoke.PulleyConstraint_WarmStartVelocityConstraint(this, warmStartImpulseRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L73">Jolt/Physics/Constraints/PulleyConstraint.h:73</see>
/// <br/>
/// <c>virtual bool SolveVelocityConstraint(float inDeltaTime) override</c>
/// </para>
/// </summary>
public bool SolveVelocityConstraint(float deltaTime) => Jolt.PInvoke.PulleyConstraint_SolveVelocityConstraint(this, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L74">Jolt/Physics/Constraints/PulleyConstraint.h:74</see>
/// <br/>
/// <c>virtual bool SolvePositionConstraint(float inDeltaTime, float inBaumgarte) override</c>
/// </para>
/// </summary>
public bool SolvePositionConstraint(float deltaTime, float baumgarte) => Jolt.PInvoke.PulleyConstraint_SolvePositionConstraint(this, deltaTime, baumgarte);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L76">Jolt/Physics/Constraints/PulleyConstraint.h:76</see>
/// <br/>
/// <c>virtual void DrawConstraint(DebugRenderer *inRenderer) const override</c>
/// </para>
/// </summary>
public void DrawConstraint(DebugRenderer renderer) => Jolt.PInvoke.PulleyConstraint_DrawConstraint(this, renderer);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L80">Jolt/Physics/Constraints/PulleyConstraint.h:80</see>
/// <br/>
/// <c>virtual Ref&lt;ConstraintSettings&gt; GetConstraintSettings() const override</c>
/// </para>
/// </summary>
public ConstraintSettings GetConstraintSettings() => Jolt.PInvoke.PulleyConstraint_GetConstraintSettings(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L83">Jolt/Physics/Constraints/PulleyConstraint.h:83</see>
/// <br/>
/// <c>virtual Mat44 GetConstraintToBody1Matrix() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: TwoBodyConstraint
/// </para>
/// </remarks>
public float4x4 GetConstraintToBody1Matrix() => Jolt.PInvoke.PulleyConstraint_GetConstraintToBody1Matrix(this);
/// <summary>
/// <para>
/// Note: Incorrect rotation as we don't track the original rotation difference, should not matter though as
/// the constraint is not limiting rotation.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L84">Jolt/Physics/Constraints/PulleyConstraint.h:84</see>
/// <br/>
/// <c>virtual Mat44 GetConstraintToBody2Matrix() const override</c>
/// </para>
/// </summary>
public float4x4 GetConstraintToBody2Matrix() => Jolt.PInvoke.PulleyConstraint_GetConstraintToBody2Matrix(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L87">Jolt/Physics/Constraints/PulleyConstraint.h:87</see>
/// <br/>
/// <c>void SetLength(float inMinLength, float inMaxLength)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Update the minimum and maximum length for the constraint
/// </para>
/// </remarks>
public void SetLength(float minLength, float maxLength) => Jolt.PInvoke.PulleyConstraint_SetLength(this, minLength, maxLength);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L88">Jolt/Physics/Constraints/PulleyConstraint.h:88</see>
/// <br/>
/// <c>float GetMinLength() const</c>
/// </para>
/// </summary>
public float GetMinLength() => Jolt.PInvoke.PulleyConstraint_GetMinLength(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L89">Jolt/Physics/Constraints/PulleyConstraint.h:89</see>
/// <br/>
/// <c>float GetMaxLength() const</c>
/// </para>
/// </summary>
public float GetMaxLength() => Jolt.PInvoke.PulleyConstraint_GetMaxLength(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L92">Jolt/Physics/Constraints/PulleyConstraint.h:92</see>
/// <br/>
/// <c>float GetCurrentLength() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the current length of both segments (multiplied by the ratio for segment 2)
/// </para>
/// </remarks>
public float GetCurrentLength() => Jolt.PInvoke.PulleyConstraint_GetCurrentLength(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PulleyConstraint.h#L95">Jolt/Physics/Constraints/PulleyConstraint.h:95</see>
/// <br/>
/// <c>inline float GetTotalLambdaPosition() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Get Lagrange multiplier from last physics update (the linear impulse applied to satisfy the
/// constraint)
/// </para>
/// </remarks>
public float GetTotalLambdaPosition() => Jolt.PInvoke.PulleyConstraint_GetTotalLambdaPosition(this);
public void AddRef() => Jolt.PInvoke.PulleyConstraint_AddRef(this);
public void Release() => Jolt.PInvoke.PulleyConstraint_Release(this);
public uint GetRefCount() => Jolt.PInvoke.PulleyConstraint_GetRefCount(this);
public static implicit operator TwoBodyConstraint(PulleyConstraint value) => Jolt.PInvoke.PulleyConstraint_AsTwoBodyConstraint(value);
public static implicit operator Constraint(PulleyConstraint value) => Jolt.PInvoke.PulleyConstraint_AsConstraint(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}