mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
101 lines
4.7 KiB
C#
101 lines
4.7 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Runtime data for tank tracks
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleTrack.h#L44">Jolt/Physics/Vehicle/VehicleTrack.h:44</see>
|
|
/// <br/>
|
|
/// <c>class VehicleTrack : public VehicleTrackSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleTrack : IDisposable
|
|
{
|
|
public static VehicleTrack Create() => Jolt.PInvoke.VehicleTrack_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular velocity of the driven wheel, will determine the speed of the entire track
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleTrack.h#L51">Jolt/Physics/Vehicle/VehicleTrack.h:51</see>
|
|
/// <br/>
|
|
/// <c>float mAngularVelocity = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetAngularVelocity() => Jolt.PInvoke.VehicleTrack_GetAngularVelocity(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular velocity of the driven wheel, will determine the speed of the entire track
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleTrack.h#L51">Jolt/Physics/Vehicle/VehicleTrack.h:51</see>
|
|
/// <br/>
|
|
/// <c>float mAngularVelocity = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAngularVelocity(float value) => Jolt.PInvoke.VehicleTrack_SetAngularVelocity(this, value);
|
|
|
|
public static implicit operator VehicleTrackSettings(VehicleTrack value) =>
|
|
Unsafe.BitCast<VehicleTrack, VehicleTrackSettings>(value);
|
|
|
|
public void Dispose() => Jolt.PInvoke.VehicleTrack_Destroy(this);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SaveBinaryState(StreamOut)"/>
|
|
public void SaveBinaryState(StreamOut stream) => ((VehicleTrackSettings)this).SaveBinaryState(stream);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.RestoreBinaryState(StreamIn)"/>
|
|
public void RestoreBinaryState(StreamIn stream) => ((VehicleTrackSettings)this).RestoreBinaryState(stream);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.GetDrivenWheel()"/>
|
|
public uint GetDrivenWheel() => ((VehicleTrackSettings)this).GetDrivenWheel();
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SetDrivenWheel(uint)"/>
|
|
public void SetDrivenWheel(uint value) => ((VehicleTrackSettings)this).SetDrivenWheel(value);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.GetWheels()"/>
|
|
[return: Brutal.Attributes.Fixed]
|
|
public unsafe Span<uint> GetWheels() => ((VehicleTrackSettings)this).GetWheels();
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SetWheels(ReadOnlySpan{uint})"/>
|
|
public unsafe void SetWheels(ReadOnlySpan<uint> value) => ((VehicleTrackSettings)this).SetWheels(value);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.GetInertia()"/>
|
|
public float GetInertia() => ((VehicleTrackSettings)this).GetInertia();
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SetInertia(float)"/>
|
|
public void SetInertia(float value) => ((VehicleTrackSettings)this).SetInertia(value);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.GetAngularDamping()"/>
|
|
public float GetAngularDamping() => ((VehicleTrackSettings)this).GetAngularDamping();
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SetAngularDamping(float)"/>
|
|
public void SetAngularDamping(float value) => ((VehicleTrackSettings)this).SetAngularDamping(value);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.GetMaxBrakeTorque()"/>
|
|
public float GetMaxBrakeTorque() => ((VehicleTrackSettings)this).GetMaxBrakeTorque();
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SetMaxBrakeTorque(float)"/>
|
|
public void SetMaxBrakeTorque(float value) => ((VehicleTrackSettings)this).SetMaxBrakeTorque(value);
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.GetDifferentialRatio()"/>
|
|
public float GetDifferentialRatio() => ((VehicleTrackSettings)this).GetDifferentialRatio();
|
|
|
|
/// <inheritdoc cref="VehicleTrackSettings.SetDifferentialRatio(float)"/>
|
|
public void SetDifferentialRatio(float value) => ((VehicleTrackSettings)this).SetDifferentialRatio(value);
|
|
}
|
|
}
|