mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
173 lines
7.4 KiB
C#
173 lines
7.4 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>
|
|
/// Settings of a vehicle with tank tracks
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L59">Jolt/Physics/Vehicle/TrackedVehicleController.h:59</see>
|
|
/// <br/>
|
|
/// <c>class TrackedVehicleControllerSettings : public VehicleControllerSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Settings of a vehicle with tank tracks
|
|
///
|
|
/// Default settings are based around what I could find about the M1 Abrams tank.
|
|
/// Note to avoid issues with very heavy objects vs very light objects the mass of the tank should be a lot lower (say 10x) than that of a real tank. That means that the engine/brake torque is also 10x less.
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct TrackedVehicleControllerSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L65">Jolt/Physics/Vehicle/TrackedVehicleController.h:65</see>
|
|
/// <br/>
|
|
/// <c>TrackedVehicleControllerSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static TrackedVehicleControllerSettings Create() =>
|
|
Jolt.PInvoke.TrackedVehicleControllerSettings_Create();
|
|
|
|
/// <inheritdoc cref="VehicleControllerSettings.GetRTTI()"/>
|
|
public RTTI GetRTTI() => ((VehicleControllerSettings)this).GetRTTI();
|
|
|
|
/// <inheritdoc cref="VehicleControllerSettings.CastTo(RTTI)"/>
|
|
public unsafe Ptr CastTo(RTTI rtti) => ((VehicleControllerSettings)this).CastTo(rtti);
|
|
|
|
/// <inheritdoc cref="VehicleControllerSettings.SaveBinaryState(StreamOut)"/>
|
|
public void SaveBinaryState(StreamOut stream) => ((VehicleControllerSettings)this).SaveBinaryState(stream);
|
|
|
|
/// <inheritdoc cref="VehicleControllerSettings.RestoreBinaryState(StreamIn)"/>
|
|
public void RestoreBinaryState(StreamIn stream) => ((VehicleControllerSettings)this).RestoreBinaryState(stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The properties of the engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L72">Jolt/Physics/Vehicle/TrackedVehicleController.h:72</see>
|
|
/// <br/>
|
|
/// <c>VehicleEngineSettings mEngine</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public VehicleEngineSettings GetEngine() => Jolt.PInvoke.TrackedVehicleControllerSettings_GetEngine(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The properties of the engine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L72">Jolt/Physics/Vehicle/TrackedVehicleController.h:72</see>
|
|
/// <br/>
|
|
/// <c>VehicleEngineSettings mEngine</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetEngine(VehicleEngineSettings value) =>
|
|
Jolt.PInvoke.TrackedVehicleControllerSettings_SetEngine(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The properties of the transmission (aka gear box)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L73">Jolt/Physics/Vehicle/TrackedVehicleController.h:73</see>
|
|
/// <br/>
|
|
/// <c>VehicleTransmissionSettings mTransmission</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public VehicleTransmissionSettings GetTransmission() =>
|
|
Jolt.PInvoke.TrackedVehicleControllerSettings_GetTransmission(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The properties of the transmission (aka gear box)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L73">Jolt/Physics/Vehicle/TrackedVehicleController.h:73</see>
|
|
/// <br/>
|
|
/// <c>VehicleTransmissionSettings mTransmission</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetTransmission(VehicleTransmissionSettings value) =>
|
|
Jolt.PInvoke.TrackedVehicleControllerSettings_SetTransmission(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// List of tracks and their properties
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/TrackedVehicleController.h#L74">Jolt/Physics/Vehicle/TrackedVehicleController.h:74</see>
|
|
/// <br/>
|
|
/// <c>VehicleTrackSettings mTracks[(int)ETrackSide::Num]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// One of the 2 elements, by index. The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public VehicleTrackSettings GetTracks(uint index)
|
|
{
|
|
if (index >= 2)
|
|
throw new ArgumentOutOfRangeException(nameof(index), index, "Expected an index below 2.");
|
|
return Jolt.PInvoke.TrackedVehicleControllerSettings_GetTracks(this, index);
|
|
}
|
|
|
|
public void AddRef() => ((VehicleControllerSettings)this).AddRef();
|
|
|
|
public void Release() => ((VehicleControllerSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((VehicleControllerSettings)this).GetRefCount();
|
|
|
|
public static implicit operator VehicleControllerSettings(TrackedVehicleControllerSettings value) =>
|
|
Unsafe.BitCast<TrackedVehicleControllerSettings, VehicleControllerSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|