29 void CalculateTorqueRatio(
float inLeftAngularVelocity,
float inRightAngularVelocity,
float &outLeftTorqueFraction,
float &outRightTorqueFraction)
const;
#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(class_name)
Definition SerializableObject.h:71
Simple binary input stream.
Definition StreamIn.h:11
Simple binary output stream.
Definition StreamOut.h:11
Definition VehicleDifferential.h:14
float mDifferentialRatio
Ratio between rotation speed of gear box and wheels.
Definition VehicleDifferential.h:33
int mLeftWheel
Index (in mWheels) that represents the left wheel of this differential (can be -1 to indicate no whee...
Definition VehicleDifferential.h:31
void RestoreBinaryState(StreamIn &inStream)
Restores the contents in binary form to inStream.
Definition VehicleDifferential.cpp:32
float mLeftRightSplit
Defines how the engine torque is split across the left and right wheel (0 = left, 0....
Definition VehicleDifferential.h:34
void SaveBinaryState(StreamOut &inStream) const
Saves the contents in binary form to inStream.
Definition VehicleDifferential.cpp:22
float mEngineTorqueRatio
How much of the engines torque is applied to this differential (0 = none, 1 = full),...
Definition VehicleDifferential.h:36
float mLimitedSlipRatio
Ratio max / min wheel speed. When this ratio is exceeded, all torque gets distributed to the slowest ...
Definition VehicleDifferential.h:35
int mRightWheel
Index (in mWheels) that represents the right wheel of this differential (can be -1 to indicate no whe...
Definition VehicleDifferential.h:32
void CalculateTorqueRatio(float inLeftAngularVelocity, float inRightAngularVelocity, float &outLeftTorqueFraction, float &outRightTorqueFraction) const
Definition VehicleDifferential.cpp:42