mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
96
Brutal.Jolt/Generated/Structs/VehicleAntiRollBar.gen.cs
Normal file
96
Brutal.Jolt/Generated/Structs/VehicleAntiRollBar.gen.cs
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
// <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 &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 &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void RestoreBinaryState(StreamIn stream) =>
|
||||
Jolt.PInvoke.VehicleAntiRollBar_RestoreBinaryState(ref this, stream);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue