brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/VehicleDifferentialSettings.gen.cs
2026-10-15 14:12:02 +13:00

236 lines
14 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 = "VehicleDifferentialSettings_Create")]
public static partial VehicleDifferentialSettings VehicleDifferentialSettings_Create();
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_Destroy")]
public static partial void VehicleDifferentialSettings_Destroy(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L19">Jolt/Physics/Vehicle/VehicleDifferential.h:19</see>
/// <br/>
/// <c>void SaveBinaryState(StreamOut &amp;inStream) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Saves the contents in binary form to inStream.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SaveBinaryState")]
public static partial void VehicleDifferentialSettings_SaveBinaryState(VehicleDifferentialSettings self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L22">Jolt/Physics/Vehicle/VehicleDifferential.h:22</see>
/// <br/>
/// <c>void RestoreBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Restores the contents in binary form to inStream.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_RestoreBinaryState")]
public static partial void VehicleDifferentialSettings_RestoreBinaryState(VehicleDifferentialSettings self, StreamIn stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L29">Jolt/Physics/Vehicle/VehicleDifferential.h:29</see>
/// <br/>
/// <c>void CalculateTorqueRatio(float inLeftAngularVelocity, float inRightAngularVelocity, float &amp;outLeftTorqueFraction, float &amp;outRightTorqueFraction) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Calculate the torque ratio between left and right wheel
/// @param inLeftAngularVelocity Angular velocity of left wheel (rad / s)
/// @param inRightAngularVelocity Angular velocity of right wheel (rad / s)
/// @param outLeftTorqueFraction Fraction of torque that should go to the left wheel
/// @param outRightTorqueFraction Fraction of torque that should go to the right wheel
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_CalculateTorqueRatio")]
public static partial void VehicleDifferentialSettings_CalculateTorqueRatio(VehicleDifferentialSettings self, float leftAngularVelocity, float rightAngularVelocity, out float leftTorqueFraction, out float rightTorqueFraction);
/// <summary>
/// <para>
/// Index (in mWheels) that represents the left wheel of this differential (can be -1 to indicate no
/// wheel)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L31">Jolt/Physics/Vehicle/VehicleDifferential.h:31</see>
/// <br/>
/// <c>int mLeftWheel = -1</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_GetLeftWheel")]
public static partial int VehicleDifferentialSettings_GetLeftWheel(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// Index (in mWheels) that represents the left wheel of this differential (can be -1 to indicate no
/// wheel)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L31">Jolt/Physics/Vehicle/VehicleDifferential.h:31</see>
/// <br/>
/// <c>int mLeftWheel = -1</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SetLeftWheel")]
public static partial void VehicleDifferentialSettings_SetLeftWheel(VehicleDifferentialSettings self, int value);
/// <summary>
/// <para>
/// Index (in mWheels) that represents the right wheel of this differential (can be -1 to indicate no
/// wheel)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L32">Jolt/Physics/Vehicle/VehicleDifferential.h:32</see>
/// <br/>
/// <c>int mRightWheel = -1</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_GetRightWheel")]
public static partial int VehicleDifferentialSettings_GetRightWheel(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// Index (in mWheels) that represents the right wheel of this differential (can be -1 to indicate no
/// wheel)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L32">Jolt/Physics/Vehicle/VehicleDifferential.h:32</see>
/// <br/>
/// <c>int mRightWheel = -1</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SetRightWheel")]
public static partial void VehicleDifferentialSettings_SetRightWheel(VehicleDifferentialSettings self, int value);
/// <summary>
/// <para>
/// Ratio between rotation speed of gear box and wheels
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L33">Jolt/Physics/Vehicle/VehicleDifferential.h:33</see>
/// <br/>
/// <c>float mDifferentialRatio = 3.42f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_GetDifferentialRatio")]
public static partial float VehicleDifferentialSettings_GetDifferentialRatio(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// Ratio between rotation speed of gear box and wheels
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L33">Jolt/Physics/Vehicle/VehicleDifferential.h:33</see>
/// <br/>
/// <c>float mDifferentialRatio = 3.42f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SetDifferentialRatio")]
public static partial void VehicleDifferentialSettings_SetDifferentialRatio(VehicleDifferentialSettings self, float value);
/// <summary>
/// <para>
/// Defines how the engine torque is split across the left and right wheel (0 = left, 0.5 = center, 1 =
/// right)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L34">Jolt/Physics/Vehicle/VehicleDifferential.h:34</see>
/// <br/>
/// <c>float mLeftRightSplit = 0.5f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_GetLeftRightSplit")]
public static partial float VehicleDifferentialSettings_GetLeftRightSplit(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// Defines how the engine torque is split across the left and right wheel (0 = left, 0.5 = center, 1 =
/// right)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L34">Jolt/Physics/Vehicle/VehicleDifferential.h:34</see>
/// <br/>
/// <c>float mLeftRightSplit = 0.5f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SetLeftRightSplit")]
public static partial void VehicleDifferentialSettings_SetLeftRightSplit(VehicleDifferentialSettings self, float value);
/// <summary>
/// <para>
/// Ratio max / min wheel speed. When this ratio is exceeded, all torque gets distributed to the slowest
/// moving wheel. This allows implementing a limited slip differential. Set to FLT_MAX for an open
/// differential. Value should be &gt; 1.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L35">Jolt/Physics/Vehicle/VehicleDifferential.h:35</see>
/// <br/>
/// <c>float mLimitedSlipRatio = 1.4f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_GetLimitedSlipRatio")]
public static partial float VehicleDifferentialSettings_GetLimitedSlipRatio(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// Ratio max / min wheel speed. When this ratio is exceeded, all torque gets distributed to the slowest
/// moving wheel. This allows implementing a limited slip differential. Set to FLT_MAX for an open
/// differential. Value should be &gt; 1.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L35">Jolt/Physics/Vehicle/VehicleDifferential.h:35</see>
/// <br/>
/// <c>float mLimitedSlipRatio = 1.4f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SetLimitedSlipRatio")]
public static partial void VehicleDifferentialSettings_SetLimitedSlipRatio(VehicleDifferentialSettings self, float value);
/// <summary>
/// <para>
/// How much of the engines torque is applied to this differential (0 = none, 1 = full), make sure the
/// sum of all differentials is 1.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L36">Jolt/Physics/Vehicle/VehicleDifferential.h:36</see>
/// <br/>
/// <c>float mEngineTorqueRatio = 1.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_GetEngineTorqueRatio")]
public static partial float VehicleDifferentialSettings_GetEngineTorqueRatio(VehicleDifferentialSettings self);
/// <summary>
/// <para>
/// How much of the engines torque is applied to this differential (0 = none, 1 = full), make sure the
/// sum of all differentials is 1.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleDifferential.h#L36">Jolt/Physics/Vehicle/VehicleDifferential.h:36</see>
/// <br/>
/// <c>float mEngineTorqueRatio = 1.0f</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SetEngineTorqueRatio")]
public static partial void VehicleDifferentialSettings_SetEngineTorqueRatio(VehicleDifferentialSettings self, float value);
}
}
}