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

190 lines
11 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/RackAndPinionConstraint.h#L54">Jolt/Physics/Constraints/RackAndPinionConstraint.h:54</see>
/// <br/>
/// <c>class RackAndPinionConstraint final : public TwoBodyConstraint</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// A rack and pinion constraint constrains the rotation of body1 to the translation of body 2.
/// Note that this constraint needs to be used in conjunction with a hinge constraint for body 1 and a slider constraint for body 2.
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct RackAndPinionConstraint : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L60">Jolt/Physics/Constraints/RackAndPinionConstraint.h:60</see>
/// <br/>
/// <c>RackAndPinionConstraint(Body &amp;inBody1, Body &amp;inBody2, const RackAndPinionConstraintSettings &amp;inSettings)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Construct gear constraint
/// </para>
/// </remarks>
public static RackAndPinionConstraint Create(Body body1, Body body2, RackAndPinionConstraintSettings settings) => Jolt.PInvoke.RackAndPinionConstraint_Create(body1, body2, settings);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L63">Jolt/Physics/Constraints/RackAndPinionConstraint.h:63</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.RackAndPinionConstraint_GetSubType(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L64">Jolt/Physics/Constraints/RackAndPinionConstraint.h:64</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.RackAndPinionConstraint_NotifyShapeChanged(this, bodyID, deltaCOM);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L65">Jolt/Physics/Constraints/RackAndPinionConstraint.h:65</see>
/// <br/>
/// <c>virtual void SetupVelocityConstraint(float inDeltaTime) override</c>
/// </para>
/// </summary>
public void SetupVelocityConstraint(float deltaTime) => Jolt.PInvoke.RackAndPinionConstraint_SetupVelocityConstraint(this, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L66">Jolt/Physics/Constraints/RackAndPinionConstraint.h:66</see>
/// <br/>
/// <c>virtual void ResetWarmStart() override</c>
/// </para>
/// </summary>
public void ResetWarmStart() => Jolt.PInvoke.RackAndPinionConstraint_ResetWarmStart(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L67">Jolt/Physics/Constraints/RackAndPinionConstraint.h:67</see>
/// <br/>
/// <c>virtual void WarmStartVelocityConstraint(float inWarmStartImpulseRatio) override</c>
/// </para>
/// </summary>
public void WarmStartVelocityConstraint(float warmStartImpulseRatio) => Jolt.PInvoke.RackAndPinionConstraint_WarmStartVelocityConstraint(this, warmStartImpulseRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L68">Jolt/Physics/Constraints/RackAndPinionConstraint.h:68</see>
/// <br/>
/// <c>virtual bool SolveVelocityConstraint(float inDeltaTime) override</c>
/// </para>
/// </summary>
public bool SolveVelocityConstraint(float deltaTime) => Jolt.PInvoke.RackAndPinionConstraint_SolveVelocityConstraint(this, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L69">Jolt/Physics/Constraints/RackAndPinionConstraint.h:69</see>
/// <br/>
/// <c>virtual bool SolvePositionConstraint(float inDeltaTime, float inBaumgarte) override</c>
/// </para>
/// </summary>
public bool SolvePositionConstraint(float deltaTime, float baumgarte) => Jolt.PInvoke.RackAndPinionConstraint_SolvePositionConstraint(this, deltaTime, baumgarte);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L71">Jolt/Physics/Constraints/RackAndPinionConstraint.h:71</see>
/// <br/>
/// <c>virtual void DrawConstraint(DebugRenderer *inRenderer) const override</c>
/// </para>
/// </summary>
public void DrawConstraint(DebugRenderer renderer) => Jolt.PInvoke.RackAndPinionConstraint_DrawConstraint(this, renderer);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L75">Jolt/Physics/Constraints/RackAndPinionConstraint.h:75</see>
/// <br/>
/// <c>virtual Ref&lt;ConstraintSettings&gt; GetConstraintSettings() const override</c>
/// </para>
/// </summary>
public ConstraintSettings GetConstraintSettings() => Jolt.PInvoke.RackAndPinionConstraint_GetConstraintSettings(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L78">Jolt/Physics/Constraints/RackAndPinionConstraint.h:78</see>
/// <br/>
/// <c>virtual Mat44 GetConstraintToBody1Matrix() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: TwoBodyConstraint
/// </para>
/// </remarks>
public float4x4 GetConstraintToBody1Matrix() => Jolt.PInvoke.RackAndPinionConstraint_GetConstraintToBody1Matrix(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L79">Jolt/Physics/Constraints/RackAndPinionConstraint.h:79</see>
/// <br/>
/// <c>virtual Mat44 GetConstraintToBody2Matrix() const override</c>
/// </para>
/// </summary>
public float4x4 GetConstraintToBody2Matrix() => Jolt.PInvoke.RackAndPinionConstraint_GetConstraintToBody2Matrix(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L82">Jolt/Physics/Constraints/RackAndPinionConstraint.h:82</see>
/// <br/>
/// <c>void SetConstraints(const Constraint *inPinion, const Constraint *inRack)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The constraints that constrain the rack and pinion (a slider and a hinge), optional and used to
/// calculate the position error and fix numerical drift.
/// </para>
/// </remarks>
public void SetConstraints(Constraint pinion, Constraint rack) => Jolt.PInvoke.RackAndPinionConstraint_SetConstraints(this, pinion, rack);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L85">Jolt/Physics/Constraints/RackAndPinionConstraint.h:85</see>
/// <br/>
/// <c>inline float GetTotalLambda() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// @name Get Lagrange multiplier from last physics update (the linear/angular impulse applied to satisfy
/// the constraint)
/// </para>
/// </remarks>
public float GetTotalLambda() => Jolt.PInvoke.RackAndPinionConstraint_GetTotalLambda(this);
public void AddRef() => Jolt.PInvoke.RackAndPinionConstraint_AddRef(this);
public void Release() => Jolt.PInvoke.RackAndPinionConstraint_Release(this);
public uint GetRefCount() => Jolt.PInvoke.RackAndPinionConstraint_GetRefCount(this);
public static implicit operator TwoBodyConstraint(RackAndPinionConstraint value) => Jolt.PInvoke.RackAndPinionConstraint_AsTwoBodyConstraint(value);
public static implicit operator Constraint(RackAndPinionConstraint value) => Jolt.PInvoke.RackAndPinionConstraint_AsConstraint(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}