mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
129 lines
6 KiB
C#
129 lines
6 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/VehicleAntiRollBar.h#L15">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:15</see>
|
|
/// <br/>
|
|
/// <c>class VehicleAntiRollBar</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// An anti rollbar is a stiff spring that connects two wheels to reduce the amount of roll the vehicle makes in sharp corners
|
|
/// See: https://en.wikipedia.org/wiki/Anti-roll_bar
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleAntiRollBar : IDisposable
|
|
{
|
|
public static VehicleAntiRollBar Create() => Jolt.PInvoke.VehicleAntiRollBar_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L21">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:21</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the contents in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.VehicleAntiRollBar_SaveBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L24">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:24</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restores the contents in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.VehicleAntiRollBar_RestoreBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Index (in mWheels) that represents the left wheel of this anti-rollbar
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L26">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:26</see>
|
|
/// <br/>
|
|
/// <c>int mLeftWheel = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public int GetLeftWheel() => Jolt.PInvoke.VehicleAntiRollBar_GetLeftWheel(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Index (in mWheels) that represents the left wheel of this anti-rollbar
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L26">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:26</see>
|
|
/// <br/>
|
|
/// <c>int mLeftWheel = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetLeftWheel(int value) => Jolt.PInvoke.VehicleAntiRollBar_SetLeftWheel(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Index (in mWheels) that represents the right wheel of this anti-rollbar
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L27">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:27</see>
|
|
/// <br/>
|
|
/// <c>int mRightWheel = 1</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public int GetRightWheel() => Jolt.PInvoke.VehicleAntiRollBar_GetRightWheel(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Index (in mWheels) that represents the right wheel of this anti-rollbar
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L27">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:27</see>
|
|
/// <br/>
|
|
/// <c>int mRightWheel = 1</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetRightWheel(int value) => Jolt.PInvoke.VehicleAntiRollBar_SetRightWheel(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L28">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:28</see>
|
|
/// <br/>
|
|
/// <c>float mStiffness = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetStiffness() => Jolt.PInvoke.VehicleAntiRollBar_GetStiffness(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L28">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:28</see>
|
|
/// <br/>
|
|
/// <c>float mStiffness = 1000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetStiffness(float value) => Jolt.PInvoke.VehicleAntiRollBar_SetStiffness(this, value);
|
|
public void Dispose() => Jolt.PInvoke.VehicleAntiRollBar_Destroy(this);
|
|
}
|
|
}
|