mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
179
Brutal.Jolt/Generated/Classes/PointConstraintSettings.gen.cs
Normal file
179
Brutal.Jolt/Generated/Classes/PointConstraintSettings.gen.cs
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
// <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>
|
||||
/// Point constraint settings, used to create a point constraint
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L13">Jolt/Physics/Constraints/PointConstraint.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class PointConstraintSettings final : public TwoBodyConstraintSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct PointConstraintSettings : IDisposable
|
||||
{
|
||||
public static PointConstraintSettings Create() => Jolt.PInvoke.PointConstraintSettings_Create();
|
||||
|
||||
/// <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);
|
||||
|
||||
/// <inheritdoc cref="ConstraintSettings.SaveBinaryState(StreamOut)"/>
|
||||
public void SaveBinaryState(StreamOut stream) => ((ConstraintSettings)this).SaveBinaryState(stream);
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraintSettings.Create(Body, Body)"/>
|
||||
public TwoBodyConstraint Create(Body body1, Body body2) =>
|
||||
((TwoBodyConstraintSettings)this).Create(body1, body2);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
||||
/// space
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L25">Jolt/Physics/Constraints/PointConstraint.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ConstraintSpace GetSpace() => Jolt.PInvoke.PointConstraintSettings_GetSpace(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
||||
/// space
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L25">Jolt/Physics/Constraints/PointConstraint.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetSpace(ConstraintSpace value) => Jolt.PInvoke.PointConstraintSettings_SetSpace(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 1 constraint position (space determined by mSpace).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L28">Jolt/Physics/Constraints/PointConstraint.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetPoint1() => Jolt.PInvoke.PointConstraintSettings_GetPoint1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 1 constraint position (space determined by mSpace).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L28">Jolt/Physics/Constraints/PointConstraint.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPoint1(float3 value) => Jolt.PInvoke.PointConstraintSettings_SetPoint1(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 2 constraint position (space determined by mSpace). Note: Normally you would set mPoint1 = mPoint2
|
||||
/// if the bodies are already placed how you want to constrain them (if mSpace = world space).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L32">Jolt/Physics/Constraints/PointConstraint.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetPoint2() => Jolt.PInvoke.PointConstraintSettings_GetPoint2(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 2 constraint position (space determined by mSpace). Note: Normally you would set mPoint1 = mPoint2
|
||||
/// if the bodies are already placed how you want to constrain them (if mSpace = world space).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L32">Jolt/Physics/Constraints/PointConstraint.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPoint2(float3 value) => Jolt.PInvoke.PointConstraintSettings_SetPoint2(this, value);
|
||||
|
||||
public void AddRef() => ((ConstraintSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ConstraintSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ConstraintSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator TwoBodyConstraintSettings(PointConstraintSettings value) =>
|
||||
Unsafe.BitCast<PointConstraintSettings, TwoBodyConstraintSettings>(value);
|
||||
|
||||
public static implicit operator ConstraintSettings(PointConstraintSettings value) =>
|
||||
Unsafe.BitCast<PointConstraintSettings, ConstraintSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <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