mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28: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,219 @@
|
|||
// <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/GearConstraint.h#L13">Jolt/Physics/Constraints/GearConstraint.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class GearConstraintSettings final : public TwoBodyConstraintSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Gear constraint settings
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct GearConstraintSettings : IDisposable
|
||||
{
|
||||
public static GearConstraintSettings Create() => Jolt.PInvoke.GearConstraintSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L15">Jolt/Physics/Constraints/GearConstraint.h:15</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.GearConstraintSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L15">Jolt/Physics/Constraints/GearConstraint.h:15</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.GearConstraintSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L19">Jolt/Physics/Constraints/GearConstraint.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See: ConstraintSettings::SaveBinaryState
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.GearConstraintSettings_SaveBinaryState(this, stream);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L22">Jolt/Physics/Constraints/GearConstraint.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Create an instance of this constraint.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public TwoBodyConstraint Create(Body body1, Body body2) => Jolt.PInvoke.GearConstraintSettings_Create_2(this, body1, body2);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L34">Jolt/Physics/Constraints/GearConstraint.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
||||
/// space
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public EConstraintSpace GetSpace() => Jolt.PInvoke.GearConstraintSettings_GetSpace(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L34">Jolt/Physics/Constraints/GearConstraint.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
||||
/// space
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetSpace(EConstraintSpace value) => Jolt.PInvoke.GearConstraintSettings_SetSpace(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L37">Jolt/Physics/Constraints/GearConstraint.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis1 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 1 constraint reference frame (space determined by mSpace).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetHingeAxis1() => Jolt.PInvoke.GearConstraintSettings_GetHingeAxis1(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L37">Jolt/Physics/Constraints/GearConstraint.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis1 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 1 constraint reference frame (space determined by mSpace).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetHingeAxis1(float3 value) => Jolt.PInvoke.GearConstraintSettings_SetHingeAxis1(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L40">Jolt/Physics/Constraints/GearConstraint.h:40</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis2 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 2 constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetHingeAxis2() => Jolt.PInvoke.GearConstraintSettings_GetHingeAxis2(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L40">Jolt/Physics/Constraints/GearConstraint.h:40</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis2 = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 2 constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetHingeAxis2(float3 value) => Jolt.PInvoke.GearConstraintSettings_SetHingeAxis2(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L43">Jolt/Physics/Constraints/GearConstraint.h:43</see>
|
||||
/// <br/>
|
||||
/// <c>float mRatio = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Ratio between both gears, see SetRatio.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetRatio() => Jolt.PInvoke.GearConstraintSettings_GetRatio(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/GearConstraint.h#L43">Jolt/Physics/Constraints/GearConstraint.h:43</see>
|
||||
/// <br/>
|
||||
/// <c>float mRatio = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Ratio between both gears, see SetRatio.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetRatio(float value) => Jolt.PInvoke.GearConstraintSettings_SetRatio_2(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.GearConstraintSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.GearConstraintSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.GearConstraintSettings_GetRefCount(this);
|
||||
public static implicit operator TwoBodyConstraintSettings(GearConstraintSettings value) => Jolt.PInvoke.GearConstraintSettings_AsTwoBodyConstraintSettings(value);
|
||||
public static implicit operator ConstraintSettings(GearConstraintSettings value) => Jolt.PInvoke.GearConstraintSettings_AsConstraintSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue