mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
239 lines
10 KiB
C#
239 lines
10 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Generic properties for a vehicle engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L20">Jolt/Physics/Vehicle/VehicleEngine.h:20</see>
|
|
/// <br/>
|
|
/// <c>class VehicleEngineSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleEngineSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L26">Jolt/Physics/Vehicle/VehicleEngine.h:26</see>
|
|
/// <br/>
|
|
/// <c>VehicleEngineSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static VehicleEngineSettings Create() => Jolt.PInvoke.VehicleEngineSettings_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Saves the contents in binary form to inStream.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L29">Jolt/Physics/Vehicle/VehicleEngine.h:29</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SaveBinaryState(StreamOut stream) =>
|
|
Jolt.PInvoke.VehicleEngineSettings_SaveBinaryState(this, stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Restores the contents in binary form to inStream.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L32">Jolt/Physics/Vehicle/VehicleEngine.h:32</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void RestoreBinaryState(StreamIn stream) =>
|
|
Jolt.PInvoke.VehicleEngineSettings_RestoreBinaryState(this, stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of torque (Nm) that the engine can deliver
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L34">Jolt/Physics/Vehicle/VehicleEngine.h:34</see>
|
|
/// <br/>
|
|
/// <c>float mMaxTorque = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxTorque() => Jolt.PInvoke.VehicleEngineSettings_GetMaxTorque(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of torque (Nm) that the engine can deliver
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L34">Jolt/Physics/Vehicle/VehicleEngine.h:34</see>
|
|
/// <br/>
|
|
/// <c>float mMaxTorque = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxTorque(float value) => Jolt.PInvoke.VehicleEngineSettings_SetMaxTorque(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Min amount of revolutions per minute (rpm) the engine can produce without stalling
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L35">Jolt/Physics/Vehicle/VehicleEngine.h:35</see>
|
|
/// <br/>
|
|
/// <c>float mMinRPM = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMinRPM() => Jolt.PInvoke.VehicleEngineSettings_GetMinRPM(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Min amount of revolutions per minute (rpm) the engine can produce without stalling
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L35">Jolt/Physics/Vehicle/VehicleEngine.h:35</see>
|
|
/// <br/>
|
|
/// <c>float mMinRPM = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMinRPM(float value) => Jolt.PInvoke.VehicleEngineSettings_SetMinRPM(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of revolutions per minute (rpm) the engine can generate
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L36">Jolt/Physics/Vehicle/VehicleEngine.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxRPM = 6000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxRPM() => Jolt.PInvoke.VehicleEngineSettings_GetMaxRPM(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of revolutions per minute (rpm) the engine can generate
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L36">Jolt/Physics/Vehicle/VehicleEngine.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxRPM = 6000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxRPM(float value) => Jolt.PInvoke.VehicleEngineSettings_SetMaxRPM(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Y-axis: Curve that describes a ratio of the max torque the engine can produce (0 = 0, 1 = mMaxTorque).
|
|
/// X-axis: the fraction of the RPM of the engine (0 = mMinRPM, 1 = mMaxRPM)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L37">Jolt/Physics/Vehicle/VehicleEngine.h:37</see>
|
|
/// <br/>
|
|
/// <c>LinearCurve mNormalizedTorque</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public LinearCurve GetNormalizedTorque() => Jolt.PInvoke.VehicleEngineSettings_GetNormalizedTorque(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Y-axis: Curve that describes a ratio of the max torque the engine can produce (0 = 0, 1 = mMaxTorque).
|
|
/// X-axis: the fraction of the RPM of the engine (0 = mMinRPM, 1 = mMaxRPM)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L37">Jolt/Physics/Vehicle/VehicleEngine.h:37</see>
|
|
/// <br/>
|
|
/// <c>LinearCurve mNormalizedTorque</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetNormalizedTorque(LinearCurve value) =>
|
|
Jolt.PInvoke.VehicleEngineSettings_SetNormalizedTorque(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2) of the engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L38">Jolt/Physics/Vehicle/VehicleEngine.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInertia() => Jolt.PInvoke.VehicleEngineSettings_GetInertia(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2) of the engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L38">Jolt/Physics/Vehicle/VehicleEngine.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInertia(float value) => Jolt.PInvoke.VehicleEngineSettings_SetInertia(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
|
|
/// close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L39">Jolt/Physics/Vehicle/VehicleEngine.h:39</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetAngularDamping() => Jolt.PInvoke.VehicleEngineSettings_GetAngularDamping(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
|
|
/// close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleEngine.h#L39">Jolt/Physics/Vehicle/VehicleEngine.h:39</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAngularDamping(float value) => Jolt.PInvoke.VehicleEngineSettings_SetAngularDamping(this, value);
|
|
|
|
public void Dispose() => Jolt.PInvoke.VehicleEngineSettings_Destroy(this);
|
|
}
|
|
}
|