mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
222 lines
12 KiB
C#
222 lines
12 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
namespace Brutal.JoltApi
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_Create")]
|
|
public static partial GearConstraintSettings 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_GetRTTI")]
|
|
public static partial RTTI GearConstraintSettings_GetRTTI(GearConstraintSettings self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_CastTo")]
|
|
public static partial void* GearConstraintSettings_CastTo(GearConstraintSettings self, RTTI 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_SaveBinaryState")]
|
|
public static partial void GearConstraintSettings_SaveBinaryState(GearConstraintSettings self, StreamOut 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_Create_2")]
|
|
public static partial TwoBodyConstraint GearConstraintSettings_Create_2(GearConstraintSettings self, Body body1, Body 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_SetRatio")]
|
|
public static partial void GearConstraintSettings_SetRatio(GearConstraintSettings self, int numTeethGear1, int 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_GetSpace")]
|
|
public static partial EConstraintSpace GearConstraintSettings_GetSpace(GearConstraintSettings self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_SetSpace")]
|
|
public static partial void GearConstraintSettings_SetSpace(GearConstraintSettings self, EConstraintSpace 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_GetHingeAxis1")]
|
|
public static partial float3 GearConstraintSettings_GetHingeAxis1(GearConstraintSettings self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_SetHingeAxis1")]
|
|
public static partial void GearConstraintSettings_SetHingeAxis1(GearConstraintSettings self, float3 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_GetHingeAxis2")]
|
|
public static partial float3 GearConstraintSettings_GetHingeAxis2(GearConstraintSettings self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_SetHingeAxis2")]
|
|
public static partial void GearConstraintSettings_SetHingeAxis2(GearConstraintSettings self, float3 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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_GetRatio")]
|
|
public static partial float GearConstraintSettings_GetRatio(GearConstraintSettings self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_SetRatio_2")]
|
|
public static partial void GearConstraintSettings_SetRatio_2(GearConstraintSettings self, float value);
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_AddRef")]
|
|
public static partial void GearConstraintSettings_AddRef(GearConstraintSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_Release")]
|
|
public static partial void GearConstraintSettings_Release(GearConstraintSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_GetRefCount")]
|
|
public static partial uint GearConstraintSettings_GetRefCount(GearConstraintSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_AsTwoBodyConstraintSettings")]
|
|
public static partial TwoBodyConstraintSettings GearConstraintSettings_AsTwoBodyConstraintSettings(GearConstraintSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "GearConstraintSettings_AsConstraintSettings")]
|
|
public static partial ConstraintSettings GearConstraintSettings_AsConstraintSettings(GearConstraintSettings self);
|
|
}
|
|
}
|
|
}
|