//
// 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:19
///
/// class WheelSettingsWV : public WheelSettings
///
///
///
///
/// WheelSettings object specifically for WheeledVehicleController
///
///
[InteropHandle]
public readonly partial struct WheelSettingsWV : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:25
///
/// WheelSettingsWV()
///
///
///
///
/// Constructor
///
///
public static WheelSettingsWV Create() => Jolt.PInvoke.WheelSettingsWV_Create();
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:21
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public RTTI GetRTTI() => Jolt.PInvoke.WheelSettingsWV_GetRTTI(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:21
///
///
///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.WheelSettingsWV_CastTo(this, rTTI);
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:28
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See: WheelSettings
///
///
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.WheelSettingsWV_SaveBinaryState(this, stream);
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:29
///
/// virtual void RestoreBinaryState(StreamIn &inStream) override
///
///
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.WheelSettingsWV_RestoreBinaryState(this, stream);
///
///
/// Moment of inertia (kg m^2), for a cylinder this would be 0.5 * M * R^2 which is 0.9 for a wheel with a
/// mass of 20 kg and radius 0.3 m
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:31
///
/// float mInertia = 0.9f
///
///
public float GetInertia() => Jolt.PInvoke.WheelSettingsWV_GetInertia(this);
///
///
/// Moment of inertia (kg m^2), for a cylinder this would be 0.5 * M * R^2 which is 0.9 for a wheel with a
/// mass of 20 kg and radius 0.3 m
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:31
///
/// float mInertia = 0.9f
///
///
public void SetInertia(float value) => Jolt.PInvoke.WheelSettingsWV_SetInertia(this, value);
///
///
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
/// close to 0.
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:32
///
/// float mAngularDamping = 0.2f
///
///
public float GetAngularDamping() => Jolt.PInvoke.WheelSettingsWV_GetAngularDamping(this);
///
///
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
/// close to 0.
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:32
///
/// float mAngularDamping = 0.2f
///
///
public void SetAngularDamping(float value) => Jolt.PInvoke.WheelSettingsWV_SetAngularDamping(this, value);
///
///
/// How much this wheel can steer (radians)
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:33
///
/// float mMaxSteerAngle = DegreesToRadians(70.0f)
///
///
public float GetMaxSteerAngle() => Jolt.PInvoke.WheelSettingsWV_GetMaxSteerAngle(this);
///
///
/// How much this wheel can steer (radians)
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:33
///
/// float mMaxSteerAngle = DegreesToRadians(70.0f)
///
///
public void SetMaxSteerAngle(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxSteerAngle(this, value);
///
///
/// How much torque (Nm) the brakes can apply to this wheel
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:36
///
/// float mMaxBrakeTorque = 1500.0f
///
///
public float GetMaxBrakeTorque() => Jolt.PInvoke.WheelSettingsWV_GetMaxBrakeTorque(this);
///
///
/// How much torque (Nm) the brakes can apply to this wheel
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:36
///
/// float mMaxBrakeTorque = 1500.0f
///
///
public void SetMaxBrakeTorque(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxBrakeTorque(this, value);
///
///
/// How much torque (Nm) the hand brake can apply to this wheel (usually only applied to the rear wheels)
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:37
///
/// float mMaxHandBrakeTorque = 4000.0f
///
///
public float GetMaxHandBrakeTorque() => Jolt.PInvoke.WheelSettingsWV_GetMaxHandBrakeTorque(this);
///
///
/// How much torque (Nm) the hand brake can apply to this wheel (usually only applied to the rear wheels)
///
///
/// C++:
/// Jolt/Physics/Vehicle/WheeledVehicleController.h:37
///
/// float mMaxHandBrakeTorque = 4000.0f
///
///
public void SetMaxHandBrakeTorque(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxHandBrakeTorque(this, value);
public void AddRef() => Jolt.PInvoke.WheelSettingsWV_AddRef(this);
public void Release() => Jolt.PInvoke.WheelSettingsWV_Release(this);
public uint GetRefCount() => Jolt.PInvoke.WheelSettingsWV_GetRefCount(this);
public static implicit operator WheelSettings(WheelSettingsWV value) => Jolt.PInvoke.WheelSettingsWV_AsWheelSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}