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
288
Brutal.Jolt/Generated/Classes/FixedConstraintSettings.gen.cs
Normal file
288
Brutal.Jolt/Generated/Classes/FixedConstraintSettings.gen.cs
Normal file
|
|
@ -0,0 +1,288 @@
|
|||
// <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>
|
||||
/// Fixed constraint settings, used to create a fixed constraint
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L14">Jolt/Physics/Constraints/FixedConstraint.h:14</see>
|
||||
/// <br/>
|
||||
/// <c>class FixedConstraintSettings final : public TwoBodyConstraintSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct FixedConstraintSettings : IDisposable
|
||||
{
|
||||
public static FixedConstraintSettings Create() => Jolt.PInvoke.FixedConstraintSettings_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/FixedConstraint.h#L26">Jolt/Physics/Constraints/FixedConstraint.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ConstraintSpace GetSpace() => Jolt.PInvoke.FixedConstraintSettings_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/FixedConstraint.h#L26">Jolt/Physics/Constraints/FixedConstraint.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetSpace(ConstraintSpace value) => Jolt.PInvoke.FixedConstraintSettings_SetSpace(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// When mSpace is WorldSpace mPoint1 and mPoint2 can be automatically calculated based on the positions of
|
||||
/// the bodies when the constraint is created (they will be fixated in their current relative
|
||||
/// position/orientation). Set this to false if you want to supply the attachment points yourself.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L29">Jolt/Physics/Constraints/FixedConstraint.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>bool mAutoDetectPoint = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool GetAutoDetectPoint() => Jolt.PInvoke.FixedConstraintSettings_GetAutoDetectPoint(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// When mSpace is WorldSpace mPoint1 and mPoint2 can be automatically calculated based on the positions of
|
||||
/// the bodies when the constraint is created (they will be fixated in their current relative
|
||||
/// position/orientation). Set this to false if you want to supply the attachment points yourself.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L29">Jolt/Physics/Constraints/FixedConstraint.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>bool mAutoDetectPoint = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetAutoDetectPoint(bool value) =>
|
||||
Jolt.PInvoke.FixedConstraintSettings_SetAutoDetectPoint(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 1 constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L32">Jolt/Physics/Constraints/FixedConstraint.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetPoint1() => Jolt.PInvoke.FixedConstraintSettings_GetPoint1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 1 constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L32">Jolt/Physics/Constraints/FixedConstraint.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPoint1(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetPoint1(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L33">Jolt/Physics/Constraints/FixedConstraint.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisX1 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetAxisX1() => Jolt.PInvoke.FixedConstraintSettings_GetAxisX1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L33">Jolt/Physics/Constraints/FixedConstraint.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisX1 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetAxisX1(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisX1(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L34">Jolt/Physics/Constraints/FixedConstraint.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisY1 = Vec3::sAxisY()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetAxisY1() => Jolt.PInvoke.FixedConstraintSettings_GetAxisY1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L34">Jolt/Physics/Constraints/FixedConstraint.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisY1 = Vec3::sAxisY()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetAxisY1(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisY1(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 2 constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L37">Jolt/Physics/Constraints/FixedConstraint.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetPoint2() => Jolt.PInvoke.FixedConstraintSettings_GetPoint2(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Body 2 constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L37">Jolt/Physics/Constraints/FixedConstraint.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPoint2(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetPoint2(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L38">Jolt/Physics/Constraints/FixedConstraint.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisX2 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetAxisX2() => Jolt.PInvoke.FixedConstraintSettings_GetAxisX2(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L38">Jolt/Physics/Constraints/FixedConstraint.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisX2 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetAxisX2(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisX2(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L39">Jolt/Physics/Constraints/FixedConstraint.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisY2 = Vec3::sAxisY()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetAxisY2() => Jolt.PInvoke.FixedConstraintSettings_GetAxisY2(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/FixedConstraint.h#L39">Jolt/Physics/Constraints/FixedConstraint.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mAxisY2 = Vec3::sAxisY()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetAxisY2(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisY2(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(FixedConstraintSettings value) =>
|
||||
Unsafe.BitCast<FixedConstraintSettings, TwoBodyConstraintSettings>(value);
|
||||
|
||||
public static implicit operator ConstraintSettings(FixedConstraintSettings value) =>
|
||||
Unsafe.BitCast<FixedConstraintSettings, 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