mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38: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,221 @@
|
|||
// <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/RackAndPinionConstraint.h#L13">Jolt/Physics/Constraints/RackAndPinionConstraint.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class RackAndPinionConstraintSettings final : public TwoBodyConstraintSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Rack and pinion constraint (slider & gear) settings
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct RackAndPinionConstraintSettings : IDisposable
|
||||
{
|
||||
public static RackAndPinionConstraintSettings Create() => Jolt.PInvoke.RackAndPinionConstraintSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L15">Jolt/Physics/Constraints/RackAndPinionConstraint.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.RackAndPinionConstraintSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L15">Jolt/Physics/Constraints/RackAndPinionConstraint.h:15</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.RackAndPinionConstraintSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L19">Jolt/Physics/Constraints/RackAndPinionConstraint.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.RackAndPinionConstraintSettings_SaveBinaryState(this, stream);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L23">Jolt/Physics/Constraints/RackAndPinionConstraint.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Create an instance of this constraint.
|
||||
/// Body1 should be the pinion (gear) and body 2 the rack (slider).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public TwoBodyConstraint Create(Body body1, Body body2) => Jolt.PInvoke.RackAndPinionConstraintSettings_Create_2(this, body1, body2);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L30">Jolt/Physics/Constraints/RackAndPinionConstraint.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>void SetRatio(int inNumTeethRack, float inRackLength, int inNumTeethPinion)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Defines the ratio between the rotation of the pinion and the translation of the rack.
|
||||
/// The ratio is defined as: PinionRotation(t) = ratio * RackTranslation(t)
|
||||
/// @param inNumTeethRack Number of teeth that the rack has
|
||||
/// @param inRackLength Length of the rack
|
||||
/// @param inNumTeethPinion Number of teeth the pinion has
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void SetRatio(int numTeethRack, float rackLength, int numTeethPinion) => Jolt.PInvoke.RackAndPinionConstraintSettings_SetRatio(this, numTeethRack, rackLength, numTeethPinion);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L36">Jolt/Physics/Constraints/RackAndPinionConstraint.h:36</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.RackAndPinionConstraintSettings_GetSpace(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L36">Jolt/Physics/Constraints/RackAndPinionConstraint.h:36</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.RackAndPinionConstraintSettings_SetSpace(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L39">Jolt/Physics/Constraints/RackAndPinionConstraint.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 1 (pinion) constraint reference frame (space determined by mSpace).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetHingeAxis() => Jolt.PInvoke.RackAndPinionConstraintSettings_GetHingeAxis(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L39">Jolt/Physics/Constraints/RackAndPinionConstraint.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mHingeAxis = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 1 (pinion) constraint reference frame (space determined by mSpace).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetHingeAxis(float3 value) => Jolt.PInvoke.RackAndPinionConstraintSettings_SetHingeAxis(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L42">Jolt/Physics/Constraints/RackAndPinionConstraint.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mSliderAxis = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 2 (rack) constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetSliderAxis() => Jolt.PInvoke.RackAndPinionConstraintSettings_GetSliderAxis(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L42">Jolt/Physics/Constraints/RackAndPinionConstraint.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mSliderAxis = Vec3::sAxisX()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Body 2 (rack) constraint reference frame (space determined by mSpace)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetSliderAxis(float3 value) => Jolt.PInvoke.RackAndPinionConstraintSettings_SetSliderAxis(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L45">Jolt/Physics/Constraints/RackAndPinionConstraint.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>float mRatio = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Ratio between the rack and pinion, see SetRatio.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetRatio() => Jolt.PInvoke.RackAndPinionConstraintSettings_GetRatio(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/RackAndPinionConstraint.h#L45">Jolt/Physics/Constraints/RackAndPinionConstraint.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>float mRatio = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Ratio between the rack and pinion, see SetRatio.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetRatio(float value) => Jolt.PInvoke.RackAndPinionConstraintSettings_SetRatio_2(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.RackAndPinionConstraintSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.RackAndPinionConstraintSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.RackAndPinionConstraintSettings_GetRefCount(this);
|
||||
public static implicit operator TwoBodyConstraintSettings(RackAndPinionConstraintSettings value) => Jolt.PInvoke.RackAndPinionConstraintSettings_AsTwoBodyConstraintSettings(value);
|
||||
public static implicit operator ConstraintSettings(RackAndPinionConstraintSettings value) => Jolt.PInvoke.RackAndPinionConstraintSettings_AsConstraintSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue