mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
192 lines
12 KiB
C#
192 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
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
/// <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 &inBody1, Body &inBody2, const RackAndPinionConstraintSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Construct gear constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_Create")]
|
|
public static partial RackAndPinionConstraint RackAndPinionConstraint_Create(Body body1, Body body2, RackAndPinionConstraintSettings 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_GetSubType")]
|
|
public static partial EConstraintSubType RackAndPinionConstraint_GetSubType(RackAndPinionConstraint self);
|
|
/// <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 &inBodyID, Vec3Arg inDeltaCOM) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_NotifyShapeChanged")]
|
|
public static partial void RackAndPinionConstraint_NotifyShapeChanged(RackAndPinionConstraint self, uint bodyID, float3 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_SetupVelocityConstraint")]
|
|
public static partial void RackAndPinionConstraint_SetupVelocityConstraint(RackAndPinionConstraint self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_ResetWarmStart")]
|
|
public static partial void RackAndPinionConstraint_ResetWarmStart(RackAndPinionConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_WarmStartVelocityConstraint")]
|
|
public static partial void RackAndPinionConstraint_WarmStartVelocityConstraint(RackAndPinionConstraint self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 RackAndPinionConstraint_SolveVelocityConstraint(RackAndPinionConstraint self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 RackAndPinionConstraint_SolvePositionConstraint(RackAndPinionConstraint self, float deltaTime, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_DrawConstraint")]
|
|
public static partial void RackAndPinionConstraint_DrawConstraint(RackAndPinionConstraint self, DebugRenderer 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<ConstraintSettings> GetConstraintSettings() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_GetConstraintSettings")]
|
|
public static partial ConstraintSettings RackAndPinionConstraint_GetConstraintSettings(RackAndPinionConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_GetConstraintToBody1Matrix")]
|
|
public static partial float4x4 RackAndPinionConstraint_GetConstraintToBody1Matrix(RackAndPinionConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_GetConstraintToBody2Matrix")]
|
|
public static partial float4x4 RackAndPinionConstraint_GetConstraintToBody2Matrix(RackAndPinionConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_SetConstraints")]
|
|
public static partial void RackAndPinionConstraint_SetConstraints(RackAndPinionConstraint self, Constraint pinion, Constraint 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>
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_GetTotalLambda")]
|
|
public static partial float RackAndPinionConstraint_GetTotalLambda(RackAndPinionConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_AddRef")]
|
|
public static partial void RackAndPinionConstraint_AddRef(RackAndPinionConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_Release")]
|
|
public static partial void RackAndPinionConstraint_Release(RackAndPinionConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_GetRefCount")]
|
|
public static partial uint RackAndPinionConstraint_GetRefCount(RackAndPinionConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_AsTwoBodyConstraint")]
|
|
public static partial TwoBodyConstraint RackAndPinionConstraint_AsTwoBodyConstraint(RackAndPinionConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraint_AsConstraint")]
|
|
public static partial Constraint RackAndPinionConstraint_AsConstraint(RackAndPinionConstraint self);
|
|
}
|
|
}
|
|
}
|