Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
VehicleAntiRollBar.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
10
12
16{
17public:
19
20
21 void SaveBinaryState(StreamOut &inStream) const;
22
24 void RestoreBinaryState(StreamIn &inStream);
25
26 int mLeftWheel = 0;
27 int mRightWheel = 1;
28 float mStiffness = 1000.0f;
29};
30
#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: VehicleAntiRollBar.h:16
int mRightWheel
Index (in mWheels) that represents the right wheel of this anti-rollbar.
Definition: VehicleAntiRollBar.h:27
float mStiffness
Stiffness (spring constant in N/m) of anti rollbar, can be 0 to disable the anti-rollbar.
Definition: VehicleAntiRollBar.h:28
void RestoreBinaryState(StreamIn &inStream)
Restores the contents in binary form to inStream.
Definition: VehicleAntiRollBar.cpp:26
void SaveBinaryState(StreamOut &inStream) const
Saves the contents in binary form to inStream.
Definition: VehicleAntiRollBar.cpp:19
int mLeftWheel
Index (in mWheels) that represents the left wheel of this anti-rollbar.
Definition: VehicleAntiRollBar.h:26