mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
281
Brutal.Jolt/Generated/Classes/ConstraintSettings.gen.cs
Normal file
281
Brutal.Jolt/Generated/Classes/ConstraintSettings.gen.cs
Normal file
|
|
@ -0,0 +1,281 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Class used to store the configuration of a constraint. Allows run-time creation of constraints.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L64">Jolt/Physics/Constraints/Constraint.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>class ConstraintSettings : public SerializableObject, public RefTarget<ConstraintSettings></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct ConstraintSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L66">Jolt/Physics/Constraints/Constraint.h:66</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is borrowed from its owner; don't Dispose it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public RTTI GetRTTI() => Jolt.PInvoke.ConstraintSettings_GetRTTI(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L66">Jolt/Physics/Constraints/Constraint.h:66</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rtti) => Jolt.PInvoke.ConstraintSettings_CastTo(this, rtti);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Saves the contents of the constraint settings in binary form to inStream.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L72">Jolt/Physics/Constraints/Constraint.h:72</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.ConstraintSettings_SaveBinaryState(this, stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Creates a constraint of the correct type and restores its contents from the binary stream inStream.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L75">Jolt/Physics/Constraints/Constraint.h:75</see>
|
||||
/// <br/>
|
||||
/// <c>static ConstraintResult sRestoreFromBinaryState(StreamIn &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Throws JoltException with Jolt's error message when the operation fails.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static ConstraintSettings RestoreFromBinaryState(StreamIn stream)
|
||||
{
|
||||
var _handle = Jolt.PInvoke.ConstraintSettings_RestoreFromBinaryState(stream);
|
||||
if (_handle.IsNull())
|
||||
throw JoltException.FromLastError();
|
||||
return _handle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Views this ConstraintSettings as the SwingTwistConstraintSettings it is, or returns a null handle when
|
||||
/// it is a different kind - check IsNull(). The same object, not a new reference: never Dispose the result.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public SwingTwistConstraintSettings AsSwingTwistConstraintSettings() =>
|
||||
Jolt.PInvoke.ConstraintSettings_AsSwingTwistConstraintSettings(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L78">Jolt/Physics/Constraints/Constraint.h:78</see>
|
||||
/// <br/>
|
||||
/// <c>bool mEnabled = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool GetEnabled() => Jolt.PInvoke.ConstraintSettings_GetEnabled(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L78">Jolt/Physics/Constraints/Constraint.h:78</see>
|
||||
/// <br/>
|
||||
/// <c>bool mEnabled = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetEnabled(bool value) => Jolt.PInvoke.ConstraintSettings_SetEnabled(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L82">Jolt/Physics/Constraints/Constraint.h:82</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mConstraintPriority = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public uint GetConstraintPriority() => Jolt.PInvoke.ConstraintSettings_GetConstraintPriority(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L82">Jolt/Physics/Constraints/Constraint.h:82</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mConstraintPriority = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetConstraintPriority(uint value) =>
|
||||
Jolt.PInvoke.ConstraintSettings_SetConstraintPriority(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L85">Jolt/Physics/Constraints/Constraint.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public uint GetNumVelocityStepsOverride() => Jolt.PInvoke.ConstraintSettings_GetNumVelocityStepsOverride(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L85">Jolt/Physics/Constraints/Constraint.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetNumVelocityStepsOverride(uint value) =>
|
||||
Jolt.PInvoke.ConstraintSettings_SetNumVelocityStepsOverride(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L88">Jolt/Physics/Constraints/Constraint.h:88</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumPositionStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public uint GetNumPositionStepsOverride() => Jolt.PInvoke.ConstraintSettings_GetNumPositionStepsOverride(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L88">Jolt/Physics/Constraints/Constraint.h:88</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumPositionStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetNumPositionStepsOverride(uint value) =>
|
||||
Jolt.PInvoke.ConstraintSettings_SetNumPositionStepsOverride(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Size of constraint when drawing it through the debug renderer
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L91">Jolt/Physics/Constraints/Constraint.h:91</see>
|
||||
/// <br/>
|
||||
/// <c>float mDrawConstraintSize = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetDrawConstraintSize() => Jolt.PInvoke.ConstraintSettings_GetDrawConstraintSize(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Size of constraint when drawing it through the debug renderer
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L91">Jolt/Physics/Constraints/Constraint.h:91</see>
|
||||
/// <br/>
|
||||
/// <c>float mDrawConstraintSize = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetDrawConstraintSize(float value) =>
|
||||
Jolt.PInvoke.ConstraintSettings_SetDrawConstraintSize(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// User data value (can be used by application)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L94">Jolt/Physics/Constraints/Constraint.h:94</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ulong GetUserData() => Jolt.PInvoke.ConstraintSettings_GetUserData(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// User data value (can be used by application)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/Constraint.h#L94">Jolt/Physics/Constraints/Constraint.h:94</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetUserData(ulong value) => Jolt.PInvoke.ConstraintSettings_SetUserData(this, value);
|
||||
|
||||
public void AddRef() => Jolt.PInvoke.ConstraintSettings_AddRef(this);
|
||||
|
||||
public void Release() => Jolt.PInvoke.ConstraintSettings_Release(this);
|
||||
|
||||
public uint GetRefCount() => Jolt.PInvoke.ConstraintSettings_GetRefCount(this);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue