//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:78
///
/// class TrackedVehicleController : public VehicleController
///
///
///
///
/// Runtime controller class for vehicle with tank tracks
///
///
[InteropHandle]
public readonly partial struct TrackedVehicleController : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:84
///
/// TrackedVehicleController(const TrackedVehicleControllerSettings &inSettings, VehicleConstraint &inConstraint)
///
///
///
///
/// Constructor
///
///
public static TrackedVehicleController Create(TrackedVehicleControllerSettings settings, VehicleConstraint constraint) => Jolt.PInvoke.TrackedVehicleController_Create(settings, constraint);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:91
///
/// void SetDriverInput(float inForward, float inLeftRatio, float inRightRatio, float inBrake)
///
///
///
///
/// 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
///
///
public void SetDriverInput(float forward, float leftRatio, float rightRatio, float brake) => Jolt.PInvoke.TrackedVehicleController_SetDriverInput(this, forward, leftRatio, rightRatio, brake);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:94
///
/// void SetForwardInput(float 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
///
///
public void SetForwardInput(float forward) => Jolt.PInvoke.TrackedVehicleController_SetForwardInput(this, forward);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:95
///
/// float GetForwardInput() const
///
///
public float GetForwardInput() => Jolt.PInvoke.TrackedVehicleController_GetForwardInput(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:98
///
/// void SetLeftRatio(float inLeftRatio)
///
///
///
///
/// Value between -1 and 1 indicating an extra multiplier to the rotation rate of the left track (used for
/// steering)
///
///
public void SetLeftRatio(float leftRatio) => Jolt.PInvoke.TrackedVehicleController_SetLeftRatio(this, leftRatio);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:99
///
/// float GetLeftRatio() const
///
///
public float GetLeftRatio() => Jolt.PInvoke.TrackedVehicleController_GetLeftRatio(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:102
///
/// void SetRightRatio(float inRightRatio)
///
///
///
///
/// Value between -1 and 1 indicating an extra multiplier to the rotation rate of the right track (used for
/// steering)
///
///
public void SetRightRatio(float rightRatio) => Jolt.PInvoke.TrackedVehicleController_SetRightRatio(this, rightRatio);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:103
///
/// float GetRightRatio() const
///
///
public float GetRightRatio() => Jolt.PInvoke.TrackedVehicleController_GetRightRatio(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:106
///
/// void SetBrakeInput(float inBrake)
///
///
///
///
/// Value between 0 and 1 indicating how strong the brake pedal is pressed
///
///
public void SetBrakeInput(float brake) => Jolt.PInvoke.TrackedVehicleController_SetBrakeInput(this, brake);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:107
///
/// float GetBrakeInput() const
///
///
public float GetBrakeInput() => Jolt.PInvoke.TrackedVehicleController_GetBrakeInput(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:110
///
/// const VehicleEngine & GetEngine() const
///
///
///
///
/// Get current engine state
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public VehicleEngine GetEngine() => Jolt.PInvoke.TrackedVehicleController_GetEngine(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:116
///
/// const VehicleTransmission & GetTransmission() const
///
///
///
///
/// Get current transmission state
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public VehicleTransmission GetTransmission() => Jolt.PInvoke.TrackedVehicleController_GetTransmission(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:129
///
/// void SetRPMMeter(Vec3Arg inPosition, float inSize)
///
///
///
///
/// Debug drawing of RPM meter
///
///
public void SetRPMMeter(float3 position, float size) => Jolt.PInvoke.TrackedVehicleController_SetRPMMeter(this, position, size);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:133
///
/// virtual Ref<VehicleControllerSettings> GetSettings() const override
///
///
///
///
/// See: VehicleController
///
///
public VehicleControllerSettings GetSettings() => Jolt.PInvoke.TrackedVehicleController_GetSettings(this);
public static implicit operator VehicleController(TrackedVehicleController value) => Jolt.PInvoke.TrackedVehicleController_AsVehicleController(value);
public void Dispose() => Jolt.PInvoke.TrackedVehicleController_Destroy(this);
}
}