// // 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/MotorSettings.h:31 ///
/// MotorSettings() = default ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_Create")] public static partial MotorSettings MotorSettings_Create(); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:34 ///
/// MotorSettings(float inFrequency, float inDamping) ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_Create_2")] public static partial MotorSettings MotorSettings_Create_2(float frequency, float damping); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:35 ///
/// MotorSettings(float inFrequency, float inDamping, float inForceLimit, float inTorqueLimit) ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_Create_3")] public static partial MotorSettings MotorSettings_Create_3(float frequency, float damping, float forceLimit, float torqueLimit); [LibraryImport("jolt", EntryPoint = "MotorSettings_Destroy")] public static partial void MotorSettings_Destroy(MotorSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:38 ///
/// void SetForceLimits(float inMin, float inMax) ///
///
/// /// /// Set asymmetric force limits /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_SetForceLimits")] public static partial void MotorSettings_SetForceLimits(MotorSettings self, float min, float max); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:41 ///
/// void SetTorqueLimits(float inMin, float inMax) ///
///
/// /// /// Set asymmetric torque limits /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_SetTorqueLimits")] public static partial void MotorSettings_SetTorqueLimits(MotorSettings self, float min, float max); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:44 ///
/// void SetForceLimit(float inLimit) ///
///
/// /// /// Set symmetric force limits /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_SetForceLimit")] public static partial void MotorSettings_SetForceLimit(MotorSettings self, float limit); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:47 ///
/// void SetTorqueLimit(float inLimit) ///
///
/// /// /// Set symmetric torque limits /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_SetTorqueLimit")] public static partial void MotorSettings_SetTorqueLimit(MotorSettings self, float limit); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:50 ///
/// bool IsValid() const ///
///
/// /// /// Check if settings are valid /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_IsValid")] public static partial Brutal.Bool8 MotorSettings_IsValid(MotorSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:53 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the contents of the motor settings in binary form to inStream. /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_SaveBinaryState")] public static partial void MotorSettings_SaveBinaryState(MotorSettings self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:56 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restores contents from the binary stream inStream. /// /// [LibraryImport("jolt", EntryPoint = "MotorSettings_RestoreBinaryState")] public static partial void MotorSettings_RestoreBinaryState(MotorSettings self, StreamIn stream); /// /// /// Minimum force to apply in case of a linear constraint (N). Usually this is -mMaxForceLimit unless /// you want a motor that can e.g. push but not pull. Not used when motor is an angular motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:60 ///
/// float mMinForceLimit = -FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_GetMinForceLimit")] public static partial float MotorSettings_GetMinForceLimit(MotorSettings self); /// /// /// Minimum force to apply in case of a linear constraint (N). Usually this is -mMaxForceLimit unless /// you want a motor that can e.g. push but not pull. Not used when motor is an angular motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:60 ///
/// float mMinForceLimit = -FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_SetMinForceLimit")] public static partial void MotorSettings_SetMinForceLimit(MotorSettings self, float value); /// /// /// Maximum force to apply in case of a linear constraint (N). Not used when motor is an angular motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:61 ///
/// float mMaxForceLimit = FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_GetMaxForceLimit")] public static partial float MotorSettings_GetMaxForceLimit(MotorSettings self); /// /// /// Maximum force to apply in case of a linear constraint (N). Not used when motor is an angular motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:61 ///
/// float mMaxForceLimit = FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_SetMaxForceLimit")] public static partial void MotorSettings_SetMaxForceLimit(MotorSettings self, float value); /// /// /// Minimum torque to apply in case of a angular constraint (N m). Usually this is -mMaxTorqueLimit /// unless you want a motor that can e.g. push but not pull. Not used when motor is a position motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:62 ///
/// float mMinTorqueLimit = -FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_GetMinTorqueLimit")] public static partial float MotorSettings_GetMinTorqueLimit(MotorSettings self); /// /// /// Minimum torque to apply in case of a angular constraint (N m). Usually this is -mMaxTorqueLimit /// unless you want a motor that can e.g. push but not pull. Not used when motor is a position motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:62 ///
/// float mMinTorqueLimit = -FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_SetMinTorqueLimit")] public static partial void MotorSettings_SetMinTorqueLimit(MotorSettings self, float value); /// /// /// Maximum torque to apply in case of a angular constraint (N m). Not used when motor is a position /// motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:63 ///
/// float mMaxTorqueLimit = FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_GetMaxTorqueLimit")] public static partial float MotorSettings_GetMaxTorqueLimit(MotorSettings self); /// /// /// Maximum torque to apply in case of a angular constraint (N m). Not used when motor is a position /// motor. /// /// /// C++: /// Jolt/Physics/Constraints/MotorSettings.h:63 ///
/// float mMaxTorqueLimit = FLT_MAX ///
///
[LibraryImport("jolt", EntryPoint = "MotorSettings_SetMaxTorqueLimit")] public static partial void MotorSettings_SetMaxTorqueLimit(MotorSettings self, float value); } } }