// // 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 { /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:65 ///
/// PulleyConstraint(Body &inBody1, Body &inBody2, const PulleyConstraintSettings &inSettings) ///
///
/// /// /// Construct pulley constraint /// /// [LibraryImport("jolt", EntryPoint = "PulleyConstraint_Create")] public static partial PulleyConstraint PulleyConstraint_Create(Body body1, Body body2, PulleyConstraintSettings settings); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:68 ///
/// virtual EConstraintSubType GetSubType() const override ///
///
/// /// /// Generic interface of a constraint /// /// [LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetSubType")] public static partial EConstraintSubType PulleyConstraint_GetSubType(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:69 ///
/// virtual void NotifyShapeChanged(const BodyID &inBodyID, Vec3Arg inDeltaCOM) override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_NotifyShapeChanged")] public static partial void PulleyConstraint_NotifyShapeChanged(PulleyConstraint self, uint bodyID, float3 deltaCOM); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:70 ///
/// virtual void SetupVelocityConstraint(float inDeltaTime) override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SetupVelocityConstraint")] public static partial void PulleyConstraint_SetupVelocityConstraint(PulleyConstraint self, float deltaTime); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:71 ///
/// virtual void ResetWarmStart() override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_ResetWarmStart")] public static partial void PulleyConstraint_ResetWarmStart(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:72 ///
/// virtual void WarmStartVelocityConstraint(float inWarmStartImpulseRatio) override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_WarmStartVelocityConstraint")] public static partial void PulleyConstraint_WarmStartVelocityConstraint(PulleyConstraint self, float warmStartImpulseRatio); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:73 ///
/// virtual bool SolveVelocityConstraint(float inDeltaTime) override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SolveVelocityConstraint")] public static partial Brutal.Bool8 PulleyConstraint_SolveVelocityConstraint(PulleyConstraint self, float deltaTime); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:74 ///
/// virtual bool SolvePositionConstraint(float inDeltaTime, float inBaumgarte) override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_SolvePositionConstraint")] public static partial Brutal.Bool8 PulleyConstraint_SolvePositionConstraint(PulleyConstraint self, float deltaTime, float baumgarte); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:76 ///
/// virtual void DrawConstraint(DebugRenderer *inRenderer) const override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_DrawConstraint")] public static partial void PulleyConstraint_DrawConstraint(PulleyConstraint self, DebugRenderer renderer); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:80 ///
/// virtual Ref<ConstraintSettings> GetConstraintSettings() const override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetConstraintSettings")] public static partial ConstraintSettings PulleyConstraint_GetConstraintSettings(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:83 ///
/// virtual Mat44 GetConstraintToBody1Matrix() const override ///
///
/// /// /// See: TwoBodyConstraint /// /// [LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetConstraintToBody1Matrix")] public static partial float4x4 PulleyConstraint_GetConstraintToBody1Matrix(PulleyConstraint self); /// /// /// Note: Incorrect rotation as we don't track the original rotation difference, should not matter /// though as the constraint is not limiting rotation. /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:84 ///
/// virtual Mat44 GetConstraintToBody2Matrix() const override ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetConstraintToBody2Matrix")] public static partial float4x4 PulleyConstraint_GetConstraintToBody2Matrix(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:87 ///
/// void SetLength(float inMinLength, float inMaxLength) ///
///
/// /// /// Update the minimum and maximum length for the constraint /// /// [LibraryImport("jolt", EntryPoint = "PulleyConstraint_SetLength")] public static partial void PulleyConstraint_SetLength(PulleyConstraint self, float minLength, float maxLength); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:88 ///
/// float GetMinLength() const ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetMinLength")] public static partial float PulleyConstraint_GetMinLength(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:89 ///
/// float GetMaxLength() const ///
///
[LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetMaxLength")] public static partial float PulleyConstraint_GetMaxLength(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:92 ///
/// float GetCurrentLength() const ///
///
/// /// /// Get the current length of both segments (multiplied by the ratio for segment 2) /// /// [LibraryImport("jolt", EntryPoint = "PulleyConstraint_GetCurrentLength")] public static partial float PulleyConstraint_GetCurrentLength(PulleyConstraint self); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:95 ///
/// inline float GetTotalLambdaPosition() const ///
///
/// /// /// @name Get Lagrange multiplier from last physics update (the linear impulse applied to satisfy the /// constraint) /// /// [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); } } }