This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,78 @@
// <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
{
/// <summary>
/// <para>
/// Saves the contents in binary form to inStream.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleDifferential.h#L19">Jolt/Physics/Vehicle/VehicleDifferential.h:19</see>
/// <br/>
/// <c>void SaveBinaryState(StreamOut &amp;inStream) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SaveBinaryState")]
public static partial void VehicleDifferentialSettings_SaveBinaryState(
ref VehicleDifferentialSettings self,
StreamOut stream
);
/// <summary>
/// <para>
/// Restores the contents in binary form to inStream.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleDifferential.h#L22">Jolt/Physics/Vehicle/VehicleDifferential.h:22</see>
/// <br/>
/// <c>void RestoreBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_RestoreBinaryState")]
public static partial void VehicleDifferentialSettings_RestoreBinaryState(
ref VehicleDifferentialSettings self,
StreamIn stream
);
/// <summary>
/// <para>
/// Calculate the torque ratio between left and right wheel
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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(
ref VehicleDifferentialSettings self,
float leftAngularVelocity,
float rightAngularVelocity,
out float leftTorqueFraction,
out float rightTorqueFraction
);
}
}
}