// // 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/WheeledVehicleController.h:89 ///
/// class WheeledVehicleController : public VehicleController ///
///
/// /// /// Runtime controller class /// /// [InteropHandle] public readonly partial struct WheeledVehicleController : IDisposable { /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:95 ///
/// WheeledVehicleController(const WheeledVehicleControllerSettings &inSettings, VehicleConstraint &inConstraint) ///
///
/// /// /// Constructor /// /// public static WheeledVehicleController Create(WheeledVehicleControllerSettings settings, VehicleConstraint constraint) => Jolt.PInvoke.WheeledVehicleController_Create(settings, constraint); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:105 ///
/// void SetDriverInput(float inForward, float inRight, float inBrake, float inHandBrake) ///
///
/// /// /// 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 inRight Value between -1 and 1 indicating desired steering angle (1 = right) /// @param inBrake Value between 0 and 1 indicating how strong the brake pedal is pressed /// @param inHandBrake Value between 0 and 1 indicating how strong the hand brake is pulled /// /// public void SetDriverInput(float forward, float right, float brake, float handBrake) => Jolt.PInvoke.WheeledVehicleController_SetDriverInput(this, forward, right, brake, handBrake); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:108 ///
/// 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.WheeledVehicleController_SetForwardInput(this, forward); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:109 ///
/// float GetForwardInput() const ///
///
public float GetForwardInput() => Jolt.PInvoke.WheeledVehicleController_GetForwardInput(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:112 ///
/// void SetRightInput(float inRight) ///
///
/// /// /// Value between -1 and 1 indicating desired steering angle (1 = right) /// /// public void SetRightInput(float right) => Jolt.PInvoke.WheeledVehicleController_SetRightInput(this, right); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:113 ///
/// float GetRightInput() const ///
///
public float GetRightInput() => Jolt.PInvoke.WheeledVehicleController_GetRightInput(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:116 ///
/// void SetBrakeInput(float inBrake) ///
///
/// /// /// Value between 0 and 1 indicating how strong the brake pedal is pressed /// /// public void SetBrakeInput(float brake) => Jolt.PInvoke.WheeledVehicleController_SetBrakeInput(this, brake); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:117 ///
/// float GetBrakeInput() const ///
///
public float GetBrakeInput() => Jolt.PInvoke.WheeledVehicleController_GetBrakeInput(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:120 ///
/// void SetHandBrakeInput(float inHandBrake) ///
///
/// /// /// Value between 0 and 1 indicating how strong the hand brake is pulled /// /// public void SetHandBrakeInput(float handBrake) => Jolt.PInvoke.WheeledVehicleController_SetHandBrakeInput(this, handBrake); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:121 ///
/// float GetHandBrakeInput() const ///
///
public float GetHandBrakeInput() => Jolt.PInvoke.WheeledVehicleController_GetHandBrakeInput(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:124 ///
/// 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.WheeledVehicleController_GetEngine(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:130 ///
/// 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.WheeledVehicleController_GetTransmission(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:142 ///
/// float GetDifferentialLimitedSlipRatio() const ///
///
/// /// /// Ratio max / min average wheel speed of each differential (measured at the clutch). /// /// public float GetDifferentialLimitedSlipRatio() => Jolt.PInvoke.WheeledVehicleController_GetDifferentialLimitedSlipRatio(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:143 ///
/// void SetDifferentialLimitedSlipRatio(float inV) ///
///
public void SetDifferentialLimitedSlipRatio(float v) => Jolt.PInvoke.WheeledVehicleController_SetDifferentialLimitedSlipRatio(this, v); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:146 ///
/// float GetWheelSpeedAtClutch() const ///
///
/// /// /// Get the average wheel speed of all driven wheels (measured at the clutch) /// /// public float GetWheelSpeedAtClutch() => Jolt.PInvoke.WheeledVehicleController_GetWheelSpeedAtClutch(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:155 ///
/// void SetRPMMeter(Vec3Arg inPosition, float inSize) ///
///
/// /// /// Debug drawing of RPM meter /// /// public void SetRPMMeter(float3 position, float size) => Jolt.PInvoke.WheeledVehicleController_SetRPMMeter(this, position, size); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:159 ///
/// virtual Ref<VehicleControllerSettings> GetSettings() const override ///
///
/// /// /// See: VehicleController /// /// public VehicleControllerSettings GetSettings() => Jolt.PInvoke.WheeledVehicleController_GetSettings(this); public static implicit operator VehicleController(WheeledVehicleController value) => Jolt.PInvoke.WheeledVehicleController_AsVehicleController(value); public void Dispose() => Jolt.PInvoke.WheeledVehicleController_Destroy(this); } }