mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
219 lines
11 KiB
C#
219 lines
11 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#L19">Jolt/Physics/Vehicle/WheeledVehicleController.h:19</see>
|
|
/// <br/>
|
|
/// <c>class WheelSettingsWV : public WheelSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// WheelSettings object specifically for WheeledVehicleController
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct WheelSettingsWV : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L25">Jolt/Physics/Vehicle/WheeledVehicleController.h:25</see>
|
|
/// <br/>
|
|
/// <c>WheelSettingsWV()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
public static WheelSettingsWV Create() => Jolt.PInvoke.WheelSettingsWV_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L21">Jolt/Physics/Vehicle/WheeledVehicleController.h:21</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public RTTI GetRTTI() => Jolt.PInvoke.WheelSettingsWV_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L21">Jolt/Physics/Vehicle/WheeledVehicleController.h:21</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.WheelSettingsWV_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L28">Jolt/Physics/Vehicle/WheeledVehicleController.h:28</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: WheelSettings
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.WheelSettingsWV_SaveBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L29">Jolt/Physics/Vehicle/WheeledVehicleController.h:29</see>
|
|
/// <br/>
|
|
/// <c>virtual void RestoreBinaryState(StreamIn &inStream) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.WheelSettingsWV_RestoreBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2), for a cylinder this would be 0.5 * M * R^2 which is 0.9 for a wheel with a
|
|
/// mass of 20 kg and radius 0.3 m
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L31">Jolt/Physics/Vehicle/WheeledVehicleController.h:31</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.9f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInertia() => Jolt.PInvoke.WheelSettingsWV_GetInertia(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2), for a cylinder this would be 0.5 * M * R^2 which is 0.9 for a wheel with a
|
|
/// mass of 20 kg and radius 0.3 m
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L31">Jolt/Physics/Vehicle/WheeledVehicleController.h:31</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.9f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInertia(float value) => Jolt.PInvoke.WheelSettingsWV_SetInertia(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
|
|
/// close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L32">Jolt/Physics/Vehicle/WheeledVehicleController.h:32</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetAngularDamping() => Jolt.PInvoke.WheelSettingsWV_GetAngularDamping(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
|
|
/// close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L32">Jolt/Physics/Vehicle/WheeledVehicleController.h:32</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAngularDamping(float value) => Jolt.PInvoke.WheelSettingsWV_SetAngularDamping(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much this wheel can steer (radians)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L33">Jolt/Physics/Vehicle/WheeledVehicleController.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSteerAngle = DegreesToRadians(70.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxSteerAngle() => Jolt.PInvoke.WheelSettingsWV_GetMaxSteerAngle(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much this wheel can steer (radians)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L33">Jolt/Physics/Vehicle/WheeledVehicleController.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSteerAngle = DegreesToRadians(70.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxSteerAngle(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxSteerAngle(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the brakes can apply to this wheel
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L36">Jolt/Physics/Vehicle/WheeledVehicleController.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxBrakeTorque = 1500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxBrakeTorque() => Jolt.PInvoke.WheelSettingsWV_GetMaxBrakeTorque(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the brakes can apply to this wheel
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L36">Jolt/Physics/Vehicle/WheeledVehicleController.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxBrakeTorque = 1500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxBrakeTorque(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxBrakeTorque(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the hand brake can apply to this wheel (usually only applied to the rear wheels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L37">Jolt/Physics/Vehicle/WheeledVehicleController.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mMaxHandBrakeTorque = 4000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxHandBrakeTorque() => Jolt.PInvoke.WheelSettingsWV_GetMaxHandBrakeTorque(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the hand brake can apply to this wheel (usually only applied to the rear wheels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L37">Jolt/Physics/Vehicle/WheeledVehicleController.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mMaxHandBrakeTorque = 4000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxHandBrakeTorque(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxHandBrakeTorque(this, value);
|
|
public void AddRef() => Jolt.PInvoke.WheelSettingsWV_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.WheelSettingsWV_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.WheelSettingsWV_GetRefCount(this);
|
|
public static implicit operator WheelSettings(WheelSettingsWV value) => Jolt.PInvoke.WheelSettingsWV_AsWheelSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|