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

204 lines
10 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/WheeledVehicleController.h#L41">Jolt/Physics/Vehicle/WheeledVehicleController.h:41</see>
/// <br/>
/// <c>class WheelWV : public Wheel</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Wheel object specifically for WheeledVehicleController
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct WheelWV : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L47">Jolt/Physics/Vehicle/WheeledVehicleController.h:47</see>
/// <br/>
/// <c>explicit WheelWV(const WheelSettingsWV &amp;inWheel)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static WheelWV Create(WheelSettingsWV wheel) => Jolt.PInvoke.WheelWV_Create(wheel);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L50">Jolt/Physics/Vehicle/WheeledVehicleController.h:50</see>
/// <br/>
/// <c>const WheelSettingsWV * GetSettings() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Override GetSettings and cast to the correct class
/// </para>
/// </remarks>
public WheelSettingsWV GetSettings() => Jolt.PInvoke.WheelWV_GetSettings(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L53">Jolt/Physics/Vehicle/WheeledVehicleController.h:53</see>
/// <br/>
/// <c>void ApplyTorque(float inTorque, float inDeltaTime)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Apply a torque (N m) to the wheel for a particular delta time
/// </para>
/// </remarks>
public void ApplyTorque(float torque, float deltaTime) => Jolt.PInvoke.WheelWV_ApplyTorque(this, torque, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L59">Jolt/Physics/Vehicle/WheeledVehicleController.h:59</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.WheelWV_Update(this, wheelIndex, deltaTime, constraint);
/// <summary>
/// <para>
/// Velocity difference between ground and wheel relative to ground velocity
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L61">Jolt/Physics/Vehicle/WheeledVehicleController.h:61</see>
/// <br/>
/// <c>float mLongitudinalSlip = 0.0f</c>
/// </para>
/// </summary>
public float GetLongitudinalSlip() => Jolt.PInvoke.WheelWV_GetLongitudinalSlip(this);
/// <summary>
/// <para>
/// Velocity difference between ground and wheel relative to ground velocity
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L61">Jolt/Physics/Vehicle/WheeledVehicleController.h:61</see>
/// <br/>
/// <c>float mLongitudinalSlip = 0.0f</c>
/// </para>
/// </summary>
public void SetLongitudinalSlip(float value) => Jolt.PInvoke.WheelWV_SetLongitudinalSlip(this, value);
/// <summary>
/// <para>
/// Angular difference (in radians) between ground and wheel relative to ground velocity
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L62">Jolt/Physics/Vehicle/WheeledVehicleController.h:62</see>
/// <br/>
/// <c>float mLateralSlip = 0.0f</c>
/// </para>
/// </summary>
public float GetLateralSlip() => Jolt.PInvoke.WheelWV_GetLateralSlip(this);
/// <summary>
/// <para>
/// Angular difference (in radians) between ground and wheel relative to ground velocity
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L62">Jolt/Physics/Vehicle/WheeledVehicleController.h:62</see>
/// <br/>
/// <c>float mLateralSlip = 0.0f</c>
/// </para>
/// </summary>
public void SetLateralSlip(float value) => Jolt.PInvoke.WheelWV_SetLateralSlip(this, value);
/// <summary>
/// <para>
/// Combined friction coefficient in longitudinal direction (combines terrain and tires)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L63">Jolt/Physics/Vehicle/WheeledVehicleController.h:63</see>
/// <br/>
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
/// </para>
/// </summary>
public float GetCombinedLongitudinalFriction() => Jolt.PInvoke.WheelWV_GetCombinedLongitudinalFriction(this);
/// <summary>
/// <para>
/// Combined friction coefficient in longitudinal direction (combines terrain and tires)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L63">Jolt/Physics/Vehicle/WheeledVehicleController.h:63</see>
/// <br/>
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
/// </para>
/// </summary>
public void SetCombinedLongitudinalFriction(float value) => Jolt.PInvoke.WheelWV_SetCombinedLongitudinalFriction(this, value);
/// <summary>
/// <para>
/// Combined friction coefficient in lateral direction (combines terrain and tires)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L64">Jolt/Physics/Vehicle/WheeledVehicleController.h:64</see>
/// <br/>
/// <c>float mCombinedLateralFriction = 0.0f</c>
/// </para>
/// </summary>
public float GetCombinedLateralFriction() => Jolt.PInvoke.WheelWV_GetCombinedLateralFriction(this);
/// <summary>
/// <para>
/// Combined friction coefficient in lateral direction (combines terrain and tires)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L64">Jolt/Physics/Vehicle/WheeledVehicleController.h:64</see>
/// <br/>
/// <c>float mCombinedLateralFriction = 0.0f</c>
/// </para>
/// </summary>
public void SetCombinedLateralFriction(float value) => Jolt.PInvoke.WheelWV_SetCombinedLateralFriction(this, value);
/// <summary>
/// <para>
/// Amount of impulse that the brakes can apply to the floor (excluding friction)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L65">Jolt/Physics/Vehicle/WheeledVehicleController.h:65</see>
/// <br/>
/// <c>float mBrakeImpulse = 0.0f</c>
/// </para>
/// </summary>
public float GetBrakeImpulse() => Jolt.PInvoke.WheelWV_GetBrakeImpulse(this);
/// <summary>
/// <para>
/// Amount of impulse that the brakes can apply to the floor (excluding friction)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L65">Jolt/Physics/Vehicle/WheeledVehicleController.h:65</see>
/// <br/>
/// <c>float mBrakeImpulse = 0.0f</c>
/// </para>
/// </summary>
public void SetBrakeImpulse(float value) => Jolt.PInvoke.WheelWV_SetBrakeImpulse(this, value);
public static implicit operator Wheel(WheelWV value) => Jolt.PInvoke.WheelWV_AsWheel(value);
public void Dispose() => Jolt.PInvoke.WheelWV_Destroy(this);
}
}