brutal/Brutal.Jolt/Generated/Classes/TrackedVehicleController.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

246 lines
12 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>
/// Runtime controller class for vehicle with tank tracks
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L78">Jolt/Physics/Vehicle/TrackedVehicleController.h:78</see>
/// <br/>
/// <c>class TrackedVehicleController : public VehicleController</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct TrackedVehicleController : IDisposable
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L84">Jolt/Physics/Vehicle/TrackedVehicleController.h:84</see>
/// <br/>
/// <c>TrackedVehicleController(const TrackedVehicleControllerSettings &amp;inSettings, VehicleConstraint &amp;inConstraint)</c>
/// </para>
/// </summary>
public static TrackedVehicleController Create(
TrackedVehicleControllerSettings settings,
VehicleConstraint constraint
) => Jolt.PInvoke.TrackedVehicleController_Create(settings, constraint);
/// <summary>
/// <para>
/// Set input from driver
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L91">Jolt/Physics/Vehicle/TrackedVehicleController.h:91</see>
/// <br/>
/// <c>void SetDriverInput(float inForward, float inLeftRatio, float inRightRatio, float inBrake)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Set input from driver
/// @param inForward Value between -1 and 1 for auto transmission and value between 0 and 1 indicating desired driving direction and amount the gas pedal is pressed
/// @param inLeftRatio Value between -1 and 1 indicating an extra multiplier to the rotation rate of the left track (used for steering)
/// @param inRightRatio Value between -1 and 1 indicating an extra multiplier to the rotation rate of the right track (used for steering)
/// @param inBrake Value between 0 and 1 indicating how strong the brake pedal is pressed
/// </code>
/// </remarks>
public void SetDriverInput(float forward, float leftRatio, float rightRatio, float brake) =>
Jolt.PInvoke.TrackedVehicleController_SetDriverInput(this, forward, leftRatio, rightRatio, brake);
/// <summary>
/// <para>
/// Value between -1 and 1 for auto transmission and value between 0 and 1 indicating desired driving
/// direction and amount the gas pedal is pressed
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L94">Jolt/Physics/Vehicle/TrackedVehicleController.h:94</see>
/// <br/>
/// <c>void SetForwardInput(float inForward)</c>
/// </para>
/// </summary>
public void SetForwardInput(float forward) =>
Jolt.PInvoke.TrackedVehicleController_SetForwardInput(this, forward);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L95">Jolt/Physics/Vehicle/TrackedVehicleController.h:95</see>
/// <br/>
/// <c>float GetForwardInput() const</c>
/// </para>
/// </summary>
public float GetForwardInput() => Jolt.PInvoke.TrackedVehicleController_GetForwardInput(this);
/// <summary>
/// <para>
/// Value between -1 and 1 indicating an extra multiplier to the rotation rate of the left track (used for
/// steering)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L98">Jolt/Physics/Vehicle/TrackedVehicleController.h:98</see>
/// <br/>
/// <c>void SetLeftRatio(float inLeftRatio)</c>
/// </para>
/// </summary>
public void SetLeftRatio(float leftRatio) =>
Jolt.PInvoke.TrackedVehicleController_SetLeftRatio(this, leftRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L99">Jolt/Physics/Vehicle/TrackedVehicleController.h:99</see>
/// <br/>
/// <c>float GetLeftRatio() const</c>
/// </para>
/// </summary>
public float GetLeftRatio() => Jolt.PInvoke.TrackedVehicleController_GetLeftRatio(this);
/// <summary>
/// <para>
/// Value between -1 and 1 indicating an extra multiplier to the rotation rate of the right track (used for
/// steering)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L102">Jolt/Physics/Vehicle/TrackedVehicleController.h:102</see>
/// <br/>
/// <c>void SetRightRatio(float inRightRatio)</c>
/// </para>
/// </summary>
public void SetRightRatio(float rightRatio) =>
Jolt.PInvoke.TrackedVehicleController_SetRightRatio(this, rightRatio);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L103">Jolt/Physics/Vehicle/TrackedVehicleController.h:103</see>
/// <br/>
/// <c>float GetRightRatio() const</c>
/// </para>
/// </summary>
public float GetRightRatio() => Jolt.PInvoke.TrackedVehicleController_GetRightRatio(this);
/// <summary>
/// <para>
/// Value between 0 and 1 indicating how strong the brake pedal is pressed
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L106">Jolt/Physics/Vehicle/TrackedVehicleController.h:106</see>
/// <br/>
/// <c>void SetBrakeInput(float inBrake)</c>
/// </para>
/// </summary>
public void SetBrakeInput(float brake) => Jolt.PInvoke.TrackedVehicleController_SetBrakeInput(this, brake);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L107">Jolt/Physics/Vehicle/TrackedVehicleController.h:107</see>
/// <br/>
/// <c>float GetBrakeInput() const</c>
/// </para>
/// </summary>
public float GetBrakeInput() => Jolt.PInvoke.TrackedVehicleController_GetBrakeInput(this);
/// <summary>
/// <para>
/// Get current engine state
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L110">Jolt/Physics/Vehicle/TrackedVehicleController.h:110</see>
/// <br/>
/// <c>const VehicleEngine &amp; GetEngine() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public VehicleEngine GetEngine() => Jolt.PInvoke.TrackedVehicleController_GetEngine(this);
/// <summary>
/// <para>
/// Get current transmission state
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L116">Jolt/Physics/Vehicle/TrackedVehicleController.h:116</see>
/// <br/>
/// <c>const VehicleTransmission &amp; GetTransmission() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public VehicleTransmission GetTransmission() => Jolt.PInvoke.TrackedVehicleController_GetTransmission(this);
/// <summary>
/// <para>
/// Get the tracks this vehicle has
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L122">Jolt/Physics/Vehicle/TrackedVehicleController.h:122</see>
/// <br/>
/// <c>const VehicleTracks &amp; GetTracks() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// One of the 2 elements, by index. The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public VehicleTrack GetTracks(uint index)
{
if (index >= 2)
throw new ArgumentOutOfRangeException(nameof(index), index, "Expected an index below 2.");
return Jolt.PInvoke.TrackedVehicleController_GetTracks(this, index);
}
/// <summary>
/// <para>
/// Debug drawing of RPM meter
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L129">Jolt/Physics/Vehicle/TrackedVehicleController.h:129</see>
/// <br/>
/// <c>void SetRPMMeter(Vec3Arg inPosition, float inSize)</c>
/// </para>
/// </summary>
public void SetRPMMeter(float3 position, float size) =>
Jolt.PInvoke.TrackedVehicleController_SetRPMMeter(this, position, size);
/// <inheritdoc cref="VehicleController.GetSettings()"/>
public VehicleControllerSettings GetSettings() => ((VehicleController)this).GetSettings();
public static implicit operator VehicleController(TrackedVehicleController value) =>
Unsafe.BitCast<TrackedVehicleController, VehicleController>(value);
public void Dispose() => Jolt.PInvoke.TrackedVehicleController_Destroy(this);
/// <inheritdoc cref="VehicleController.GetConstraint()"/>
public VehicleConstraint GetConstraint() => ((VehicleController)this).GetConstraint();
}
}