mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,133 @@
|
|||
// <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 = "VehicleTransmission_Create")]
|
||||
public static partial VehicleTransmission VehicleTransmission_Create();
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_Destroy")]
|
||||
public static partial void VehicleTransmission_Destroy(VehicleTransmission self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L51">Jolt/Physics/Vehicle/VehicleTransmission.h:51</see>
|
||||
/// <br/>
|
||||
/// <c>void Set(int inCurrentGear, float inClutchFriction)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_Set")]
|
||||
public static partial void VehicleTransmission_Set(VehicleTransmission self, int currentGear, float clutchFriction);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L58">Jolt/Physics/Vehicle/VehicleTransmission.h:58</see>
|
||||
/// <br/>
|
||||
/// <c>void Update(float inDeltaTime, float inCurrentRPM, float inForwardInput, bool inCanShiftUp)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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 (&gt; 0) or backwards (&lt; 0)
|
||||
/// @param inCanShiftUp Indicates if we want to allow the transmission to shift up (e.g. pass false if wheels are slipping)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_Update")]
|
||||
public static partial void VehicleTransmission_Update(VehicleTransmission self, float deltaTime, float currentRPM, float forwardInput, Brutal.Bool8 canShiftUp);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L61">Jolt/Physics/Vehicle/VehicleTransmission.h:61</see>
|
||||
/// <br/>
|
||||
/// <c>int GetCurrentGear() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Current gear, -1 = reverse, 0 = neutral, 1 = 1st gear etc.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_GetCurrentGear")]
|
||||
public static partial int VehicleTransmission_GetCurrentGear(VehicleTransmission self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L64">Jolt/Physics/Vehicle/VehicleTransmission.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>float GetClutchFriction() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Value between 0 and 1 indicating how much friction the clutch gives (0 = no friction, 1 = full
|
||||
/// friction)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_GetClutchFriction")]
|
||||
public static partial float VehicleTransmission_GetClutchFriction(VehicleTransmission self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L67">Jolt/Physics/Vehicle/VehicleTransmission.h:67</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsSwitchingGear() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// If the auto box is currently switching gears
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_IsSwitchingGear")]
|
||||
public static partial Brutal.Bool8 VehicleTransmission_IsSwitchingGear(VehicleTransmission self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L70">Jolt/Physics/Vehicle/VehicleTransmission.h:70</see>
|
||||
/// <br/>
|
||||
/// <c>float GetCurrentRatio() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Return the transmission ratio based on the current gear (ratio between engine and differential)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "VehicleTransmission_GetCurrentRatio")]
|
||||
public static partial float VehicleTransmission_GetCurrentRatio(VehicleTransmission self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L73">Jolt/Physics/Vehicle/VehicleTransmission.h:73</see>
|
||||
/// <br/>
|
||||
/// <c>bool AllowSleep() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Only allow sleeping when the transmission is idle
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue