// // 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 { [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_Create")] public static partial SwingTwistConstraintPart SwingTwistConstraintPart_Create(); [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_Destroy")] public static partial void SwingTwistConstraintPart_Destroy(SwingTwistConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:36 ///
/// void SetSwingType(ESwingType inSwingType) ///
///
/// /// /// Override the swing type /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_SetSwingType")] public static partial void SwingTwistConstraintPart_SetSwingType(SwingTwistConstraintPart self, ESwingType swingType); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:42 ///
/// ESwingType GetSwingType() const ///
///
/// /// /// Get the swing type for this part /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_GetSwingType")] public static partial ESwingType SwingTwistConstraintPart_GetSwingType(SwingTwistConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:48 ///
/// void SetLimits(float inTwistMinAngle, float inTwistMaxAngle, float inSwingYMinAngle, float inSwingYMaxAngle, float inSwingZMinAngle, float inSwingZMaxAngle) ///
///
/// /// /// Set limits for this constraint (see description above for parameters) /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_SetLimits")] public static partial void SwingTwistConstraintPart_SetLimits(SwingTwistConstraintPart self, float twistMinAngle, float twistMaxAngle, float swingYMinAngle, float swingYMaxAngle, float swingZMinAngle, float swingZMaxAngle); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:160 ///
/// static bool sDistanceToMinShorter(float inDeltaMin, float inDeltaMax) ///
///
/// /// /// Helper function to determine if we're clamped against the min or max limit /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_sDistanceToMinShorter")] public static partial Brutal.Bool8 SwingTwistConstraintPart_sDistanceToMinShorter(float deltaMin, float deltaMax); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:337 ///
/// inline void CalculateConstraintProperties(const Body &inBody1, const Body &inBody2, QuatArg inConstraintRotation, QuatArg inConstraintToWorld) ///
///
/// /// /// Calculate properties used during the functions below /// @param inBody1 The first body that this constraint is attached to /// @param inBody2 The second body that this constraint is attached to /// @param inConstraintRotation The current rotation of the constraint in constraint space /// @param inConstraintToWorld Rotates from constraint space into world space /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_CalculateConstraintProperties")] public static partial void SwingTwistConstraintPart_CalculateConstraintProperties(SwingTwistConstraintPart self, Body body1, Body body2, floatQuat constraintRotation, floatQuat constraintToWorld); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:447 ///
/// void Deactivate() ///
///
/// /// /// Deactivate this constraint /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_Deactivate")] public static partial void SwingTwistConstraintPart_Deactivate(SwingTwistConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:455 ///
/// inline bool IsActive() const ///
///
/// /// /// Check if constraint is active /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_IsActive")] public static partial Brutal.Bool8 SwingTwistConstraintPart_IsActive(SwingTwistConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:461 ///
/// inline void WarmStart(Body &ioBody1, Body &ioBody2, float inWarmStartImpulseRatio) ///
///
/// /// /// Must be called from the WarmStartVelocityConstraint call to apply the previous frame's impulses /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_WarmStart")] public static partial void SwingTwistConstraintPart_WarmStart(SwingTwistConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:469 ///
/// inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2) ///
///
/// /// /// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint /// equation. /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_SolveVelocityConstraint")] public static partial Brutal.Bool8 SwingTwistConstraintPart_SolveVelocityConstraint(SwingTwistConstraintPart self, Body body1, Body body2); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:493 ///
/// inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, QuatArg inConstraintRotation, QuatArg inConstraintToBody1, QuatArg inConstraintToBody2, float inBaumgarte) const ///
///
/// /// /// Iteratively update the position constraint. Makes sure C(...) = 0. /// @param ioBody1 The first body that this constraint is attached to /// @param ioBody2 The second body that this constraint is attached to /// @param inConstraintRotation The current rotation of the constraint in constraint space /// @param inConstraintToBody1 , inConstraintToBody2 Rotates from constraint space to body 1/2 space /// @param inBaumgarte Baumgarte constant (fraction of the error to correct) /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_SolvePositionConstraint")] public static partial Brutal.Bool8 SwingTwistConstraintPart_SolvePositionConstraint(SwingTwistConstraintPart self, Body body1, Body body2, floatQuat constraintRotation, floatQuat constraintToBody1, floatQuat constraintToBody2, float baumgarte); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:514 ///
/// inline float GetTotalSwingYLambda() const ///
///
/// /// /// Return lagrange multiplier for swing /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_GetTotalSwingYLambda")] public static partial float SwingTwistConstraintPart_GetTotalSwingYLambda(SwingTwistConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:519 ///
/// inline float GetTotalSwingZLambda() const ///
///
[LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_GetTotalSwingZLambda")] public static partial float SwingTwistConstraintPart_GetTotalSwingZLambda(SwingTwistConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h:525 ///
/// inline float GetTotalTwistLambda() const ///
///
/// /// /// Return lagrange multiplier for twist /// /// [LibraryImport("jolt", EntryPoint = "SwingTwistConstraintPart_GetTotalTwistLambda")] public static partial float SwingTwistConstraintPart_GetTotalTwistLambda(SwingTwistConstraintPart self); } } }