mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
258 lines
15 KiB
C#
258 lines
15 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 = "MotorcycleControllerSettings_Create")]
|
|
public static partial MotorcycleControllerSettings MotorcycleControllerSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L15">Jolt/Physics/Vehicle/MotorcycleController.h:15</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetRTTI")]
|
|
public static partial RTTI MotorcycleControllerSettings_GetRTTI(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L15">Jolt/Physics/Vehicle/MotorcycleController.h:15</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_CastTo")]
|
|
public static partial void* MotorcycleControllerSettings_CastTo(MotorcycleControllerSettings self, RTTI rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L20">Jolt/Physics/Vehicle/MotorcycleController.h:20</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SaveBinaryState")]
|
|
public static partial void MotorcycleControllerSettings_SaveBinaryState(MotorcycleControllerSettings self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L21">Jolt/Physics/Vehicle/MotorcycleController.h:21</see>
|
|
/// <br/>
|
|
/// <c>virtual void RestoreBinaryState(StreamIn &inStream) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_RestoreBinaryState")]
|
|
public static partial void MotorcycleControllerSettings_RestoreBinaryState(MotorcycleControllerSettings self, StreamIn stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L24">Jolt/Physics/Vehicle/MotorcycleController.h:24</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLeanAngle = DegreesToRadians(45.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How far we're willing to make the bike lean over in turns (in radians)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetMaxLeanAngle")]
|
|
public static partial float MotorcycleControllerSettings_GetMaxLeanAngle(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L24">Jolt/Physics/Vehicle/MotorcycleController.h:24</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLeanAngle = DegreesToRadians(45.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How far we're willing to make the bike lean over in turns (in radians)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetMaxLeanAngle")]
|
|
public static partial void MotorcycleControllerSettings_SetMaxLeanAngle(MotorcycleControllerSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L27">Jolt/Physics/Vehicle/MotorcycleController.h:27</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringConstant = 5000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Spring constant for the lean spring
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSpringConstant")]
|
|
public static partial float MotorcycleControllerSettings_GetLeanSpringConstant(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L27">Jolt/Physics/Vehicle/MotorcycleController.h:27</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringConstant = 5000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Spring constant for the lean spring
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSpringConstant")]
|
|
public static partial void MotorcycleControllerSettings_SetLeanSpringConstant(MotorcycleControllerSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L30">Jolt/Physics/Vehicle/MotorcycleController.h:30</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringDamping = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Spring damping constant for the lean spring
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSpringDamping")]
|
|
public static partial float MotorcycleControllerSettings_GetLeanSpringDamping(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L30">Jolt/Physics/Vehicle/MotorcycleController.h:30</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringDamping = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Spring damping constant for the lean spring
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSpringDamping")]
|
|
public static partial void MotorcycleControllerSettings_SetLeanSpringDamping(MotorcycleControllerSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L33">Jolt/Physics/Vehicle/MotorcycleController.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringIntegrationCoefficient = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The lean spring applies an additional force equal to this coefficient * Integral(delta angle, 0, t),
|
|
/// this effectively makes the lean spring a PID controller
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficient")]
|
|
public static partial float MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficient(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L33">Jolt/Physics/Vehicle/MotorcycleController.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringIntegrationCoefficient = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The lean spring applies an additional force equal to this coefficient * Integral(delta angle, 0, t),
|
|
/// this effectively makes the lean spring a PID controller
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficient")]
|
|
public static partial void MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficient(MotorcycleControllerSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L36">Jolt/Physics/Vehicle/MotorcycleController.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringIntegrationCoefficientDecay = 4.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How much to decay the angle integral when the wheels are not touching the floor: new_value =
|
|
/// e^(-decay * t) * initial_value
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficientDecay")]
|
|
public static partial float MotorcycleControllerSettings_GetLeanSpringIntegrationCoefficientDecay(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L36">Jolt/Physics/Vehicle/MotorcycleController.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSpringIntegrationCoefficientDecay = 4.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How much to decay the angle integral when the wheels are not touching the floor: new_value =
|
|
/// e^(-decay * t) * initial_value
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficientDecay")]
|
|
public static partial void MotorcycleControllerSettings_SetLeanSpringIntegrationCoefficientDecay(MotorcycleControllerSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L40">Jolt/Physics/Vehicle/MotorcycleController.h:40</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSmoothingFactor = 0.8f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// How much to smooth the lean angle (0 = no smoothing, 1 = lean angle never changes)
|
|
/// Note that this is frame rate dependent because the formula is: smoothing_factor * previous + (1 - smoothing_factor) * current
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetLeanSmoothingFactor")]
|
|
public static partial float MotorcycleControllerSettings_GetLeanSmoothingFactor(MotorcycleControllerSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/MotorcycleController.h#L40">Jolt/Physics/Vehicle/MotorcycleController.h:40</see>
|
|
/// <br/>
|
|
/// <c>float mLeanSmoothingFactor = 0.8f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// How much to smooth the lean angle (0 = no smoothing, 1 = lean angle never changes)
|
|
/// Note that this is frame rate dependent because the formula is: smoothing_factor * previous + (1 - smoothing_factor) * current
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_SetLeanSmoothingFactor")]
|
|
public static partial void MotorcycleControllerSettings_SetLeanSmoothingFactor(MotorcycleControllerSettings self, float value);
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_AddRef")]
|
|
public static partial void MotorcycleControllerSettings_AddRef(MotorcycleControllerSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_Release")]
|
|
public static partial void MotorcycleControllerSettings_Release(MotorcycleControllerSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_GetRefCount")]
|
|
public static partial uint MotorcycleControllerSettings_GetRefCount(MotorcycleControllerSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_AsWheeledVehicleControllerSettings")]
|
|
public static partial WheeledVehicleControllerSettings MotorcycleControllerSettings_AsWheeledVehicleControllerSettings(MotorcycleControllerSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "MotorcycleControllerSettings_AsVehicleControllerSettings")]
|
|
public static partial VehicleControllerSettings MotorcycleControllerSettings_AsVehicleControllerSettings(MotorcycleControllerSettings self);
|
|
}
|
|
}
|
|
}
|