mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
175 lines
8.8 KiB
C#
175 lines
8.8 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
|
|
{
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_Create")]
|
|
public static partial VehicleEngine VehicleEngine_Create();
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_Destroy")]
|
|
public static partial void VehicleEngine_Destroy(VehicleEngine self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L50">Jolt/Physics/Vehicle/VehicleEngine.h:50</see>
|
|
/// <br/>
|
|
/// <c>inline void ClampRPM()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Clamp the RPM between min and max RPM
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ClampRPM")]
|
|
public static partial void VehicleEngine_ClampRPM(VehicleEngine self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L53">Jolt/Physics/Vehicle/VehicleEngine.h:53</see>
|
|
/// <br/>
|
|
/// <c>float GetCurrentRPM() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Current rotation speed of engine in rounds per minute
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_GetCurrentRPM")]
|
|
public static partial float VehicleEngine_GetCurrentRPM(VehicleEngine self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L56">Jolt/Physics/Vehicle/VehicleEngine.h:56</see>
|
|
/// <br/>
|
|
/// <c>void SetCurrentRPM(float inRPM)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update rotation speed of engine in rounds per minute
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_SetCurrentRPM")]
|
|
public static partial void VehicleEngine_SetCurrentRPM(VehicleEngine self, float rPM);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L59">Jolt/Physics/Vehicle/VehicleEngine.h:59</see>
|
|
/// <br/>
|
|
/// <c>inline float GetAngularVelocity() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get current angular velocity of the engine in radians / second
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_GetAngularVelocity")]
|
|
public static partial float VehicleEngine_GetAngularVelocity(VehicleEngine self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L63">Jolt/Physics/Vehicle/VehicleEngine.h:63</see>
|
|
/// <br/>
|
|
/// <c>float GetTorque(float inAcceleration) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Get the amount of torque (N m) that the engine can supply
|
|
/// @param inAcceleration How much the gas pedal is pressed [0, 1]
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_GetTorque")]
|
|
public static partial float VehicleEngine_GetTorque(VehicleEngine self, float acceleration);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L68">Jolt/Physics/Vehicle/VehicleEngine.h:68</see>
|
|
/// <br/>
|
|
/// <c>void ApplyTorque(float inTorque, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Apply a torque to the engine rotation speed
|
|
/// @param inTorque Torque in N m
|
|
/// @param inDeltaTime Delta time in seconds
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ApplyTorque")]
|
|
public static partial void VehicleEngine_ApplyTorque(VehicleEngine self, float torque, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L72">Jolt/Physics/Vehicle/VehicleEngine.h:72</see>
|
|
/// <br/>
|
|
/// <c>void ApplyDamping(float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Update the engine RPM for damping
|
|
/// @param inDeltaTime Delta time in seconds
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ApplyDamping")]
|
|
public static partial void VehicleEngine_ApplyDamping(VehicleEngine self, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L76">Jolt/Physics/Vehicle/VehicleEngine.h:76</see>
|
|
/// <br/>
|
|
/// <c>float ConvertRPMToAngle(float inRPM) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Function that converts RPM to an angle in radians for debugging purposes
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngine_ConvertRPMToAngle")]
|
|
public static partial float VehicleEngine_ConvertRPMToAngle(VehicleEngine self, float rPM);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L79">Jolt/Physics/Vehicle/VehicleEngine.h:79</see>
|
|
/// <br/>
|
|
/// <c>void DrawRPM(DebugRenderer *inRenderer, RVec3Arg inPosition, Vec3Arg inForward, Vec3Arg inUp, float inSize, float inShiftDownRPM, float inShiftUpRPM) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug draw a RPM meter
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L83">Jolt/Physics/Vehicle/VehicleEngine.h:83</see>
|
|
/// <br/>
|
|
/// <c>bool AllowSleep() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If the engine is idle we allow the vehicle to sleep
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
}
|
|
}
|
|
}
|