// // 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 = "HingeRotationConstraintPart_Create")] public static partial HingeRotationConstraintPart HingeRotationConstraintPart_Create(); [LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_Destroy")] public static partial void HingeRotationConstraintPart_Destroy(HingeRotationConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:76 ///
/// inline void CalculateConstraintProperties(const Body &inBody1, Mat44Arg inRotation1, Vec3Arg inWorldSpaceHingeAxis1, const Body &inBody2, Mat44Arg inRotation2, Vec3Arg inWorldSpaceHingeAxis2) ///
///
/// /// /// Calculate properties used during the functions below /// /// [LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_CalculateConstraintProperties")] public static partial void HingeRotationConstraintPart_CalculateConstraintProperties(HingeRotationConstraintPart self, Body body1, float4x4 rotation1, float3 worldSpaceHingeAxis1, Body body2, float4x4 rotation2, float3 worldSpaceHingeAxis2); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:119 ///
/// inline void Deactivate() ///
///
/// /// /// Deactivate this constraint /// /// [LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_Deactivate")] public static partial void HingeRotationConstraintPart_Deactivate(HingeRotationConstraintPart self); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:126 ///
/// 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 = "HingeRotationConstraintPart_WarmStart")] public static partial void HingeRotationConstraintPart_WarmStart(HingeRotationConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:133 ///
/// 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 = "HingeRotationConstraintPart_SolveVelocityConstraint")] public static partial Brutal.Bool8 HingeRotationConstraintPart_SolveVelocityConstraint(HingeRotationConstraintPart self, Body body1, Body body2); /// /// /// C++: /// Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:151 ///
/// inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, float inBaumgarte) const ///
///
/// /// /// Iteratively update the position constraint. Makes sure C(...) = 0. /// /// [LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_SolvePositionConstraint")] public static partial Brutal.Bool8 HingeRotationConstraintPart_SolvePositionConstraint(HingeRotationConstraintPart self, Body body1, Body body2, float baumgarte); } } }