brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/WheelTV.gen.cs
2026-10-15 14:12:02 +13:00

182 lines
9 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L32">Jolt/Physics/Vehicle/TrackedVehicleController.h:32</see>
/// <br/>
/// <c>class WheelTV : public Wheel</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Wheel object specifically for TrackedVehicleController
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct WheelTV : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L38">Jolt/Physics/Vehicle/TrackedVehicleController.h:38</see>
/// <br/>
/// <c>explicit WheelTV(const WheelSettingsTV &amp;inWheel)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static WheelTV Create(WheelSettingsTV wheel) => Jolt.PInvoke.WheelTV_Create(wheel);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L41">Jolt/Physics/Vehicle/TrackedVehicleController.h:41</see>
/// <br/>
/// <c>const WheelSettingsTV * GetSettings() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Override GetSettings and cast to the correct class
/// </para>
/// </remarks>
public WheelSettingsTV GetSettings() => Jolt.PInvoke.WheelTV_GetSettings(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L44">Jolt/Physics/Vehicle/TrackedVehicleController.h:44</see>
/// <br/>
/// <c>void CalculateAngularVelocity(const VehicleConstraint &amp;inConstraint)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Update the angular velocity of the wheel based on the angular velocity of the track
/// </para>
/// </remarks>
public void CalculateAngularVelocity(VehicleConstraint constraint) => Jolt.PInvoke.WheelTV_CalculateAngularVelocity(this, constraint);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L47">Jolt/Physics/Vehicle/TrackedVehicleController.h:47</see>
/// <br/>
/// <c>void Update(uint inWheelIndex, float inDeltaTime, const VehicleConstraint &amp;inConstraint)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Update the wheel rotation based on the current angular velocity
/// </para>
/// </remarks>
public void Update(uint wheelIndex, float deltaTime, VehicleConstraint constraint) => Jolt.PInvoke.WheelTV_Update(this, wheelIndex, deltaTime, constraint);
/// <summary>
/// <para>
/// Index in mTracks to which this wheel is attached (calculated on initialization)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L49">Jolt/Physics/Vehicle/TrackedVehicleController.h:49</see>
/// <br/>
/// <c>int mTrackIndex = -1</c>
/// </para>
/// </summary>
public int GetTrackIndex() => Jolt.PInvoke.WheelTV_GetTrackIndex(this);
/// <summary>
/// <para>
/// Index in mTracks to which this wheel is attached (calculated on initialization)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L49">Jolt/Physics/Vehicle/TrackedVehicleController.h:49</see>
/// <br/>
/// <c>int mTrackIndex = -1</c>
/// </para>
/// </summary>
public void SetTrackIndex(int value) => Jolt.PInvoke.WheelTV_SetTrackIndex(this, value);
/// <summary>
/// <para>
/// Combined friction coefficient in longitudinal direction (combines terrain and track)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L50">Jolt/Physics/Vehicle/TrackedVehicleController.h:50</see>
/// <br/>
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
/// </para>
/// </summary>
public float GetCombinedLongitudinalFriction() => Jolt.PInvoke.WheelTV_GetCombinedLongitudinalFriction(this);
/// <summary>
/// <para>
/// Combined friction coefficient in longitudinal direction (combines terrain and track)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L50">Jolt/Physics/Vehicle/TrackedVehicleController.h:50</see>
/// <br/>
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
/// </para>
/// </summary>
public void SetCombinedLongitudinalFriction(float value) => Jolt.PInvoke.WheelTV_SetCombinedLongitudinalFriction(this, value);
/// <summary>
/// <para>
/// Combined friction coefficient in lateral direction (combines terrain and track)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L51">Jolt/Physics/Vehicle/TrackedVehicleController.h:51</see>
/// <br/>
/// <c>float mCombinedLateralFriction = 0.0f</c>
/// </para>
/// </summary>
public float GetCombinedLateralFriction() => Jolt.PInvoke.WheelTV_GetCombinedLateralFriction(this);
/// <summary>
/// <para>
/// Combined friction coefficient in lateral direction (combines terrain and track)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L51">Jolt/Physics/Vehicle/TrackedVehicleController.h:51</see>
/// <br/>
/// <c>float mCombinedLateralFriction = 0.0f</c>
/// </para>
/// </summary>
public void SetCombinedLateralFriction(float value) => Jolt.PInvoke.WheelTV_SetCombinedLateralFriction(this, value);
/// <summary>
/// <para>
/// Amount of impulse that the brakes can apply to the floor (excluding friction), spread out from brake
/// impulse applied on track
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L52">Jolt/Physics/Vehicle/TrackedVehicleController.h:52</see>
/// <br/>
/// <c>float mBrakeImpulse = 0.0f</c>
/// </para>
/// </summary>
public float GetBrakeImpulse() => Jolt.PInvoke.WheelTV_GetBrakeImpulse(this);
/// <summary>
/// <para>
/// Amount of impulse that the brakes can apply to the floor (excluding friction), spread out from brake
/// impulse applied on track
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/TrackedVehicleController.h#L52">Jolt/Physics/Vehicle/TrackedVehicleController.h:52</see>
/// <br/>
/// <c>float mBrakeImpulse = 0.0f</c>
/// </para>
/// </summary>
public void SetBrakeImpulse(float value) => Jolt.PInvoke.WheelTV_SetBrakeImpulse(this, value);
public static implicit operator Wheel(WheelTV value) => Jolt.PInvoke.WheelTV_AsWheel(value);
public void Dispose() => Jolt.PInvoke.WheelTV_Destroy(this);
}
}