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

252 lines
15 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
{
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_Create")]
public static partial MotorcycleController MotorcycleController_Create(MotorcycleControllerSettings settings, VehicleConstraint constraint);
[LibraryImport("jolt", EntryPoint = "MotorcycleController_Destroy")]
public static partial void MotorcycleController_Destroy(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetWheelBase")]
public static partial float MotorcycleController_GetWheelBase(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_EnableLeanController")]
public static partial void MotorcycleController_EnableLeanController(MotorcycleController self, Brutal.Bool8 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_IsLeanControllerEnabled")]
public static partial Brutal.Bool8 MotorcycleController_IsLeanControllerEnabled(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_EnableLeanSteeringLimit")]
public static partial void MotorcycleController_EnableLeanSteeringLimit(MotorcycleController self, Brutal.Bool8 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_IsLeanSteeringLimitEnabled")]
public static partial Brutal.Bool8 MotorcycleController_IsLeanSteeringLimitEnabled(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringConstant")]
public static partial void MotorcycleController_SetLeanSpringConstant(MotorcycleController self, float 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringConstant")]
public static partial float MotorcycleController_GetLeanSpringConstant(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringDamping")]
public static partial void MotorcycleController_SetLeanSpringDamping(MotorcycleController self, float 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringDamping")]
public static partial float MotorcycleController_GetLeanSpringDamping(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringIntegrationCoefficient")]
public static partial void MotorcycleController_SetLeanSpringIntegrationCoefficient(MotorcycleController self, float 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringIntegrationCoefficient")]
public static partial float MotorcycleController_GetLeanSpringIntegrationCoefficient(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringIntegrationCoefficientDecay")]
public static partial void MotorcycleController_SetLeanSpringIntegrationCoefficientDecay(MotorcycleController self, float 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringIntegrationCoefficientDecay")]
public static partial float MotorcycleController_GetLeanSpringIntegrationCoefficientDecay(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSmoothingFactor")]
public static partial void MotorcycleController_SetLeanSmoothingFactor(MotorcycleController self, float 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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSmoothingFactor")]
public static partial float MotorcycleController_GetLeanSmoothingFactor(MotorcycleController self);
/// <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>
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetSettings")]
public static partial VehicleControllerSettings MotorcycleController_GetSettings(MotorcycleController self);
[LibraryImport("jolt", EntryPoint = "MotorcycleController_AsWheeledVehicleController")]
public static partial WheeledVehicleController MotorcycleController_AsWheeledVehicleController(MotorcycleController self);
[LibraryImport("jolt", EntryPoint = "MotorcycleController_AsVehicleController")]
public static partial VehicleController MotorcycleController_AsVehicleController(MotorcycleController self);
}
}
}