mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
230 lines
13 KiB
C#
230 lines
13 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/PulleyConstraint.h#L65">Jolt/Physics/Constraints/PulleyConstraint.h:65</see>
|
|
/// <br/>
|
|
/// <c>PulleyConstraint(Body &inBody1, Body &inBody2, const PulleyConstraintSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Construct pulley constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_Create")]
|
|
public static partial PulleyConstraint PulleyConstraint_Create(Body body1, Body body2, PulleyConstraintSettings 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetSubType")]
|
|
public static partial EConstraintSubType PulleyConstraint_GetSubType(PulleyConstraint self);
|
|
/// <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 &inBodyID, Vec3Arg inDeltaCOM) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_NotifyShapeChanged")]
|
|
public static partial void PulleyConstraint_NotifyShapeChanged(PulleyConstraint self, uint bodyID, float3 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SetupVelocityConstraint")]
|
|
public static partial void PulleyConstraint_SetupVelocityConstraint(PulleyConstraint self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_ResetWarmStart")]
|
|
public static partial void PulleyConstraint_ResetWarmStart(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_WarmStartVelocityConstraint")]
|
|
public static partial void PulleyConstraint_WarmStartVelocityConstraint(PulleyConstraint self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 PulleyConstraint_SolveVelocityConstraint(PulleyConstraint self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 PulleyConstraint_SolvePositionConstraint(PulleyConstraint self, float deltaTime, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_DrawConstraint")]
|
|
public static partial void PulleyConstraint_DrawConstraint(PulleyConstraint self, DebugRenderer 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<ConstraintSettings> GetConstraintSettings() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetConstraintSettings")]
|
|
public static partial ConstraintSettings PulleyConstraint_GetConstraintSettings(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetConstraintToBody1Matrix")]
|
|
public static partial float4x4 PulleyConstraint_GetConstraintToBody1Matrix(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetConstraintToBody2Matrix")]
|
|
public static partial float4x4 PulleyConstraint_GetConstraintToBody2Matrix(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SetLength")]
|
|
public static partial void PulleyConstraint_SetLength(PulleyConstraint self, float minLength, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetMinLength")]
|
|
public static partial float PulleyConstraint_GetMinLength(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetMaxLength")]
|
|
public static partial float PulleyConstraint_GetMaxLength(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetCurrentLength")]
|
|
public static partial float PulleyConstraint_GetCurrentLength(PulleyConstraint self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetTotalLambdaPosition")]
|
|
public static partial float PulleyConstraint_GetTotalLambdaPosition(PulleyConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_AddRef")]
|
|
public static partial void PulleyConstraint_AddRef(PulleyConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_Release")]
|
|
public static partial void PulleyConstraint_Release(PulleyConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetRefCount")]
|
|
public static partial uint PulleyConstraint_GetRefCount(PulleyConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_AsTwoBodyConstraint")]
|
|
public static partial TwoBodyConstraint PulleyConstraint_AsTwoBodyConstraint(PulleyConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_AsConstraint")]
|
|
public static partial Constraint PulleyConstraint_AsConstraint(PulleyConstraint self);
|
|
}
|
|
}
|
|
}
|