//
// 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/Constraint.h:66
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetRTTI")]
public static partial RTTI ConstraintSettings_GetRTTI(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:66
///
///
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_CastTo")]
public static partial void* ConstraintSettings_CastTo(ConstraintSettings self, RTTI rTTI);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:72
///
/// virtual void SaveBinaryState(StreamOut &inStream) const
///
///
///
///
/// Saves the contents of the constraint settings in binary form to inStream.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SaveBinaryState")]
public static partial void ConstraintSettings_SaveBinaryState(ConstraintSettings self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:75
///
/// static ConstraintResult sRestoreFromBinaryState(StreamIn &inStream)
///
///
///
///
/// Creates a constraint of the correct type and restores its contents from the binary stream inStream.
///
///
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_sRestoreFromBinaryState")]
public static partial ConstraintSettings ConstraintSettings_sRestoreFromBinaryState(StreamIn stream);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:78
///
/// bool mEnabled = true
///
///
///
///
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetEnabled")]
public static partial Brutal.Bool8 ConstraintSettings_GetEnabled(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:78
///
/// bool mEnabled = true
///
///
///
///
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetEnabled")]
public static partial void ConstraintSettings_SetEnabled(ConstraintSettings self, Brutal.Bool8 value);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:82
///
/// uint32 mConstraintPriority = 0
///
///
///
///
/// Priority of the constraint when solving. Higher numbers are more likely to be solved correctly.
/// Note that if you want a deterministic simulation and you cannot guarantee the order in which constraints are added/removed, you can make the priority for all constraints unique to get a deterministic ordering.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetConstraintPriority")]
public static partial uint ConstraintSettings_GetConstraintPriority(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:82
///
/// uint32 mConstraintPriority = 0
///
///
///
///
/// Priority of the constraint when solving. Higher numbers are more likely to be solved correctly.
/// Note that if you want a deterministic simulation and you cannot guarantee the order in which constraints are added/removed, you can make the priority for all constraints unique to get a deterministic ordering.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetConstraintPriority")]
public static partial void ConstraintSettings_SetConstraintPriority(ConstraintSettings self, uint value);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:85
///
/// uint mNumVelocityStepsOverride = 0
///
///
///
///
/// Used only when the constraint is active. Override for the number of solver velocity iterations to
/// run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of iterations to use
/// is the max of all contacts and constraints in the island.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetNumVelocityStepsOverride")]
public static partial uint ConstraintSettings_GetNumVelocityStepsOverride(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:85
///
/// uint mNumVelocityStepsOverride = 0
///
///
///
///
/// Used only when the constraint is active. Override for the number of solver velocity iterations to
/// run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of iterations to use
/// is the max of all contacts and constraints in the island.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetNumVelocityStepsOverride")]
public static partial void ConstraintSettings_SetNumVelocityStepsOverride(ConstraintSettings self, uint value);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:88
///
/// uint mNumPositionStepsOverride = 0
///
///
///
///
/// Used only when the constraint is active. Override for the number of solver position iterations to
/// run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of iterations to use
/// is the max of all contacts and constraints in the island.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetNumPositionStepsOverride")]
public static partial uint ConstraintSettings_GetNumPositionStepsOverride(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:88
///
/// uint mNumPositionStepsOverride = 0
///
///
///
///
/// Used only when the constraint is active. Override for the number of solver position iterations to
/// run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of iterations to use
/// is the max of all contacts and constraints in the island.
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetNumPositionStepsOverride")]
public static partial void ConstraintSettings_SetNumPositionStepsOverride(ConstraintSettings self, uint value);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:91
///
/// float mDrawConstraintSize = 1.0f
///
///
///
///
/// Size of constraint when drawing it through the debug renderer
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetDrawConstraintSize")]
public static partial float ConstraintSettings_GetDrawConstraintSize(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:91
///
/// float mDrawConstraintSize = 1.0f
///
///
///
///
/// Size of constraint when drawing it through the debug renderer
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetDrawConstraintSize")]
public static partial void ConstraintSettings_SetDrawConstraintSize(ConstraintSettings self, float value);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:94
///
/// uint64 mUserData = 0
///
///
///
///
/// User data value (can be used by application)
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetUserData")]
public static partial ulong ConstraintSettings_GetUserData(ConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/Constraint.h:94
///
/// uint64 mUserData = 0
///
///
///
///
/// User data value (can be used by application)
///
///
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetUserData")]
public static partial void ConstraintSettings_SetUserData(ConstraintSettings self, ulong value);
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_AddRef")]
public static partial void ConstraintSettings_AddRef(ConstraintSettings self);
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_Release")]
public static partial void ConstraintSettings_Release(ConstraintSettings self);
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetRefCount")]
public static partial uint ConstraintSettings_GetRefCount(ConstraintSettings self);
}
}
}