mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,271 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class used to store the configuration of a constraint. Allows run-time creation of constraints.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct ConstraintSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L72">Jolt/Physics/Constraints/Constraint.h:72</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Saves the contents of the constraint settings in binary form to inStream.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.ConstraintSettings_SaveBinaryState(this, stream);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
||||
/// Creates a constraint of the correct type and restores its contents from the binary stream inStream.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Throws InvalidOperationException with Jolt's error message when the operation fails.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static ConstraintSettings sRestoreFromBinaryState(StreamIn stream)
|
||||
{
|
||||
var _handle = Jolt.PInvoke.ConstraintSettings_sRestoreFromBinaryState(stream);
|
||||
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
||||
return _handle;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L78">Jolt/Physics/Constraints/Constraint.h:78</see>
|
||||
/// <br/>
|
||||
/// <c>bool mEnabled = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool GetEnabled() => Jolt.PInvoke.ConstraintSettings_GetEnabled(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L78">Jolt/Physics/Constraints/Constraint.h:78</see>
|
||||
/// <br/>
|
||||
/// <c>bool mEnabled = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetEnabled(bool value) => Jolt.PInvoke.ConstraintSettings_SetEnabled(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L82">Jolt/Physics/Constraints/Constraint.h:82</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mConstraintPriority = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public uint GetConstraintPriority() => Jolt.PInvoke.ConstraintSettings_GetConstraintPriority(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L82">Jolt/Physics/Constraints/Constraint.h:82</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mConstraintPriority = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void SetConstraintPriority(uint value) => Jolt.PInvoke.ConstraintSettings_SetConstraintPriority(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L85">Jolt/Physics/Constraints/Constraint.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <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>
|
||||
/// </remarks>
|
||||
public uint GetNumVelocityStepsOverride() => Jolt.PInvoke.ConstraintSettings_GetNumVelocityStepsOverride(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L85">Jolt/Physics/Constraints/Constraint.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <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>
|
||||
/// </remarks>
|
||||
public void SetNumVelocityStepsOverride(uint value) => Jolt.PInvoke.ConstraintSettings_SetNumVelocityStepsOverride(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L88">Jolt/Physics/Constraints/Constraint.h:88</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumPositionStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <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>
|
||||
/// </remarks>
|
||||
public uint GetNumPositionStepsOverride() => Jolt.PInvoke.ConstraintSettings_GetNumPositionStepsOverride(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L88">Jolt/Physics/Constraints/Constraint.h:88</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumPositionStepsOverride = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <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>
|
||||
/// </remarks>
|
||||
public void SetNumPositionStepsOverride(uint value) => Jolt.PInvoke.ConstraintSettings_SetNumPositionStepsOverride(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L91">Jolt/Physics/Constraints/Constraint.h:91</see>
|
||||
/// <br/>
|
||||
/// <c>float mDrawConstraintSize = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Size of constraint when drawing it through the debug renderer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetDrawConstraintSize() => Jolt.PInvoke.ConstraintSettings_GetDrawConstraintSize(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L91">Jolt/Physics/Constraints/Constraint.h:91</see>
|
||||
/// <br/>
|
||||
/// <c>float mDrawConstraintSize = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Size of constraint when drawing it through the debug renderer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetDrawConstraintSize(float value) => Jolt.PInvoke.ConstraintSettings_SetDrawConstraintSize(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L94">Jolt/Physics/Constraints/Constraint.h:94</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// User data value (can be used by application)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ulong GetUserData() => Jolt.PInvoke.ConstraintSettings_GetUserData(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L94">Jolt/Physics/Constraints/Constraint.h:94</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// User data value (can be used by application)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
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