//
// 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 = "VehicleEngine_Create")]
public static partial VehicleEngine VehicleEngine_Create();
[LibraryImport("jolt", EntryPoint = "VehicleEngine_Destroy")]
public static partial void VehicleEngine_Destroy(VehicleEngine self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:50
///
/// inline void ClampRPM()
///
///
///
///
/// Clamp the RPM between min and max RPM
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ClampRPM")]
public static partial void VehicleEngine_ClampRPM(VehicleEngine self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:53
///
/// float GetCurrentRPM() const
///
///
///
///
/// Current rotation speed of engine in rounds per minute
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_GetCurrentRPM")]
public static partial float VehicleEngine_GetCurrentRPM(VehicleEngine self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:56
///
/// void SetCurrentRPM(float inRPM)
///
///
///
///
/// Update rotation speed of engine in rounds per minute
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_SetCurrentRPM")]
public static partial void VehicleEngine_SetCurrentRPM(VehicleEngine self, float rPM);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:59
///
/// inline float GetAngularVelocity() const
///
///
///
///
/// Get current angular velocity of the engine in radians / second
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_GetAngularVelocity")]
public static partial float VehicleEngine_GetAngularVelocity(VehicleEngine self);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:63
///
/// float GetTorque(float inAcceleration) const
///
///
///
///
/// Get the amount of torque (N m) that the engine can supply
/// @param inAcceleration How much the gas pedal is pressed [0, 1]
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_GetTorque")]
public static partial float VehicleEngine_GetTorque(VehicleEngine self, float acceleration);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:68
///
/// void ApplyTorque(float inTorque, float inDeltaTime)
///
///
///
///
/// Apply a torque to the engine rotation speed
/// @param inTorque Torque in N m
/// @param inDeltaTime Delta time in seconds
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ApplyTorque")]
public static partial void VehicleEngine_ApplyTorque(VehicleEngine self, float torque, float deltaTime);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:72
///
/// void ApplyDamping(float inDeltaTime)
///
///
///
///
/// Update the engine RPM for damping
/// @param inDeltaTime Delta time in seconds
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ApplyDamping")]
public static partial void VehicleEngine_ApplyDamping(VehicleEngine self, float deltaTime);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:76
///
/// float ConvertRPMToAngle(float inRPM) const
///
///
///
///
/// Function that converts RPM to an angle in radians for debugging purposes
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ConvertRPMToAngle")]
public static partial float VehicleEngine_ConvertRPMToAngle(VehicleEngine self, float rPM);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:79
///
/// void DrawRPM(DebugRenderer *inRenderer, RVec3Arg inPosition, Vec3Arg inForward, Vec3Arg inUp, float inSize, float inShiftDownRPM, float inShiftUpRPM) const
///
///
///
///
/// Debug draw a RPM meter
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_DrawRPM")]
public static partial void VehicleEngine_DrawRPM(VehicleEngine self, DebugRenderer renderer, float3 position, float3 forward, float3 up, float size, float shiftDownRPM, float shiftUpRPM);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleEngine.h:83
///
/// bool AllowSleep() const
///
///
///
///
/// If the engine is idle we allow the vehicle to sleep
///
///
[LibraryImport("jolt", EntryPoint = "VehicleEngine_AllowSleep")]
public static partial Brutal.Bool8 VehicleEngine_AllowSleep(VehicleEngine self);
[LibraryImport("jolt", EntryPoint = "VehicleEngine_AsVehicleEngineSettings")]
public static partial VehicleEngineSettings VehicleEngine_AsVehicleEngineSettings(VehicleEngine self);
}
}
}