// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:15 ///
/// class VehicleAntiRollBar ///
///
/// /// /// 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 /// /// [InteropHandle] public readonly partial struct VehicleAntiRollBar : IDisposable { public static VehicleAntiRollBar Create() => Jolt.PInvoke.VehicleAntiRollBar_Create(); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:21 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the contents in binary form to inStream. /// /// public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.VehicleAntiRollBar_SaveBinaryState(this, stream); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:24 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restores the contents in binary form to inStream. /// /// public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.VehicleAntiRollBar_RestoreBinaryState(this, stream); /// /// /// Index (in mWheels) that represents the left wheel of this anti-rollbar /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:26 ///
/// int mLeftWheel = 0 ///
///
public int GetLeftWheel() => Jolt.PInvoke.VehicleAntiRollBar_GetLeftWheel(this); /// /// /// Index (in mWheels) that represents the left wheel of this anti-rollbar /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:26 ///
/// int mLeftWheel = 0 ///
///
public void SetLeftWheel(int value) => Jolt.PInvoke.VehicleAntiRollBar_SetLeftWheel(this, value); /// /// /// Index (in mWheels) that represents the right wheel of this anti-rollbar /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:27 ///
/// int mRightWheel = 1 ///
///
public int GetRightWheel() => Jolt.PInvoke.VehicleAntiRollBar_GetRightWheel(this); /// /// /// Index (in mWheels) that represents the right wheel of this anti-rollbar /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:27 ///
/// int mRightWheel = 1 ///
///
public void SetRightWheel(int value) => Jolt.PInvoke.VehicleAntiRollBar_SetRightWheel(this, value); /// /// /// Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:28 ///
/// float mStiffness = 1000.0f ///
///
public float GetStiffness() => Jolt.PInvoke.VehicleAntiRollBar_GetStiffness(this); /// /// /// Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleAntiRollBar.h:28 ///
/// float mStiffness = 1000.0f ///
///
public void SetStiffness(float value) => Jolt.PInvoke.VehicleAntiRollBar_SetStiffness(this, value); public void Dispose() => Jolt.PInvoke.VehicleAntiRollBar_Destroy(this); } }