// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:59 ///
/// class PulleyConstraint final : public TwoBodyConstraint ///
///
/// /// /// A pulley constraint. /// /// [InteropHandle] public readonly partial struct PulleyConstraint : IDisposable { /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:65 ///
/// PulleyConstraint(Body &inBody1, Body &inBody2, const PulleyConstraintSettings &inSettings) ///
///
/// /// /// Construct pulley constraint /// /// public static PulleyConstraint Create(Body body1, Body body2, PulleyConstraintSettings settings) => Jolt.PInvoke.PulleyConstraint_Create(body1, body2, settings); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:68 ///
/// virtual EConstraintSubType GetSubType() const override ///
///
/// /// /// Generic interface of a constraint /// /// public EConstraintSubType GetSubType() => Jolt.PInvoke.PulleyConstraint_GetSubType(this); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:69 ///
/// virtual void NotifyShapeChanged(const BodyID &inBodyID, Vec3Arg inDeltaCOM) override ///
///
public void NotifyShapeChanged(uint bodyID, float3 deltaCOM) => Jolt.PInvoke.PulleyConstraint_NotifyShapeChanged(this, bodyID, deltaCOM); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:70 ///
/// virtual void SetupVelocityConstraint(float inDeltaTime) override ///
///
public void SetupVelocityConstraint(float deltaTime) => Jolt.PInvoke.PulleyConstraint_SetupVelocityConstraint(this, deltaTime); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:71 ///
/// virtual void ResetWarmStart() override ///
///
public void ResetWarmStart() => Jolt.PInvoke.PulleyConstraint_ResetWarmStart(this); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:72 ///
/// virtual void WarmStartVelocityConstraint(float inWarmStartImpulseRatio) override ///
///
public void WarmStartVelocityConstraint(float warmStartImpulseRatio) => Jolt.PInvoke.PulleyConstraint_WarmStartVelocityConstraint(this, warmStartImpulseRatio); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:73 ///
/// virtual bool SolveVelocityConstraint(float inDeltaTime) override ///
///
public bool SolveVelocityConstraint(float deltaTime) => Jolt.PInvoke.PulleyConstraint_SolveVelocityConstraint(this, deltaTime); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:74 ///
/// virtual bool SolvePositionConstraint(float inDeltaTime, float inBaumgarte) override ///
///
public bool SolvePositionConstraint(float deltaTime, float baumgarte) => Jolt.PInvoke.PulleyConstraint_SolvePositionConstraint(this, deltaTime, baumgarte); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:76 ///
/// virtual void DrawConstraint(DebugRenderer *inRenderer) const override ///
///
public void DrawConstraint(DebugRenderer renderer) => Jolt.PInvoke.PulleyConstraint_DrawConstraint(this, renderer); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:80 ///
/// virtual Ref<ConstraintSettings> GetConstraintSettings() const override ///
///
public ConstraintSettings GetConstraintSettings() => Jolt.PInvoke.PulleyConstraint_GetConstraintSettings(this); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:83 ///
/// virtual Mat44 GetConstraintToBody1Matrix() const override ///
///
/// /// /// See: TwoBodyConstraint /// /// public float4x4 GetConstraintToBody1Matrix() => Jolt.PInvoke.PulleyConstraint_GetConstraintToBody1Matrix(this); /// /// /// 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 ///
///
public float4x4 GetConstraintToBody2Matrix() => Jolt.PInvoke.PulleyConstraint_GetConstraintToBody2Matrix(this); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:87 ///
/// void SetLength(float inMinLength, float inMaxLength) ///
///
/// /// /// Update the minimum and maximum length for the constraint /// /// public void SetLength(float minLength, float maxLength) => Jolt.PInvoke.PulleyConstraint_SetLength(this, minLength, maxLength); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:88 ///
/// float GetMinLength() const ///
///
public float GetMinLength() => Jolt.PInvoke.PulleyConstraint_GetMinLength(this); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:89 ///
/// float GetMaxLength() const ///
///
public float GetMaxLength() => Jolt.PInvoke.PulleyConstraint_GetMaxLength(this); /// /// /// C++: /// Jolt/Physics/Constraints/PulleyConstraint.h:92 ///
/// float GetCurrentLength() const ///
///
/// /// /// Get the current length of both segments (multiplied by the ratio for segment 2) /// /// public float GetCurrentLength() => Jolt.PInvoke.PulleyConstraint_GetCurrentLength(this); /// /// /// 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) /// /// 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(); } } }