mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
228 lines
11 KiB
C#
228 lines
11 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L22">Jolt/Physics/Vehicle/VehicleTransmission.h:22</see>
|
|
/// <br/>
|
|
/// <c>class VehicleTransmissionSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Configuration for the transmission of a vehicle (gear box)
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleTransmissionSettings : IDisposable
|
|
{
|
|
public static VehicleTransmissionSettings Create() => Jolt.PInvoke.VehicleTransmissionSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L28">Jolt/Physics/Vehicle/VehicleTransmission.h:28</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the contents in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.VehicleTransmissionSettings_SaveBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L31">Jolt/Physics/Vehicle/VehicleTransmission.h:31</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restores the contents in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.VehicleTransmissionSettings_RestoreBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How to switch gears
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L33">Jolt/Physics/Vehicle/VehicleTransmission.h:33</see>
|
|
/// <br/>
|
|
/// <c>ETransmissionMode mMode = ETransmissionMode::Auto</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ETransmissionMode GetMode() => Jolt.PInvoke.VehicleTransmissionSettings_GetMode(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How to switch gears
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L33">Jolt/Physics/Vehicle/VehicleTransmission.h:33</see>
|
|
/// <br/>
|
|
/// <c>ETransmissionMode mMode = ETransmissionMode::Auto</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMode(ETransmissionMode value) => Jolt.PInvoke.VehicleTransmissionSettings_SetMode(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How long it takes to switch gears (s), only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L36">Jolt/Physics/Vehicle/VehicleTransmission.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mSwitchTime = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetSwitchTime() => Jolt.PInvoke.VehicleTransmissionSettings_GetSwitchTime(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How long it takes to switch gears (s), only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L36">Jolt/Physics/Vehicle/VehicleTransmission.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mSwitchTime = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSwitchTime(float value) => Jolt.PInvoke.VehicleTransmissionSettings_SetSwitchTime(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How long it takes to release the clutch (go to full friction), only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L37">Jolt/Physics/Vehicle/VehicleTransmission.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mClutchReleaseTime = 0.3f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetClutchReleaseTime() => Jolt.PInvoke.VehicleTransmissionSettings_GetClutchReleaseTime(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How long it takes to release the clutch (go to full friction), only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L37">Jolt/Physics/Vehicle/VehicleTransmission.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mClutchReleaseTime = 0.3f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetClutchReleaseTime(float value) => Jolt.PInvoke.VehicleTransmissionSettings_SetClutchReleaseTime(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How long to wait after releasing the clutch before another switch is attempted (s), only used in auto
|
|
/// mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L38">Jolt/Physics/Vehicle/VehicleTransmission.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mSwitchLatency = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetSwitchLatency() => Jolt.PInvoke.VehicleTransmissionSettings_GetSwitchLatency(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How long to wait after releasing the clutch before another switch is attempted (s), only used in auto
|
|
/// mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L38">Jolt/Physics/Vehicle/VehicleTransmission.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mSwitchLatency = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSwitchLatency(float value) => Jolt.PInvoke.VehicleTransmissionSettings_SetSwitchLatency(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If RPM of engine is bigger then this we will shift a gear up, only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L39">Jolt/Physics/Vehicle/VehicleTransmission.h:39</see>
|
|
/// <br/>
|
|
/// <c>float mShiftUpRPM = 4000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetShiftUpRPM() => Jolt.PInvoke.VehicleTransmissionSettings_GetShiftUpRPM(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If RPM of engine is bigger then this we will shift a gear up, only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L39">Jolt/Physics/Vehicle/VehicleTransmission.h:39</see>
|
|
/// <br/>
|
|
/// <c>float mShiftUpRPM = 4000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetShiftUpRPM(float value) => Jolt.PInvoke.VehicleTransmissionSettings_SetShiftUpRPM(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If RPM of engine is smaller then this we will shift a gear down, only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L40">Jolt/Physics/Vehicle/VehicleTransmission.h:40</see>
|
|
/// <br/>
|
|
/// <c>float mShiftDownRPM = 2000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetShiftDownRPM() => Jolt.PInvoke.VehicleTransmissionSettings_GetShiftDownRPM(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If RPM of engine is smaller then this we will shift a gear down, only used in auto mode
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L40">Jolt/Physics/Vehicle/VehicleTransmission.h:40</see>
|
|
/// <br/>
|
|
/// <c>float mShiftDownRPM = 2000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetShiftDownRPM(float value) => Jolt.PInvoke.VehicleTransmissionSettings_SetShiftDownRPM(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Strength of the clutch when fully engaged. Total torque a clutch applies is Torque = ClutchStrength *
|
|
/// (Velocity Engine - Avg Velocity Wheels At Clutch) (units: k m^2 s^-1)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L41">Jolt/Physics/Vehicle/VehicleTransmission.h:41</see>
|
|
/// <br/>
|
|
/// <c>float mClutchStrength = 10.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetClutchStrength() => Jolt.PInvoke.VehicleTransmissionSettings_GetClutchStrength(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Strength of the clutch when fully engaged. Total torque a clutch applies is Torque = ClutchStrength *
|
|
/// (Velocity Engine - Avg Velocity Wheels At Clutch) (units: k m^2 s^-1)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleTransmission.h#L41">Jolt/Physics/Vehicle/VehicleTransmission.h:41</see>
|
|
/// <br/>
|
|
/// <c>float mClutchStrength = 10.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetClutchStrength(float value) => Jolt.PInvoke.VehicleTransmissionSettings_SetClutchStrength(this, value);
|
|
public void Dispose() => Jolt.PInvoke.VehicleTransmissionSettings_Destroy(this);
|
|
}
|
|
}
|