brutal/Brutal.Jolt/Generated/Structs/VehicleAntiRollBar.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

96 lines
3.9 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>
/// 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
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L15">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:15</see>
/// <br/>
/// <c>class VehicleAntiRollBar</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 12)]
public partial struct VehicleAntiRollBar
{
/// <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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L26">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:26</see>
/// <br/>
/// <c>int mLeftWheel = 0</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public int LeftWheel;
/// <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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L27">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:27</see>
/// <br/>
/// <c>int mRightWheel = 1</c>
/// </para>
/// </summary>
[FieldOffset(4)]
public int RightWheel;
/// <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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L28">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:28</see>
/// <br/>
/// <c>float mStiffness = 1000.0f</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public float Stiffness;
/// <summary>
/// <para>
/// Saves the contents in binary form to inStream.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L21">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:21</see>
/// <br/>
/// <c>void SaveBinaryState(StreamOut &amp;inStream) const</c>
/// </para>
/// </summary>
public readonly void SaveBinaryState(StreamOut stream) =>
Jolt.PInvoke.VehicleAntiRollBar_SaveBinaryState(ref Unsafe.AsRef(in this), stream);
/// <summary>
/// <para>
/// Restores the contents in binary form to inStream.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleAntiRollBar.h#L24">Jolt/Physics/Vehicle/VehicleAntiRollBar.h:24</see>
/// <br/>
/// <c>void RestoreBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
public void RestoreBinaryState(StreamIn stream) =>
Jolt.PInvoke.VehicleAntiRollBar_RestoreBinaryState(ref this, stream);
}
}