//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// WheelSettings object specifically for TrackedVehicleController
///
///
/// C++:
/// Jolt/Physics/Vehicle/TrackedVehicleController.h:18
///
/// class WheelSettingsTV : public WheelSettings
///
///
[InteropHandle]
public readonly partial struct WheelSettingsTV : IDisposable
{
public static WheelSettingsTV Create() => Jolt.PInvoke.WheelSettingsTV_Create();
///
public RTTI GetRTTI() => ((WheelSettings)this).GetRTTI();
///
public unsafe Ptr CastTo(RTTI rtti) => ((WheelSettings)this).CastTo(rtti);
///
public void SaveBinaryState(StreamOut stream) => ((WheelSettings)this).SaveBinaryState(stream);
///
public void RestoreBinaryState(StreamIn stream) => ((WheelSettings)this).RestoreBinaryState(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() => ((WheelSettings)this).AddRef();
public void Release() => ((WheelSettings)this).Release();
public uint GetRefCount() => ((WheelSettings)this).GetRefCount();
public static implicit operator WheelSettings(WheelSettingsTV value) =>
Unsafe.BitCast(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
///
public float3 GetPosition() => ((WheelSettings)this).GetPosition();
///
public void SetPosition(float3 value) => ((WheelSettings)this).SetPosition(value);
///
public float3 GetSuspensionForcePoint() => ((WheelSettings)this).GetSuspensionForcePoint();
///
public void SetSuspensionForcePoint(float3 value) => ((WheelSettings)this).SetSuspensionForcePoint(value);
///
public float3 GetSuspensionDirection() => ((WheelSettings)this).GetSuspensionDirection();
///
public void SetSuspensionDirection(float3 value) => ((WheelSettings)this).SetSuspensionDirection(value);
///
public float3 GetSteeringAxis() => ((WheelSettings)this).GetSteeringAxis();
///
public void SetSteeringAxis(float3 value) => ((WheelSettings)this).SetSteeringAxis(value);
///
public float3 GetWheelUp() => ((WheelSettings)this).GetWheelUp();
///
public void SetWheelUp(float3 value) => ((WheelSettings)this).SetWheelUp(value);
///
public float3 GetWheelForward() => ((WheelSettings)this).GetWheelForward();
///
public void SetWheelForward(float3 value) => ((WheelSettings)this).SetWheelForward(value);
///
public float GetSuspensionMinLength() => ((WheelSettings)this).GetSuspensionMinLength();
///
public void SetSuspensionMinLength(float value) => ((WheelSettings)this).SetSuspensionMinLength(value);
///
public float GetSuspensionMaxLength() => ((WheelSettings)this).GetSuspensionMaxLength();
///
public void SetSuspensionMaxLength(float value) => ((WheelSettings)this).SetSuspensionMaxLength(value);
///
public float GetSuspensionPreloadLength() => ((WheelSettings)this).GetSuspensionPreloadLength();
///
public void SetSuspensionPreloadLength(float value) => ((WheelSettings)this).SetSuspensionPreloadLength(value);
///
public SpringSettings GetSuspensionSpring() => ((WheelSettings)this).GetSuspensionSpring();
///
public void SetSuspensionSpring(SpringSettings value) => ((WheelSettings)this).SetSuspensionSpring(value);
///
public float GetRadius() => ((WheelSettings)this).GetRadius();
///
public void SetRadius(float value) => ((WheelSettings)this).SetRadius(value);
///
public float GetWidth() => ((WheelSettings)this).GetWidth();
///
public void SetWidth(float value) => ((WheelSettings)this).SetWidth(value);
///
public bool GetEnableSuspensionForcePoint() => ((WheelSettings)this).GetEnableSuspensionForcePoint();
///
public void SetEnableSuspensionForcePoint(bool value) =>
((WheelSettings)this).SetEnableSuspensionForcePoint(value);
}
}