Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
VehicleAntiRollBar Class Reference

#include <VehicleAntiRollBar.h>

Public Member Functions

void SaveBinaryState (StreamOut &inStream) const
 Saves the contents in binary form to inStream. More...
 
void RestoreBinaryState (StreamIn &inStream)
 Restores the contents in binary form to inStream. More...
 

Public Attributes

int mLeftWheel = 0
 Index (in mWheels) that represents the left wheel of this anti-rollbar. More...
 
int mRightWheel = 1
 Index (in mWheels) that represents the right wheel of this anti-rollbar. More...
 
float mStiffness = 1000.0f
 Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar. More...
 

Detailed Description

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

Member Function Documentation

◆ RestoreBinaryState()

void VehicleAntiRollBar::RestoreBinaryState ( StreamIn inStream)

Restores the contents in binary form to inStream.

◆ SaveBinaryState()

void VehicleAntiRollBar::SaveBinaryState ( StreamOut inStream) const

Saves the contents in binary form to inStream.

Member Data Documentation

◆ mLeftWheel

int VehicleAntiRollBar::mLeftWheel = 0

Index (in mWheels) that represents the left wheel of this anti-rollbar.

◆ mRightWheel

int VehicleAntiRollBar::mRightWheel = 1

Index (in mWheels) that represents the right wheel of this anti-rollbar.

◆ mStiffness

float VehicleAntiRollBar::mStiffness = 1000.0f

Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar.


The documentation for this class was generated from the following files: