//
// 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
{
///
///
/// Runtime data for tank tracks
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleTrack.h:44
///
/// class VehicleTrack : public VehicleTrackSettings
///
///
[InteropHandle]
public readonly partial struct VehicleTrack : IDisposable
{
public static VehicleTrack Create() => Jolt.PInvoke.VehicleTrack_Create();
///
///
/// Angular velocity of the driven wheel, will determine the speed of the entire track
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleTrack.h:51
///
/// float mAngularVelocity = 0.0f
///
///
public float GetAngularVelocity() => Jolt.PInvoke.VehicleTrack_GetAngularVelocity(this);
///
///
/// Angular velocity of the driven wheel, will determine the speed of the entire track
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleTrack.h:51
///
/// float mAngularVelocity = 0.0f
///
///
public void SetAngularVelocity(float value) => Jolt.PInvoke.VehicleTrack_SetAngularVelocity(this, value);
public static implicit operator VehicleTrackSettings(VehicleTrack value) =>
Unsafe.BitCast(value);
public void Dispose() => Jolt.PInvoke.VehicleTrack_Destroy(this);
///
public void SaveBinaryState(StreamOut stream) => ((VehicleTrackSettings)this).SaveBinaryState(stream);
///
public void RestoreBinaryState(StreamIn stream) => ((VehicleTrackSettings)this).RestoreBinaryState(stream);
///
public uint GetDrivenWheel() => ((VehicleTrackSettings)this).GetDrivenWheel();
///
public void SetDrivenWheel(uint value) => ((VehicleTrackSettings)this).SetDrivenWheel(value);
///
[return: Brutal.Attributes.Fixed]
public unsafe Span GetWheels() => ((VehicleTrackSettings)this).GetWheels();
///
public unsafe void SetWheels(ReadOnlySpan value) => ((VehicleTrackSettings)this).SetWheels(value);
///
public float GetInertia() => ((VehicleTrackSettings)this).GetInertia();
///
public void SetInertia(float value) => ((VehicleTrackSettings)this).SetInertia(value);
///
public float GetAngularDamping() => ((VehicleTrackSettings)this).GetAngularDamping();
///
public void SetAngularDamping(float value) => ((VehicleTrackSettings)this).SetAngularDamping(value);
///
public float GetMaxBrakeTorque() => ((VehicleTrackSettings)this).GetMaxBrakeTorque();
///
public void SetMaxBrakeTorque(float value) => ((VehicleTrackSettings)this).SetMaxBrakeTorque(value);
///
public float GetDifferentialRatio() => ((VehicleTrackSettings)this).GetDifferentialRatio();
///
public void SetDifferentialRatio(float value) => ((VehicleTrackSettings)this).SetDifferentialRatio(value);
}
}