//
// 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:18
///
/// class WheelSettingsTV : public WheelSettings
///
///
///
///
/// WheelSettings object specifically for TrackedVehicleController
///
///
[InteropHandle]
public readonly partial struct WheelSettingsTV : IDisposable
{
public static WheelSettingsTV Create() => Jolt.PInvoke.WheelSettingsTV_Create();
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:20
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public RTTI GetRTTI() => Jolt.PInvoke.WheelSettingsTV_GetRTTI(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:20
///
///
///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.WheelSettingsTV_CastTo(this, rTTI);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:24
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See: WheelSettings
///
///
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.WheelSettingsTV_SaveBinaryState(this, stream);
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:25
///
/// virtual void RestoreBinaryState(StreamIn &inStream) override
///
///
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.WheelSettingsTV_RestoreBinaryState(this, stream);
///
///
/// Friction in forward direction of tire
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:27
///
/// float mLongitudinalFriction = 4.0f
///
///
public float GetLongitudinalFriction() => Jolt.PInvoke.WheelSettingsTV_GetLongitudinalFriction(this);
///
///
/// Friction in forward direction of tire
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:27
///
/// float mLongitudinalFriction = 4.0f
///
///
public void SetLongitudinalFriction(float value) => Jolt.PInvoke.WheelSettingsTV_SetLongitudinalFriction(this, value);
///
///
/// Friction in sideways direction of tire
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:28
///
/// float mLateralFriction = 2.0f
///
///
public float GetLateralFriction() => Jolt.PInvoke.WheelSettingsTV_GetLateralFriction(this);
///
///
/// Friction in sideways direction of tire
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:28
///
/// float mLateralFriction = 2.0f
///
///
public void SetLateralFriction(float value) => Jolt.PInvoke.WheelSettingsTV_SetLateralFriction(this, value);
public void AddRef() => Jolt.PInvoke.WheelSettingsTV_AddRef(this);
public void Release() => Jolt.PInvoke.WheelSettingsTV_Release(this);
public uint GetRefCount() => Jolt.PInvoke.WheelSettingsTV_GetRefCount(this);
public static implicit operator WheelSettings(WheelSettingsTV value) => Jolt.PInvoke.WheelSettingsTV_AsWheelSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}