mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
108
Brutal.Jolt/Generated/Classes/TwoBodyConstraintSettings.gen.cs
Normal file
108
Brutal.Jolt/Generated/Classes/TwoBodyConstraintSettings.gen.cs
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
// <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>
|
||||
/// Base class for settings for all constraints that involve 2 bodies
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L15">Jolt/Physics/Constraints/TwoBodyConstraint.h:15</see>
|
||||
/// <br/>
|
||||
/// <c>class TwoBodyConstraintSettings : public ConstraintSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TwoBodyConstraintSettings : IDisposable
|
||||
{
|
||||
/// <inheritdoc cref="ConstraintSettings.GetRTTI()"/>
|
||||
public RTTI GetRTTI() => ((ConstraintSettings)this).GetRTTI();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.CastTo(RTTI)"/>
|
||||
public unsafe Ptr CastTo(RTTI rtti) => ((ConstraintSettings)this).CastTo(rtti);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Create an instance of this constraint You can use Body::sFixedToWorld for inBody1 if you want to attach
|
||||
/// inBody2 to the world
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L22">Jolt/Physics/Constraints/TwoBodyConstraint.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public TwoBodyConstraint Create(Body body1, Body body2) =>
|
||||
Jolt.PInvoke.TwoBodyConstraintSettings_Create(this, body1, body2);
|
||||
|
||||
public void AddRef() => ((ConstraintSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ConstraintSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ConstraintSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator ConstraintSettings(TwoBodyConstraintSettings value) =>
|
||||
Unsafe.BitCast<TwoBodyConstraintSettings, ConstraintSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SaveBinaryState(StreamOut)"/>
|
||||
public void SaveBinaryState(StreamOut stream) => ((ConstraintSettings)this).SaveBinaryState(stream);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.GetEnabled()"/>
|
||||
public bool GetEnabled() => ((ConstraintSettings)this).GetEnabled();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SetEnabled(bool)"/>
|
||||
public void SetEnabled(bool value) => ((ConstraintSettings)this).SetEnabled(value);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.GetConstraintPriority()"/>
|
||||
public uint GetConstraintPriority() => ((ConstraintSettings)this).GetConstraintPriority();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SetConstraintPriority(uint)"/>
|
||||
public void SetConstraintPriority(uint value) => ((ConstraintSettings)this).SetConstraintPriority(value);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.GetNumVelocityStepsOverride()"/>
|
||||
public uint GetNumVelocityStepsOverride() => ((ConstraintSettings)this).GetNumVelocityStepsOverride();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SetNumVelocityStepsOverride(uint)"/>
|
||||
public void SetNumVelocityStepsOverride(uint value) =>
|
||||
((ConstraintSettings)this).SetNumVelocityStepsOverride(value);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.GetNumPositionStepsOverride()"/>
|
||||
public uint GetNumPositionStepsOverride() => ((ConstraintSettings)this).GetNumPositionStepsOverride();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SetNumPositionStepsOverride(uint)"/>
|
||||
public void SetNumPositionStepsOverride(uint value) =>
|
||||
((ConstraintSettings)this).SetNumPositionStepsOverride(value);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.GetDrawConstraintSize()"/>
|
||||
public float GetDrawConstraintSize() => ((ConstraintSettings)this).GetDrawConstraintSize();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SetDrawConstraintSize(float)"/>
|
||||
public void SetDrawConstraintSize(float value) => ((ConstraintSettings)this).SetDrawConstraintSize(value);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.GetUserData()"/>
|
||||
public ulong GetUserData() => ((ConstraintSettings)this).GetUserData();
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SetUserData(ulong)"/>
|
||||
public void SetUserData(ulong value) => ((ConstraintSettings)this).SetUserData(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue