// // 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:41 ///
/// class WheelWV : public Wheel ///
///
/// /// /// Wheel object specifically for WheeledVehicleController /// /// [InteropHandle] public readonly partial struct WheelWV : IDisposable { /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:47 ///
/// explicit WheelWV(const WheelSettingsWV &inWheel) ///
///
/// /// /// Constructor /// /// public static WheelWV Create(WheelSettingsWV wheel) => Jolt.PInvoke.WheelWV_Create(wheel); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:50 ///
/// const WheelSettingsWV * GetSettings() const ///
///
/// /// /// Override GetSettings and cast to the correct class /// /// public WheelSettingsWV GetSettings() => Jolt.PInvoke.WheelWV_GetSettings(this); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:53 ///
/// void ApplyTorque(float inTorque, float inDeltaTime) ///
///
/// /// /// Apply a torque (N m) to the wheel for a particular delta time /// /// public void ApplyTorque(float torque, float deltaTime) => Jolt.PInvoke.WheelWV_ApplyTorque(this, torque, deltaTime); /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:59 ///
/// void Update(uint inWheelIndex, float inDeltaTime, const VehicleConstraint &inConstraint) ///
///
/// /// /// Update the wheel rotation based on the current angular velocity /// /// public void Update(uint wheelIndex, float deltaTime, VehicleConstraint constraint) => Jolt.PInvoke.WheelWV_Update(this, wheelIndex, deltaTime, constraint); /// /// /// Velocity difference between ground and wheel relative to ground velocity /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:61 ///
/// float mLongitudinalSlip = 0.0f ///
///
public float GetLongitudinalSlip() => Jolt.PInvoke.WheelWV_GetLongitudinalSlip(this); /// /// /// Velocity difference between ground and wheel relative to ground velocity /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:61 ///
/// float mLongitudinalSlip = 0.0f ///
///
public void SetLongitudinalSlip(float value) => Jolt.PInvoke.WheelWV_SetLongitudinalSlip(this, value); /// /// /// Angular difference (in radians) between ground and wheel relative to ground velocity /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:62 ///
/// float mLateralSlip = 0.0f ///
///
public float GetLateralSlip() => Jolt.PInvoke.WheelWV_GetLateralSlip(this); /// /// /// Angular difference (in radians) between ground and wheel relative to ground velocity /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:62 ///
/// float mLateralSlip = 0.0f ///
///
public void SetLateralSlip(float value) => Jolt.PInvoke.WheelWV_SetLateralSlip(this, value); /// /// /// Combined friction coefficient in longitudinal direction (combines terrain and tires) /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:63 ///
/// float mCombinedLongitudinalFriction = 0.0f ///
///
public float GetCombinedLongitudinalFriction() => Jolt.PInvoke.WheelWV_GetCombinedLongitudinalFriction(this); /// /// /// Combined friction coefficient in longitudinal direction (combines terrain and tires) /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:63 ///
/// float mCombinedLongitudinalFriction = 0.0f ///
///
public void SetCombinedLongitudinalFriction(float value) => Jolt.PInvoke.WheelWV_SetCombinedLongitudinalFriction(this, value); /// /// /// Combined friction coefficient in lateral direction (combines terrain and tires) /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:64 ///
/// float mCombinedLateralFriction = 0.0f ///
///
public float GetCombinedLateralFriction() => Jolt.PInvoke.WheelWV_GetCombinedLateralFriction(this); /// /// /// Combined friction coefficient in lateral direction (combines terrain and tires) /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:64 ///
/// float mCombinedLateralFriction = 0.0f ///
///
public void SetCombinedLateralFriction(float value) => Jolt.PInvoke.WheelWV_SetCombinedLateralFriction(this, value); /// /// /// Amount of impulse that the brakes can apply to the floor (excluding friction) /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:65 ///
/// float mBrakeImpulse = 0.0f ///
///
public float GetBrakeImpulse() => Jolt.PInvoke.WheelWV_GetBrakeImpulse(this); /// /// /// Amount of impulse that the brakes can apply to the floor (excluding friction) /// /// /// C++: /// Jolt/Physics/Vehicle/WheeledVehicleController.h:65 ///
/// float mBrakeImpulse = 0.0f ///
///
public void SetBrakeImpulse(float value) => Jolt.PInvoke.WheelWV_SetBrakeImpulse(this, value); public static implicit operator Wheel(WheelWV value) => Jolt.PInvoke.WheelWV_AsWheel(value); public void Dispose() => Jolt.PInvoke.WheelWV_Destroy(this); } }