mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
226
Brutal.Jolt/Generated/Classes/GearConstraintSettings.gen.cs
Normal file
226
Brutal.Jolt/Generated/Classes/GearConstraintSettings.gen.cs
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
// <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>
|
||||
/// Gear constraint settings
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/GearConstraint.h#L13">Jolt/Physics/Constraints/GearConstraint.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class GearConstraintSettings final : public TwoBodyConstraintSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct GearConstraintSettings : IDisposable
|
||||
{
|
||||
public static GearConstraintSettings Create() => Jolt.PInvoke.GearConstraintSettings_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>
|
||||
/// Defines the ratio between the rotation of both gears The ratio is defined as: Gear1Rotation(t) = -ratio
|
||||
/// * Gear2Rotation(t)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/GearConstraint.h#L28">Jolt/Physics/Constraints/GearConstraint.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>void SetRatio(int inNumTeethGear1, int inNumTeethGear2)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Defines the ratio between the rotation of both gears
|
||||
/// The ratio is defined as: Gear1Rotation(t) = -ratio * Gear2Rotation(t)
|
||||
/// @param inNumTeethGear1 Number of teeth that body 1 has
|
||||
/// @param inNumTeethGear2 Number of teeth that body 2 has
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void SetRatio(int numTeethGear1, int numTeethGear2) =>
|
||||
Jolt.PInvoke.GearConstraintSettings_SetRatio(this, numTeethGear1, numTeethGear2);
|
||||
|
||||
/// <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/GearConstraint.h#L34">Jolt/Physics/Constraints/GearConstraint.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ConstraintSpace GetSpace() => Jolt.PInvoke.GearConstraintSettings_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/GearConstraint.h#L34">Jolt/Physics/Constraints/GearConstraint.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetSpace(ConstraintSpace value) => Jolt.PInvoke.GearConstraintSettings_SetSpace(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/GearConstraint.h#L37">Jolt/Physics/Constraints/GearConstraint.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis1 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetHingeAxis1() => Jolt.PInvoke.GearConstraintSettings_GetHingeAxis1(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/GearConstraint.h#L37">Jolt/Physics/Constraints/GearConstraint.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis1 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHingeAxis1(float3 value) => Jolt.PInvoke.GearConstraintSettings_SetHingeAxis1(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/GearConstraint.h#L40">Jolt/Physics/Constraints/GearConstraint.h:40</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis2 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetHingeAxis2() => Jolt.PInvoke.GearConstraintSettings_GetHingeAxis2(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/GearConstraint.h#L40">Jolt/Physics/Constraints/GearConstraint.h:40</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis2 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHingeAxis2(float3 value) => Jolt.PInvoke.GearConstraintSettings_SetHingeAxis2(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Ratio between both gears, see SetRatio.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/GearConstraint.h#L43">Jolt/Physics/Constraints/GearConstraint.h:43</see>
|
||||
/// <br/>
|
||||
/// <c>float mRatio = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetRatio() => Jolt.PInvoke.GearConstraintSettings_GetRatio(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Ratio between both gears, see SetRatio.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/GearConstraint.h#L43">Jolt/Physics/Constraints/GearConstraint.h:43</see>
|
||||
/// <br/>
|
||||
/// <c>float mRatio = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetRatio(float value) => Jolt.PInvoke.GearConstraintSettings_SetRatio_2(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(GearConstraintSettings value) =>
|
||||
Unsafe.BitCast<GearConstraintSettings, TwoBodyConstraintSettings>(value);
|
||||
|
||||
public static implicit operator ConstraintSettings(GearConstraintSettings value) =>
|
||||
Unsafe.BitCast<GearConstraintSettings, 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