|
Momentum Scripting v1
|
#include <MaterialPair.h>
Public Member Functions | |
| double | getAdhesion () const |
| double | getAdhesiveOverlap () const |
| double | getDamping () const |
| double | getFriction () const |
| std::shared_ptr< Material > | getMaterial (int position) const |
| std::shared_ptr< Material > | getMaterial1 () const |
| std::shared_ptr< Material > | getMaterial2 () const |
| double | getRestitution () const |
| double | getRollingResistance () const |
| double | getTwistingResistance () const |
| double | getYoungsModulus () const |
| bool | operator== (const MaterialPair &other) const |
| void | setAdhesion (double adhesion) |
| void | setAdhesiveOverlap (double adhesiveOverlap) |
| void | setDamping (double damping) |
| void | setFriction (double friction) |
| void | setRestitution (double restitution) |
| void | setRollingResistance (double rollingResistance) |
| void | setTwistingResistance (double twistingResistance) |
| void | setYoungsModulus (double youngsModulus) |
A MaterialPair defines the contact behavior between two geometries with specified materials.
| double MOMENTUM_NAMESPACE::MaterialPair::getAdhesion | ( | ) | const |
Get the adhesion force of the material, in Newton.
Available in Momentum Granular
| double MOMENTUM_NAMESPACE::MaterialPair::getAdhesiveOverlap | ( | ) | const |
Get the adhesive overlap of the material, in meters.
Available in Momentum Granular
| double MOMENTUM_NAMESPACE::MaterialPair::getDamping | ( | ) | const |
Get the damping factor of the material, in seconds.
The value is the time the contact constraint has to fulfill its violation.
Available in Momentum Granular
| double MOMENTUM_NAMESPACE::MaterialPair::getFriction | ( | ) | const |
Get the coefficient of friction of the material.
| std::shared_ptr< Material > MOMENTUM_NAMESPACE::MaterialPair::getMaterial | ( | int | position | ) | const |
Get one of the materials which the contact material describes contacts between.
| position | - 0 for first material, 1 for second |
| std::shared_ptr< Material > MOMENTUM_NAMESPACE::MaterialPair::getMaterial1 | ( | ) | const |
Get the first material which defines this contact material.
| std::shared_ptr< Material > MOMENTUM_NAMESPACE::MaterialPair::getMaterial2 | ( | ) | const |
Get the second material which defines this contact material.
| double MOMENTUM_NAMESPACE::MaterialPair::getRestitution | ( | ) | const |
Get the coefficient of restitution of the material.
| double MOMENTUM_NAMESPACE::MaterialPair::getRollingResistance | ( | ) | const |
Get the rolling resistance coefficient of the material.
Available in Momentum Granular
| double MOMENTUM_NAMESPACE::MaterialPair::getTwistingResistance | ( | ) | const |
Get the twisting resistance coefficient of the material.
Available in Momentum Granular
| double MOMENTUM_NAMESPACE::MaterialPair::getYoungsModulus | ( | ) | const |
Get the Young's modulus, a measure of the stiffness, of the material, in Pascal.
| bool MOMENTUM_NAMESPACE::MaterialPair::operator== | ( | const MaterialPair & | other | ) | const |
| void MOMENTUM_NAMESPACE::MaterialPair::setAdhesion | ( | double | adhesion | ) |
Set the adhesion force of the material, in Newton.
| adhesion | - the adhesion force of the material. |
Only available in simulation mode Available in Momentum Granular
| void MOMENTUM_NAMESPACE::MaterialPair::setAdhesiveOverlap | ( | double | adhesiveOverlap | ) |
Set the adhesive overlap of the material, in meters.
| adhesionOverlap | - the adhesion overlap of the material. |
Only available in simulation mode Available in Momentum Granular
| void MOMENTUM_NAMESPACE::MaterialPair::setDamping | ( | double | damping | ) |
Set the damping factor of the material, in seconds.
The value is the time the contact constraint has to fulfill its violation.
| damping | - the damping factor of the material. |
Only available in simulation mode Available in Momentum Granular
| void MOMENTUM_NAMESPACE::MaterialPair::setFriction | ( | double | friction | ) |
Set the coefficient of friction of the material.
| friction | - the friction of the material. |
Only available in simulation mode
| void MOMENTUM_NAMESPACE::MaterialPair::setRestitution | ( | double | restitution | ) |
Set the coefficient of restitution of the material.
| restitution | - the restitution of the material. |
Only available in simulation mode
| void MOMENTUM_NAMESPACE::MaterialPair::setRollingResistance | ( | double | rollingResistance | ) |
Set the rolling resistance coefficient of the material.
| rollingResistance | - the rolling resistance coefficient of the material. |
Only available in simulation mode Available in Momentum Granular
| void MOMENTUM_NAMESPACE::MaterialPair::setTwistingResistance | ( | double | twistingResistance | ) |
Set the twisting resistance coefficient of the material.
| twistingResistance | - the twisting resistance coefficient of the material. |
Only available in simulation mode Available in Momentum Granular
| void MOMENTUM_NAMESPACE::MaterialPair::setYoungsModulus | ( | double | youngsModulus | ) |
Set the Young's modulus, a measure of the stiffness, of the material, in Pascal.
| youngsModulus | the Young's modulus of the material |
Only available in simulation mode