//
// 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:32
///
/// class WheelTV : public Wheel
///
///
///
///
/// Wheel object specifically for TrackedVehicleController
///
///
[InteropHandle]
public readonly partial struct WheelTV : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:38
///
/// explicit WheelTV(const WheelSettingsTV &inWheel)
///
///
///
///
/// Constructor
///
///
public static WheelTV Create(WheelSettingsTV wheel) => Jolt.PInvoke.WheelTV_Create(wheel);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:41
///
/// const WheelSettingsTV * GetSettings() const
///
///
///
///
/// Override GetSettings and cast to the correct class
///
///
public WheelSettingsTV GetSettings() => Jolt.PInvoke.WheelTV_GetSettings(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:44
///
/// void CalculateAngularVelocity(const VehicleConstraint &inConstraint)
///
///
///
///
/// Update the angular velocity of the wheel based on the angular velocity of the track
///
///
public void CalculateAngularVelocity(VehicleConstraint constraint) => Jolt.PInvoke.WheelTV_CalculateAngularVelocity(this, constraint);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:47
///
/// 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.WheelTV_Update(this, wheelIndex, deltaTime, constraint);
///
///
/// Index in mTracks to which this wheel is attached (calculated on initialization)
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:49
///
/// int mTrackIndex = -1
///
///
public int GetTrackIndex() => Jolt.PInvoke.WheelTV_GetTrackIndex(this);
///
///
/// Index in mTracks to which this wheel is attached (calculated on initialization)
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:49
///
/// int mTrackIndex = -1
///
///
public void SetTrackIndex(int value) => Jolt.PInvoke.WheelTV_SetTrackIndex(this, value);
///
///
/// Combined friction coefficient in longitudinal direction (combines terrain and track)
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:50
///
/// float mCombinedLongitudinalFriction = 0.0f
///
///
public float GetCombinedLongitudinalFriction() => Jolt.PInvoke.WheelTV_GetCombinedLongitudinalFriction(this);
///
///
/// Combined friction coefficient in longitudinal direction (combines terrain and track)
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:50
///
/// float mCombinedLongitudinalFriction = 0.0f
///
///
public void SetCombinedLongitudinalFriction(float value) => Jolt.PInvoke.WheelTV_SetCombinedLongitudinalFriction(this, value);
///
///
/// Combined friction coefficient in lateral direction (combines terrain and track)
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:51
///
/// float mCombinedLateralFriction = 0.0f
///
///
public float GetCombinedLateralFriction() => Jolt.PInvoke.WheelTV_GetCombinedLateralFriction(this);
///
///
/// Combined friction coefficient in lateral direction (combines terrain and track)
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:51
///
/// float mCombinedLateralFriction = 0.0f
///
///
public void SetCombinedLateralFriction(float value) => Jolt.PInvoke.WheelTV_SetCombinedLateralFriction(this, value);
///
///
/// Amount of impulse that the brakes can apply to the floor (excluding friction), spread out from brake
/// impulse applied on track
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:52
///
/// float mBrakeImpulse = 0.0f
///
///
public float GetBrakeImpulse() => Jolt.PInvoke.WheelTV_GetBrakeImpulse(this);
///
///
/// Amount of impulse that the brakes can apply to the floor (excluding friction), spread out from brake
/// impulse applied on track
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:52
///
/// float mBrakeImpulse = 0.0f
///
///
public void SetBrakeImpulse(float value) => Jolt.PInvoke.WheelTV_SetBrakeImpulse(this, value);
public static implicit operator Wheel(WheelTV value) => Jolt.PInvoke.WheelTV_AsWheel(value);
public void Dispose() => Jolt.PInvoke.WheelTV_Destroy(this);
}
}