// // 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/VehicleEngine.h:20 ///
/// class VehicleEngineSettings ///
///
/// /// /// Generic properties for a vehicle engine /// /// [InteropHandle] public readonly partial struct VehicleEngineSettings : IDisposable { /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:26 ///
/// VehicleEngineSettings() ///
///
/// /// /// Constructor /// /// public static VehicleEngineSettings Create() => Jolt.PInvoke.VehicleEngineSettings_Create(); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:29 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the contents in binary form to inStream. /// /// public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.VehicleEngineSettings_SaveBinaryState(this, stream); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:32 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restores the contents in binary form to inStream. /// /// public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.VehicleEngineSettings_RestoreBinaryState(this, stream); /// /// /// Max amount of torque (Nm) that the engine can deliver /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:34 ///
/// float mMaxTorque = 500.0f ///
///
public float GetMaxTorque() => Jolt.PInvoke.VehicleEngineSettings_GetMaxTorque(this); /// /// /// Max amount of torque (Nm) that the engine can deliver /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:34 ///
/// float mMaxTorque = 500.0f ///
///
public void SetMaxTorque(float value) => Jolt.PInvoke.VehicleEngineSettings_SetMaxTorque(this, value); /// /// /// Min amount of revolutions per minute (rpm) the engine can produce without stalling /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:35 ///
/// float mMinRPM = 1000.0f ///
///
public float GetMinRPM() => Jolt.PInvoke.VehicleEngineSettings_GetMinRPM(this); /// /// /// Min amount of revolutions per minute (rpm) the engine can produce without stalling /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:35 ///
/// float mMinRPM = 1000.0f ///
///
public void SetMinRPM(float value) => Jolt.PInvoke.VehicleEngineSettings_SetMinRPM(this, value); /// /// /// Max amount of revolutions per minute (rpm) the engine can generate /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:36 ///
/// float mMaxRPM = 6000.0f ///
///
public float GetMaxRPM() => Jolt.PInvoke.VehicleEngineSettings_GetMaxRPM(this); /// /// /// Max amount of revolutions per minute (rpm) the engine can generate /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:36 ///
/// float mMaxRPM = 6000.0f ///
///
public void SetMaxRPM(float value) => Jolt.PInvoke.VehicleEngineSettings_SetMaxRPM(this, value); /// /// /// Moment of inertia (kg m^2) of the engine /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:38 ///
/// float mInertia = 0.5f ///
///
public float GetInertia() => Jolt.PInvoke.VehicleEngineSettings_GetInertia(this); /// /// /// Moment of inertia (kg m^2) of the engine /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:38 ///
/// float mInertia = 0.5f ///
///
public void SetInertia(float value) => Jolt.PInvoke.VehicleEngineSettings_SetInertia(this, value); /// /// /// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually /// close to 0. /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:39 ///
/// float mAngularDamping = 0.2f ///
///
public float GetAngularDamping() => Jolt.PInvoke.VehicleEngineSettings_GetAngularDamping(this); /// /// /// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually /// close to 0. /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleEngine.h:39 ///
/// float mAngularDamping = 0.2f ///
///
public void SetAngularDamping(float value) => Jolt.PInvoke.VehicleEngineSettings_SetAngularDamping(this, value); public void Dispose() => Jolt.PInvoke.VehicleEngineSettings_Destroy(this); } }