![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
#include <VehicleAntiRollBar.h>
Public Member Functions | |
| void | SaveBinaryState (StreamOut &inStream) const |
| Saves the contents in binary form to inStream. | |
| void | RestoreBinaryState (StreamIn &inStream) |
| Restores the contents in binary form to inStream. | |
Public Attributes | |
| int | mLeftWheel = 0 |
| Index (in mWheels) that represents the left wheel of this anti-rollbar. | |
| int | mRightWheel = 1 |
| Index (in mWheels) that represents the right wheel of this anti-rollbar. | |
| float | mStiffness = 1000.0f |
| Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar. | |
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
| void VehicleAntiRollBar::RestoreBinaryState | ( | StreamIn & | inStream | ) |
Restores the contents in binary form to inStream.
| void VehicleAntiRollBar::SaveBinaryState | ( | StreamOut & | inStream | ) | const |
Saves the contents in binary form to inStream.
| int VehicleAntiRollBar::mLeftWheel = 0 |
Index (in mWheels) that represents the left wheel of this anti-rollbar.
| int VehicleAntiRollBar::mRightWheel = 1 |
Index (in mWheels) that represents the right wheel of this anti-rollbar.
| float VehicleAntiRollBar::mStiffness = 1000.0f |
Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar.