// // 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 { [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_Create")] public static partial MotorcycleControllerSettings MotorcycleControllerSettings_Create(); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:15 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetRTTI")] public static partial RTTI MotorcycleControllerSettings_GetRTTI(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:15 ///
/// ///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_CastTo")] public static partial void* MotorcycleControllerSettings_CastTo(MotorcycleControllerSettings self, RTTI rTTI); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:20 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SaveBinaryState")] public static partial void MotorcycleControllerSettings_SaveBinaryState(MotorcycleControllerSettings self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:21 ///
/// virtual void RestoreBinaryState(StreamIn &inStream) override ///
///
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_RestoreBinaryState")] public static partial void MotorcycleControllerSettings_RestoreBinaryState(MotorcycleControllerSettings self, StreamIn stream); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:24 ///
/// float mMaxLeanAngle = DegreesToRadians(45.0f) ///
///
/// /// /// How far we're willing to make the bike lean over in turns (in radians) /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetMaxLeanAngle")] public static partial float MotorcycleControllerSettings_GetMaxLeanAngle(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:24 ///
/// float mMaxLeanAngle = DegreesToRadians(45.0f) ///
///
/// /// /// How far we're willing to make the bike lean over in turns (in radians) /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetMaxLeanAngle")] public static partial void MotorcycleControllerSettings_SetMaxLeanAngle(MotorcycleControllerSettings self, float value); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:27 ///
/// float mLeanSpringConstant = 5000.0f ///
///
/// /// /// Spring constant for the lean spring /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSpringConstant")] public static partial float MotorcycleControllerSettings_GetLeanSpringConstant(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:27 ///
/// float mLeanSpringConstant = 5000.0f ///
///
/// /// /// Spring constant for the lean spring /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSpringConstant")] public static partial void MotorcycleControllerSettings_SetLeanSpringConstant(MotorcycleControllerSettings self, float value); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:30 ///
/// float mLeanSpringDamping = 1000.0f ///
///
/// /// /// Spring damping constant for the lean spring /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSpringDamping")] public static partial float MotorcycleControllerSettings_GetLeanSpringDamping(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:30 ///
/// float mLeanSpringDamping = 1000.0f ///
///
/// /// /// Spring damping constant for the lean spring /// /// [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSpringDamping")] public static partial void MotorcycleControllerSettings_SetLeanSpringDamping(MotorcycleControllerSettings self, float value); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:33 ///
/// float mLeanSpringIntegrationCoefficient = 0.0f ///
///
/// /// /// 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 = "MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficient")] public static partial float MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficient(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:33 ///
/// float mLeanSpringIntegrationCoefficient = 0.0f ///
///
/// /// /// 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 = "MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficient")] public static partial void MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficient(MotorcycleControllerSettings self, float value); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:36 ///
/// float mLeanSpringIntegrationCoefficientDecay = 4.0f ///
///
/// /// /// 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 = "MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficientDecay")] public static partial float MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficientDecay(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:36 ///
/// float mLeanSpringIntegrationCoefficientDecay = 4.0f ///
///
/// /// /// 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 = "MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficientDecay")] public static partial void MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficientDecay(MotorcycleControllerSettings self, float value); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:40 ///
/// float mLeanSmoothingFactor = 0.8f ///
///
/// /// /// 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 = "MotorcycleControllerSettings_GetLeanSmoothingFactor")] public static partial float MotorcycleControllerSettings_GetLeanSmoothingFactor(MotorcycleControllerSettings self); /// /// /// C++: /// Jolt/Physics/Vehicle/MotorcycleController.h:40 ///
/// float mLeanSmoothingFactor = 0.8f ///
///
/// /// /// 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 = "MotorcycleControllerSettings_SetLeanSmoothingFactor")] public static partial void MotorcycleControllerSettings_SetLeanSmoothingFactor(MotorcycleControllerSettings self, float value); [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_AddRef")] public static partial void MotorcycleControllerSettings_AddRef(MotorcycleControllerSettings self); [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_Release")] public static partial void MotorcycleControllerSettings_Release(MotorcycleControllerSettings self); [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetRefCount")] public static partial uint MotorcycleControllerSettings_GetRefCount(MotorcycleControllerSettings self); [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_AsWheeledVehicleControllerSettings")] public static partial WheeledVehicleControllerSettings MotorcycleControllerSettings_AsWheeledVehicleControllerSettings(MotorcycleControllerSettings self); [LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_AsVehicleControllerSettings")] public static partial VehicleControllerSettings MotorcycleControllerSettings_AsVehicleControllerSettings(MotorcycleControllerSettings self); } } }