mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
194 lines
10 KiB
C#
194 lines
10 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L26">Jolt/Physics/Vehicle/VehicleEngine.h:26</see>
|
|
/// <br/>
|
|
/// <c>VehicleEngineSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_Create")]
|
|
public static partial VehicleEngineSettings VehicleEngineSettings_Create();
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_Destroy")]
|
|
public static partial void VehicleEngineSettings_Destroy(VehicleEngineSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L29">Jolt/Physics/Vehicle/VehicleEngine.h:29</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the contents in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_SaveBinaryState")]
|
|
public static partial void VehicleEngineSettings_SaveBinaryState(VehicleEngineSettings self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L32">Jolt/Physics/Vehicle/VehicleEngine.h:32</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restores the contents in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_RestoreBinaryState")]
|
|
public static partial void VehicleEngineSettings_RestoreBinaryState(VehicleEngineSettings self, StreamIn stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of torque (Nm) that the engine can deliver
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L34">Jolt/Physics/Vehicle/VehicleEngine.h:34</see>
|
|
/// <br/>
|
|
/// <c>float mMaxTorque = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_GetMaxTorque")]
|
|
public static partial float VehicleEngineSettings_GetMaxTorque(VehicleEngineSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of torque (Nm) that the engine can deliver
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L34">Jolt/Physics/Vehicle/VehicleEngine.h:34</see>
|
|
/// <br/>
|
|
/// <c>float mMaxTorque = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_SetMaxTorque")]
|
|
public static partial void VehicleEngineSettings_SetMaxTorque(VehicleEngineSettings self, float 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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L35">Jolt/Physics/Vehicle/VehicleEngine.h:35</see>
|
|
/// <br/>
|
|
/// <c>float mMinRPM = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_GetMinRPM")]
|
|
public static partial float VehicleEngineSettings_GetMinRPM(VehicleEngineSettings self);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L35">Jolt/Physics/Vehicle/VehicleEngine.h:35</see>
|
|
/// <br/>
|
|
/// <c>float mMinRPM = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_SetMinRPM")]
|
|
public static partial void VehicleEngineSettings_SetMinRPM(VehicleEngineSettings self, float 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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L36">Jolt/Physics/Vehicle/VehicleEngine.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxRPM = 6000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_GetMaxRPM")]
|
|
public static partial float VehicleEngineSettings_GetMaxRPM(VehicleEngineSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of revolutions per minute (rpm) the engine can generate
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L36">Jolt/Physics/Vehicle/VehicleEngine.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxRPM = 6000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_SetMaxRPM")]
|
|
public static partial void VehicleEngineSettings_SetMaxRPM(VehicleEngineSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2) of the engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L38">Jolt/Physics/Vehicle/VehicleEngine.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_GetInertia")]
|
|
public static partial float VehicleEngineSettings_GetInertia(VehicleEngineSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2) of the engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L38">Jolt/Physics/Vehicle/VehicleEngine.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.5f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_SetInertia")]
|
|
public static partial void VehicleEngineSettings_SetInertia(VehicleEngineSettings self, float 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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L39">Jolt/Physics/Vehicle/VehicleEngine.h:39</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_GetAngularDamping")]
|
|
public static partial float VehicleEngineSettings_GetAngularDamping(VehicleEngineSettings self);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleEngine.h#L39">Jolt/Physics/Vehicle/VehicleEngine.h:39</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleEngineSettings_SetAngularDamping")]
|
|
public static partial void VehicleEngineSettings_SetAngularDamping(VehicleEngineSettings self, float value);
|
|
}
|
|
}
|
|
}
|