// // 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 = "VehicleTransmission_Create")] public static partial VehicleTransmission VehicleTransmission_Create(); [LibraryImport("jolt", EntryPoint = "VehicleTransmission_Destroy")] public static partial void VehicleTransmission_Destroy(VehicleTransmission self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:51 ///
/// void Set(int inCurrentGear, float inClutchFriction) ///
///
/// /// /// Set input from driver regarding the transmission (only relevant when transmission is set to manual mode) /// @param inCurrentGear Current gear, -1 = reverse, 0 = neutral, 1 = 1st gear etc. /// @param inClutchFriction Value between 0 and 1 indicating how much friction the clutch gives (0 = no friction, 1 = full friction) /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_Set")] public static partial void VehicleTransmission_Set(VehicleTransmission self, int currentGear, float clutchFriction); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:58 ///
/// void Update(float inDeltaTime, float inCurrentRPM, float inForwardInput, bool inCanShiftUp) ///
///
/// /// /// Update the current gear and clutch friction if the transmission is in auto mode /// @param inDeltaTime Time step delta time in s /// @param inCurrentRPM Current RPM for engine /// @param inForwardInput Hint if the user wants to drive forward (> 0) or backwards (< 0) /// @param inCanShiftUp Indicates if we want to allow the transmission to shift up (e.g. pass false if wheels are slipping) /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_Update")] public static partial void VehicleTransmission_Update(VehicleTransmission self, float deltaTime, float currentRPM, float forwardInput, Brutal.Bool8 canShiftUp); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:61 ///
/// int GetCurrentGear() const ///
///
/// /// /// Current gear, -1 = reverse, 0 = neutral, 1 = 1st gear etc. /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_GetCurrentGear")] public static partial int VehicleTransmission_GetCurrentGear(VehicleTransmission self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:64 ///
/// float GetClutchFriction() const ///
///
/// /// /// Value between 0 and 1 indicating how much friction the clutch gives (0 = no friction, 1 = full /// friction) /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_GetClutchFriction")] public static partial float VehicleTransmission_GetClutchFriction(VehicleTransmission self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:67 ///
/// bool IsSwitchingGear() const ///
///
/// /// /// If the auto box is currently switching gears /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_IsSwitchingGear")] public static partial Brutal.Bool8 VehicleTransmission_IsSwitchingGear(VehicleTransmission self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:70 ///
/// float GetCurrentRatio() const ///
///
/// /// /// Return the transmission ratio based on the current gear (ratio between engine and differential) /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_GetCurrentRatio")] public static partial float VehicleTransmission_GetCurrentRatio(VehicleTransmission self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleTransmission.h:73 ///
/// bool AllowSleep() const ///
///
/// /// /// Only allow sleeping when the transmission is idle /// /// [LibraryImport("jolt", EntryPoint = "VehicleTransmission_AllowSleep")] public static partial Brutal.Bool8 VehicleTransmission_AllowSleep(VehicleTransmission self); [LibraryImport("jolt", EntryPoint = "VehicleTransmission_AsVehicleTransmissionSettings")] public static partial VehicleTransmissionSettings VehicleTransmission_AsVehicleTransmissionSettings(VehicleTransmission self); } } }