//
// 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
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:50
///
/// MotorcycleController(const MotorcycleControllerSettings &inSettings, VehicleConstraint &inConstraint)
///
///
///
///
/// Constructor
///
///
[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);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:53
///
/// float GetWheelBase() const
///
///
///
///
/// Get the distance between the front and back wheels
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetWheelBase")]
public static partial float MotorcycleController_GetWheelBase(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:56
///
/// void EnableLeanController(bool inEnable)
///
///
///
///
/// Enable or disable the lean spring. This allows you to temporarily disable the lean spring to allow
/// the motorcycle to fall over.
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_EnableLeanController")]
public static partial void MotorcycleController_EnableLeanController(MotorcycleController self, Brutal.Bool8 enable);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:59
///
/// bool IsLeanControllerEnabled() const
///
///
///
///
/// Check if the lean spring is enabled.
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_IsLeanControllerEnabled")]
public static partial Brutal.Bool8 MotorcycleController_IsLeanControllerEnabled(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:62
///
/// void EnableLeanSteeringLimit(bool inEnable)
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_EnableLeanSteeringLimit")]
public static partial void MotorcycleController_EnableLeanSteeringLimit(MotorcycleController self, Brutal.Bool8 enable);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:63
///
/// bool IsLeanSteeringLimitEnabled() const
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_IsLeanSteeringLimitEnabled")]
public static partial Brutal.Bool8 MotorcycleController_IsLeanSteeringLimitEnabled(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:66
///
/// void SetLeanSpringConstant(float inConstant)
///
///
///
///
/// Spring constant for the lean spring
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringConstant")]
public static partial void MotorcycleController_SetLeanSpringConstant(MotorcycleController self, float constant);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:67
///
/// float GetLeanSpringConstant() const
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringConstant")]
public static partial float MotorcycleController_GetLeanSpringConstant(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:70
///
/// void SetLeanSpringDamping(float inDamping)
///
///
///
///
/// Spring damping constant for the lean spring
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringDamping")]
public static partial void MotorcycleController_SetLeanSpringDamping(MotorcycleController self, float damping);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:71
///
/// float GetLeanSpringDamping() const
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringDamping")]
public static partial float MotorcycleController_GetLeanSpringDamping(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:74
///
/// void SetLeanSpringIntegrationCoefficient(float inCoefficient)
///
///
///
///
/// 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
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringIntegrationCoefficient")]
public static partial void MotorcycleController_SetLeanSpringIntegrationCoefficient(MotorcycleController self, float coefficient);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:75
///
/// float GetLeanSpringIntegrationCoefficient() const
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringIntegrationCoefficient")]
public static partial float MotorcycleController_GetLeanSpringIntegrationCoefficient(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:78
///
/// void SetLeanSpringIntegrationCoefficientDecay(float inDecay)
///
///
///
///
/// How much to decay the angle integral when the wheels are not touching the floor: new_value =
/// e^(-decay * t) * initial_value
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSpringIntegrationCoefficientDecay")]
public static partial void MotorcycleController_SetLeanSpringIntegrationCoefficientDecay(MotorcycleController self, float decay);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:79
///
/// float GetLeanSpringIntegrationCoefficientDecay() const
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSpringIntegrationCoefficientDecay")]
public static partial float MotorcycleController_GetLeanSpringIntegrationCoefficientDecay(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:83
///
/// void SetLeanSmoothingFactor(float inFactor)
///
///
///
///
/// 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
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_SetLeanSmoothingFactor")]
public static partial void MotorcycleController_SetLeanSmoothingFactor(MotorcycleController self, float factor);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:84
///
/// float GetLeanSmoothingFactor() const
///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleController_GetLeanSmoothingFactor")]
public static partial float MotorcycleController_GetLeanSmoothingFactor(MotorcycleController self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/MotorcycleController.h:87
///
/// virtual Ref<VehicleControllerSettings> GetSettings() const override
///
///
///
///
/// See: VehicleController
///
///
[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);
}
}
}