#include <MotorSettings.h>
|
float | mFrequency = 2.0f |
| Oscillation frequency when solving position target (Hz). Should be in the range (0, 0.5 * simulation frequency]. When simulating at 60 Hz, 20 is a good value for a strong motor. Only used for position motors.
|
|
float | mDamping = 1.0f |
| Damping when solving position target (0 = minimal damping, 1 = critical damping). Only used for position motors.
|
|
float | mMinForceLimit = -FLT_MAX |
| Minimum force to apply in case of a linear constraint (N). Usually this is -mMaxForceLimit unless you want a motor that can e.g. push but not pull. Not used when motor is an angular motor.
|
|
float | mMaxForceLimit = FLT_MAX |
| Maximum force to apply in case of a linear constraint (N). Not used when motor is an angular motor.
|
|
float | mMinTorqueLimit = -FLT_MAX |
| Minimum torque to apply in case of a angular constraint (N m). Usually this is -mMaxTorqueLimit unless you want a motor that can e.g. push but not pull. Not used when motor is a position motor.
|
|
float | mMaxTorqueLimit = FLT_MAX |
| Maximum torque to apply in case of a angular constraint (N m). Not used when motor is a position motor.
|
|
Class that contains the settings for a constraint motor. See the main page of the API documentation for more information on how to configure a motor.
◆ MotorSettings() [1/4]
MotorSettings::MotorSettings |
( |
| ) |
|
|
default |
◆ MotorSettings() [2/4]
◆ MotorSettings() [3/4]
MotorSettings::MotorSettings |
( |
float | inFrequency, |
|
|
float | inDamping ) |
|
inline |
◆ MotorSettings() [4/4]
MotorSettings::MotorSettings |
( |
float | inFrequency, |
|
|
float | inDamping, |
|
|
float | inForceLimit, |
|
|
float | inTorqueLimit ) |
|
inline |
◆ IsValid()
bool MotorSettings::IsValid |
( |
| ) |
const |
|
inline |
Check if settings are valid.
◆ RestoreBinaryState()
void MotorSettings::RestoreBinaryState |
( |
StreamIn & | inStream | ) |
|
Restores contents from the binary stream inStream.
◆ SaveBinaryState()
void MotorSettings::SaveBinaryState |
( |
StreamOut & | inStream | ) |
const |
Saves the contents of the motor settings in binary form to inStream.
◆ SetForceLimit()
void MotorSettings::SetForceLimit |
( |
float | inLimit | ) |
|
|
inline |
Set symmetric force limits.
◆ SetForceLimits()
void MotorSettings::SetForceLimits |
( |
float | inMin, |
|
|
float | inMax ) |
|
inline |
Set asymmetric force limits.
◆ SetTorqueLimit()
void MotorSettings::SetTorqueLimit |
( |
float | inLimit | ) |
|
|
inline |
Set symmetric torque limits.
◆ SetTorqueLimits()
void MotorSettings::SetTorqueLimits |
( |
float | inMin, |
|
|
float | inMax ) |
|
inline |
Set asymmetric torque limits.
◆ mDamping
float MotorSettings::mDamping = 1.0f |
Damping when solving position target (0 = minimal damping, 1 = critical damping). Only used for position motors.
◆ mFrequency
float MotorSettings::mFrequency = 2.0f |
Oscillation frequency when solving position target (Hz). Should be in the range (0, 0.5 * simulation frequency]. When simulating at 60 Hz, 20 is a good value for a strong motor. Only used for position motors.
◆ mMaxForceLimit
float MotorSettings::mMaxForceLimit = FLT_MAX |
Maximum force to apply in case of a linear constraint (N). Not used when motor is an angular motor.
◆ mMaxTorqueLimit
float MotorSettings::mMaxTorqueLimit = FLT_MAX |
Maximum torque to apply in case of a angular constraint (N m). Not used when motor is a position motor.
◆ mMinForceLimit
float MotorSettings::mMinForceLimit = -FLT_MAX |
Minimum force to apply in case of a linear constraint (N). Usually this is -mMaxForceLimit unless you want a motor that can e.g. push but not pull. Not used when motor is an angular motor.
◆ mMinTorqueLimit
float MotorSettings::mMinTorqueLimit = -FLT_MAX |
Minimum torque to apply in case of a angular constraint (N m). Usually this is -mMaxTorqueLimit unless you want a motor that can e.g. push but not pull. Not used when motor is a position motor.
The documentation for this class was generated from the following files: