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

253 lines
13 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/MotorcycleController.h#L13">Jolt/Physics/Vehicle/MotorcycleController.h:13</see>
/// <br/>
/// <c>class MotorcycleControllerSettings : public WheeledVehicleControllerSettings</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Settings of a two wheeled motorcycle (adds a spring to balance the motorcycle)
/// Note: The motor cycle controller is still in development and may need a lot of tweaks/hacks to work properly!
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct MotorcycleControllerSettings : IDisposable
{
public static MotorcycleControllerSettings Create() => Jolt.PInvoke.MotorcycleControllerSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L15">Jolt/Physics/Vehicle/MotorcycleController.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.MotorcycleControllerSettings_GetRTTI(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L15">Jolt/Physics/Vehicle/MotorcycleController.h:15</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.MotorcycleControllerSettings_CastTo(this, rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L20">Jolt/Physics/Vehicle/MotorcycleController.h:20</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.MotorcycleControllerSettings_SaveBinaryState(this, stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L21">Jolt/Physics/Vehicle/MotorcycleController.h:21</see>
/// <br/>
/// <c>virtual void RestoreBinaryState(StreamIn &amp;inStream) override</c>
/// </para>
/// </summary>
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.MotorcycleControllerSettings_RestoreBinaryState(this, stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L24">Jolt/Physics/Vehicle/MotorcycleController.h:24</see>
/// <br/>
/// <c>float mMaxLeanAngle = DegreesToRadians(45.0f)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// How far we're willing to make the bike lean over in turns (in radians)
/// </para>
/// </remarks>
public float GetMaxLeanAngle() => Jolt.PInvoke.MotorcycleControllerSettings_GetMaxLeanAngle(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L24">Jolt/Physics/Vehicle/MotorcycleController.h:24</see>
/// <br/>
/// <c>float mMaxLeanAngle = DegreesToRadians(45.0f)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// How far we're willing to make the bike lean over in turns (in radians)
/// </para>
/// </remarks>
public void SetMaxLeanAngle(float value) => Jolt.PInvoke.MotorcycleControllerSettings_SetMaxLeanAngle(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L27">Jolt/Physics/Vehicle/MotorcycleController.h:27</see>
/// <br/>
/// <c>float mLeanSpringConstant = 5000.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Spring constant for the lean spring
/// </para>
/// </remarks>
public float GetLeanSpringConstant() => Jolt.PInvoke.MotorcycleControllerSettings_GetLeanSpringConstant(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L27">Jolt/Physics/Vehicle/MotorcycleController.h:27</see>
/// <br/>
/// <c>float mLeanSpringConstant = 5000.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Spring constant for the lean spring
/// </para>
/// </remarks>
public void SetLeanSpringConstant(float value) => Jolt.PInvoke.MotorcycleControllerSettings_SetLeanSpringConstant(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L30">Jolt/Physics/Vehicle/MotorcycleController.h:30</see>
/// <br/>
/// <c>float mLeanSpringDamping = 1000.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Spring damping constant for the lean spring
/// </para>
/// </remarks>
public float GetLeanSpringDamping() => Jolt.PInvoke.MotorcycleControllerSettings_GetLeanSpringDamping(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L30">Jolt/Physics/Vehicle/MotorcycleController.h:30</see>
/// <br/>
/// <c>float mLeanSpringDamping = 1000.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Spring damping constant for the lean spring
/// </para>
/// </remarks>
public void SetLeanSpringDamping(float value) => Jolt.PInvoke.MotorcycleControllerSettings_SetLeanSpringDamping(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L33">Jolt/Physics/Vehicle/MotorcycleController.h:33</see>
/// <br/>
/// <c>float mLeanSpringIntegrationCoefficient = 0.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The lean spring applies an additional force equal to this coefficient * Integral(delta angle, 0, t),
/// this effectively makes the lean spring a PID controller
/// </para>
/// </remarks>
public float GetLeanSpringIntegrationCoefficient() => Jolt.PInvoke.MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficient(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L33">Jolt/Physics/Vehicle/MotorcycleController.h:33</see>
/// <br/>
/// <c>float mLeanSpringIntegrationCoefficient = 0.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The lean spring applies an additional force equal to this coefficient * Integral(delta angle, 0, t),
/// this effectively makes the lean spring a PID controller
/// </para>
/// </remarks>
public void SetLeanSpringIntegrationCoefficient(float value) => Jolt.PInvoke.MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficient(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L36">Jolt/Physics/Vehicle/MotorcycleController.h:36</see>
/// <br/>
/// <c>float mLeanSpringIntegrationCoefficientDecay = 4.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// How much to decay the angle integral when the wheels are not touching the floor: new_value = e^(-decay *
/// t) * initial_value
/// </para>
/// </remarks>
public float GetLeanSpringIntegrationCoefficientDecay() => Jolt.PInvoke.MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficientDecay(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L36">Jolt/Physics/Vehicle/MotorcycleController.h:36</see>
/// <br/>
/// <c>float mLeanSpringIntegrationCoefficientDecay = 4.0f</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// How much to decay the angle integral when the wheels are not touching the floor: new_value = e^(-decay *
/// t) * initial_value
/// </para>
/// </remarks>
public void SetLeanSpringIntegrationCoefficientDecay(float value) => Jolt.PInvoke.MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficientDecay(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L40">Jolt/Physics/Vehicle/MotorcycleController.h:40</see>
/// <br/>
/// <c>float mLeanSmoothingFactor = 0.8f</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// How much to smooth the lean angle (0 = no smoothing, 1 = lean angle never changes)
/// Note that this is frame rate dependent because the formula is: smoothing_factor * previous + (1 - smoothing_factor) * current
/// </code>
/// </remarks>
public float GetLeanSmoothingFactor() => Jolt.PInvoke.MotorcycleControllerSettings_GetLeanSmoothingFactor(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L40">Jolt/Physics/Vehicle/MotorcycleController.h:40</see>
/// <br/>
/// <c>float mLeanSmoothingFactor = 0.8f</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// How much to smooth the lean angle (0 = no smoothing, 1 = lean angle never changes)
/// Note that this is frame rate dependent because the formula is: smoothing_factor * previous + (1 - smoothing_factor) * current
/// </code>
/// </remarks>
public void SetLeanSmoothingFactor(float value) => Jolt.PInvoke.MotorcycleControllerSettings_SetLeanSmoothingFactor(this, value);
public void AddRef() => Jolt.PInvoke.MotorcycleControllerSettings_AddRef(this);
public void Release() => Jolt.PInvoke.MotorcycleControllerSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.MotorcycleControllerSettings_GetRefCount(this);
public static implicit operator WheeledVehicleControllerSettings(MotorcycleControllerSettings value) => Jolt.PInvoke.MotorcycleControllerSettings_AsWheeledVehicleControllerSettings(value);
public static implicit operator VehicleControllerSettings(MotorcycleControllerSettings value) => Jolt.PInvoke.MotorcycleControllerSettings_AsVehicleControllerSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}