|
Momentum Scripting v1
|
#include <FrictionController.h>
Public Member Functions | |
| bool | getEnableNonLinearDirectSolveUpdate () const |
| double | getFrictionCoefficient () const |
| std::pair< double, double > | getMinimumStaticFrictionForceRange () const |
| bool | isActive () const |
| void | setEnableNonLinearDirectSolveUpdate (bool enable) |
| void | setFrictionCoefficient (double frictionCoefficient) |
| void | setMinimumStaticFrictionForceRange (double min, double max) |
| void | setMinimumStaticFrictionForceRange (std::pair< double, double > range) |
Translational or rotational friction controller for Hinge, Prismatic and CylindricalJoint.
| bool MOMENTUM_NAMESPACE::FrictionController::getEnableNonLinearDirectSolveUpdate | ( | ) | const |
| double MOMENTUM_NAMESPACE::FrictionController::getFrictionCoefficient | ( | ) | const |
| std::pair< double, double > MOMENTUM_NAMESPACE::FrictionController::getMinimumStaticFrictionForceRange | ( | ) | const |
Get the minimum force range that this friction controller can apply.
See setMinimumStaticFrictionForceRange
| bool MOMENTUM_NAMESPACE::FrictionController::isActive | ( | ) | const |
| void MOMENTUM_NAMESPACE::FrictionController::setEnableNonLinearDirectSolveUpdate | ( | bool | enable | ) |
Enable/disable non-linear update of the friction conditions given current normal force from the direct solver.
When enabled - this feature is similar to scale box friction models with solve type DIRECT.
Default: Disabled
| enable | - true to enable, false to disable (Disabled by default.) |
| void MOMENTUM_NAMESPACE::FrictionController::setFrictionCoefficient | ( | double | frictionCoefficient | ) |
Assign friction coefficient.
Default: 0.4167.
| frictionCoefficient | - friction coefficient |
| void MOMENTUM_NAMESPACE::FrictionController::setMinimumStaticFrictionForceRange | ( | double | min, |
| double | max | ||
| ) |
Set the minimum force range that this friction controller can apply.
Can be used to simulate static friction. Default: (0, 0)
| min | - the new minimum range, N for linear friction controllers and Nm for rotational friction controllers |
| max | - the new maximum range, N for linear friction controllers and Nm for rotational friction controllers |
| void MOMENTUM_NAMESPACE::FrictionController::setMinimumStaticFrictionForceRange | ( | std::pair< double, double > | range | ) |
Set the minimum force range that this friction controller can apply.
Can be used to simulate static friction. Default: (0, 0)
| range | - a double pair with min and max range, N for linear friction controllers and Nm for rotational friction controllers |