#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
#define JPH_ASSERT(...)
Definition IssueReporting.h:33
EMotorState
Definition MotorSettings.h:16
@ Position
Motor will drive to target position.
@ Velocity
Motor will drive to target velocity.
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(class_name)
Definition SerializableObject.h:71
Definition MotorSettings.h:25
void RestoreBinaryState(StreamIn &inStream)
Restores contents from the binary stream inStream.
Definition MotorSettings.cpp:34
float mFrequency
Oscillation frequency when solving position target (Hz). Should be in the range (0,...
Definition MotorSettings.h:57
float mDamping
Damping when solving position target (0 = minimal damping, 1 = critical damping). Only used for posit...
Definition MotorSettings.h:58
MotorSettings(float inFrequency, float inDamping, float inForceLimit, float inTorqueLimit)
Definition MotorSettings.h:33
void SetForceLimits(float inMin, float inMax)
Set asymmetric force limits.
Definition MotorSettings.h:36
void SetTorqueLimits(float inMin, float inMax)
Set asymmetric torque limits.
Definition MotorSettings.h:39
float mMaxTorqueLimit
Maximum torque to apply in case of a angular constraint (N m). Not used when motor is a position moto...
Definition MotorSettings.h:62
float mMinTorqueLimit
Minimum torque to apply in case of a angular constraint (N m). Usually this is -mMaxTorqueLimit unles...
Definition MotorSettings.h:61
void SetForceLimit(float inLimit)
Set symmetric force limits.
Definition MotorSettings.h:42
bool IsValid() const
Check if settings are valid.
Definition MotorSettings.h:48
void SetTorqueLimit(float inLimit)
Set symmetric torque limits.
Definition MotorSettings.h:45
float mMaxForceLimit
Maximum force to apply in case of a linear constraint (N). Not used when motor is an angular motor.
Definition MotorSettings.h:60
void SaveBinaryState(StreamOut &inStream) const
Saves the contents of the motor settings in binary form to inStream.
Definition MotorSettings.cpp:24
float mMinForceLimit
Minimum force to apply in case of a linear constraint (N). Usually this is -mMaxForceLimit unless you...
Definition MotorSettings.h:59
Simple binary input stream.
Definition StreamIn.h:11
Simple binary output stream.
Definition StreamOut.h:11