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

243 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L44">Jolt/Physics/Vehicle/MotorcycleController.h:44</see>
/// <br/>
/// <c>class MotorcycleController : public WheeledVehicleController</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Runtime controller class
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct MotorcycleController : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L50">Jolt/Physics/Vehicle/MotorcycleController.h:50</see>
/// <br/>
/// <c>MotorcycleController(const MotorcycleControllerSettings &amp;inSettings, VehicleConstraint &amp;inConstraint)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static MotorcycleController Create(MotorcycleControllerSettings settings, VehicleConstraint constraint) => Jolt.PInvoke.MotorcycleController_Create(settings, constraint);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L53">Jolt/Physics/Vehicle/MotorcycleController.h:53</see>
/// <br/>
/// <c>float GetWheelBase() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the distance between the front and back wheels
/// </para>
/// </remarks>
public float GetWheelBase() => Jolt.PInvoke.MotorcycleController_GetWheelBase(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L56">Jolt/Physics/Vehicle/MotorcycleController.h:56</see>
/// <br/>
/// <c>void EnableLeanController(bool inEnable)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Enable or disable the lean spring. This allows you to temporarily disable the lean spring to allow the
/// motorcycle to fall over.
/// </para>
/// </remarks>
public void EnableLeanController(bool enable) => Jolt.PInvoke.MotorcycleController_EnableLeanController(this, enable);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L59">Jolt/Physics/Vehicle/MotorcycleController.h:59</see>
/// <br/>
/// <c>bool IsLeanControllerEnabled() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if the lean spring is enabled.
/// </para>
/// </remarks>
public bool IsLeanControllerEnabled() => Jolt.PInvoke.MotorcycleController_IsLeanControllerEnabled(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L62">Jolt/Physics/Vehicle/MotorcycleController.h:62</see>
/// <br/>
/// <c>void EnableLeanSteeringLimit(bool inEnable)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Enable or disable the lean steering limit. When enabled (default) the steering angle is limited based on
/// the vehicle speed to prevent steering that would cause an inertial force that causes the motorcycle to
/// topple over.
/// </para>
/// </remarks>
public void EnableLeanSteeringLimit(bool enable) => Jolt.PInvoke.MotorcycleController_EnableLeanSteeringLimit(this, enable);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L63">Jolt/Physics/Vehicle/MotorcycleController.h:63</see>
/// <br/>
/// <c>bool IsLeanSteeringLimitEnabled() const</c>
/// </para>
/// </summary>
public bool IsLeanSteeringLimitEnabled() => Jolt.PInvoke.MotorcycleController_IsLeanSteeringLimitEnabled(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L66">Jolt/Physics/Vehicle/MotorcycleController.h:66</see>
/// <br/>
/// <c>void SetLeanSpringConstant(float inConstant)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Spring constant for the lean spring
/// </para>
/// </remarks>
public void SetLeanSpringConstant(float constant) => Jolt.PInvoke.MotorcycleController_SetLeanSpringConstant(this, constant);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L67">Jolt/Physics/Vehicle/MotorcycleController.h:67</see>
/// <br/>
/// <c>float GetLeanSpringConstant() const</c>
/// </para>
/// </summary>
public float GetLeanSpringConstant() => Jolt.PInvoke.MotorcycleController_GetLeanSpringConstant(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L70">Jolt/Physics/Vehicle/MotorcycleController.h:70</see>
/// <br/>
/// <c>void SetLeanSpringDamping(float inDamping)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Spring damping constant for the lean spring
/// </para>
/// </remarks>
public void SetLeanSpringDamping(float damping) => Jolt.PInvoke.MotorcycleController_SetLeanSpringDamping(this, damping);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L71">Jolt/Physics/Vehicle/MotorcycleController.h:71</see>
/// <br/>
/// <c>float GetLeanSpringDamping() const</c>
/// </para>
/// </summary>
public float GetLeanSpringDamping() => Jolt.PInvoke.MotorcycleController_GetLeanSpringDamping(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L74">Jolt/Physics/Vehicle/MotorcycleController.h:74</see>
/// <br/>
/// <c>void SetLeanSpringIntegrationCoefficient(float inCoefficient)</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 coefficient) => Jolt.PInvoke.MotorcycleController_SetLeanSpringIntegrationCoefficient(this, coefficient);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L75">Jolt/Physics/Vehicle/MotorcycleController.h:75</see>
/// <br/>
/// <c>float GetLeanSpringIntegrationCoefficient() const</c>
/// </para>
/// </summary>
public float GetLeanSpringIntegrationCoefficient() => Jolt.PInvoke.MotorcycleController_GetLeanSpringIntegrationCoefficient(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L78">Jolt/Physics/Vehicle/MotorcycleController.h:78</see>
/// <br/>
/// <c>void SetLeanSpringIntegrationCoefficientDecay(float inDecay)</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 decay) => Jolt.PInvoke.MotorcycleController_SetLeanSpringIntegrationCoefficientDecay(this, decay);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L79">Jolt/Physics/Vehicle/MotorcycleController.h:79</see>
/// <br/>
/// <c>float GetLeanSpringIntegrationCoefficientDecay() const</c>
/// </para>
/// </summary>
public float GetLeanSpringIntegrationCoefficientDecay() => Jolt.PInvoke.MotorcycleController_GetLeanSpringIntegrationCoefficientDecay(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L83">Jolt/Physics/Vehicle/MotorcycleController.h:83</see>
/// <br/>
/// <c>void SetLeanSmoothingFactor(float inFactor)</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 factor) => Jolt.PInvoke.MotorcycleController_SetLeanSmoothingFactor(this, factor);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L84">Jolt/Physics/Vehicle/MotorcycleController.h:84</see>
/// <br/>
/// <c>float GetLeanSmoothingFactor() const</c>
/// </para>
/// </summary>
public float GetLeanSmoothingFactor() => Jolt.PInvoke.MotorcycleController_GetLeanSmoothingFactor(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L87">Jolt/Physics/Vehicle/MotorcycleController.h:87</see>
/// <br/>
/// <c>virtual Ref&lt;VehicleControllerSettings&gt; GetSettings() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: VehicleController
/// </para>
/// </remarks>
public VehicleControllerSettings GetSettings() => Jolt.PInvoke.MotorcycleController_GetSettings(this);
public static implicit operator WheeledVehicleController(MotorcycleController value) => Jolt.PInvoke.MotorcycleController_AsWheeledVehicleController(value);
public static implicit operator VehicleController(MotorcycleController value) => Jolt.PInvoke.MotorcycleController_AsVehicleController(value);
public void Dispose() => Jolt.PInvoke.MotorcycleController_Destroy(this);
}
}