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

110 lines
5.9 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L72">Jolt/Physics/Vehicle/WheeledVehicleController.h:72</see>
/// <br/>
/// <c>class WheeledVehicleControllerSettings : public VehicleControllerSettings</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Settings of a vehicle with regular wheels
///
/// The properties in this controller are largely based on "Car Physics for Games" by Marco Monster.
/// See: https://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct WheeledVehicleControllerSettings : IDisposable
{
public static WheeledVehicleControllerSettings Create() => Jolt.PInvoke.WheeledVehicleControllerSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L74">Jolt/Physics/Vehicle/WheeledVehicleController.h:74</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.WheeledVehicleControllerSettings_GetRTTI(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L74">Jolt/Physics/Vehicle/WheeledVehicleController.h:74</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.WheeledVehicleControllerSettings_CastTo(this, rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L79">Jolt/Physics/Vehicle/WheeledVehicleController.h:79</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.WheeledVehicleControllerSettings_SaveBinaryState(this, stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L80">Jolt/Physics/Vehicle/WheeledVehicleController.h:80</see>
/// <br/>
/// <c>virtual void RestoreBinaryState(StreamIn &amp;inStream) override</c>
/// </para>
/// </summary>
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.WheeledVehicleControllerSettings_RestoreBinaryState(this, stream);
/// <summary>
/// <para>
/// Ratio max / min average wheel speed of each differential (measured at the clutch). When the ratio is
/// exceeded all torque gets distributed to the differential with the minimal average velocity. This allows
/// implementing a limited slip differential between differentials. 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/WheeledVehicleController.h#L85">Jolt/Physics/Vehicle/WheeledVehicleController.h:85</see>
/// <br/>
/// <c>float mDifferentialLimitedSlipRatio = 1.4f</c>
/// </para>
/// </summary>
public float GetDifferentialLimitedSlipRatio() => Jolt.PInvoke.WheeledVehicleControllerSettings_GetDifferentialLimitedSlipRatio(this);
/// <summary>
/// <para>
/// Ratio max / min average wheel speed of each differential (measured at the clutch). When the ratio is
/// exceeded all torque gets distributed to the differential with the minimal average velocity. This allows
/// implementing a limited slip differential between differentials. 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/WheeledVehicleController.h#L85">Jolt/Physics/Vehicle/WheeledVehicleController.h:85</see>
/// <br/>
/// <c>float mDifferentialLimitedSlipRatio = 1.4f</c>
/// </para>
/// </summary>
public void SetDifferentialLimitedSlipRatio(float value) => Jolt.PInvoke.WheeledVehicleControllerSettings_SetDifferentialLimitedSlipRatio(this, value);
public void AddRef() => Jolt.PInvoke.WheeledVehicleControllerSettings_AddRef(this);
public void Release() => Jolt.PInvoke.WheeledVehicleControllerSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.WheeledVehicleControllerSettings_GetRefCount(this);
public static implicit operator VehicleControllerSettings(WheeledVehicleControllerSettings value) => Jolt.PInvoke.WheeledVehicleControllerSettings_AsVehicleControllerSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}