// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { public static partial class Jolt { public static unsafe partial class PInvoke { /// /// /// Saves the contents in binary form to inStream. /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleDifferential.h:19 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_SaveBinaryState")] public static partial void VehicleDifferentialSettings_SaveBinaryState( ref VehicleDifferentialSettings self, StreamOut stream ); /// /// /// Restores the contents in binary form to inStream. /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleDifferential.h:22 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
[LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_RestoreBinaryState")] public static partial void VehicleDifferentialSettings_RestoreBinaryState( ref VehicleDifferentialSettings self, StreamIn stream ); /// /// /// Calculate the torque ratio between left and right wheel /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleDifferential.h:29 ///
/// void CalculateTorqueRatio(float inLeftAngularVelocity, float inRightAngularVelocity, float &outLeftTorqueFraction, float &outRightTorqueFraction) const ///
///
/// /// /// Calculate the torque ratio between left and right wheel /// @param inLeftAngularVelocity Angular velocity of left wheel (rad / s) /// @param inRightAngularVelocity Angular velocity of right wheel (rad / s) /// @param outLeftTorqueFraction Fraction of torque that should go to the left wheel /// @param outRightTorqueFraction Fraction of torque that should go to the right wheel /// /// [LibraryImport("jolt", EntryPoint = "VehicleDifferentialSettings_CalculateTorqueRatio")] public static partial void VehicleDifferentialSettings_CalculateTorqueRatio( ref VehicleDifferentialSettings self, float leftAngularVelocity, float rightAngularVelocity, out float leftTorqueFraction, out float rightTorqueFraction ); } } }