|
AGXDynamics
2.31.1.0
|
Material definition for a wire node Specifies the friction of a wire for sliding through an EyeNode. More...
#include <Node.h>
Public Types | |
| enum | Direction { NEGATIVE = 0, POSITIVE, BOTH } |
| Friction direction in a wire. More... | |
| enum | FrictionDirection { GO_FORWARD = 1, IS_DIRTY = (1<<1), FIX_FRICTION_DIRECTION = (1<<2) } |
| Internal. More... | |
Public Member Functions | |
| NodeMaterial () | |
| Default constructor. More... | |
| bool | getActive () const |
| Internal method. More... | |
| Direction | getActiveDirection () const |
| bool | getEnable () const |
| agx::Real | getFrictionCoefficient (Direction dir) const |
| agx::Real | getKinematicContactNodeVelocityScale (Direction dir) const |
| agx::Real | getMaxForce (Direction dir) |
| agx::Real | getNormalForceMagnitude () const |
| bool | hasValidRestLength () const |
| Internal method. More... | |
| bool | isEnabled () const |
| bool | isInfCoefficient (Direction dir) const |
| bool | isStick () const |
| Internal method. More... | |
| bool | isStick (Direction dir) const |
| Internal method. More... | |
| void | setActive (bool active) |
| Internal method. More... | |
| void | setFrictionCoefficient (agx::Real coeff, Direction dir=BOTH) |
| Set stick friction coefficient in one or both directions. More... | |
| void | setKinematicContactNodeVelocityScale (agx::Real scaler, Direction dir=BOTH) |
| Set slide friction coefficient in one or both directions. More... | |
| void | setStick (bool stick, Direction dir) |
| Internal method. More... | |
Protected Types | |
| enum | CurrentType { VELOCITY_SCALER = 0, FRICTION_COEFFICIENT } |
Protected Member Functions | |
| agx::Real | getViolationPerUnitLength () |
| void | setNormalForceMagnitude (agx::Real normalForce) |
| Assign the current normal force magnitude. More... | |
| void | setRestLength (agx::Real restLength) |
| Assign the rest length of the friction constraint. More... | |
| void | setViolation (agx::Real violation) |
| Assign current violation in the friction constraint. More... | |
| void | setViolationPerUnitLength (agx::Real violationPerUnitLength) |
| Assign violation per unit length. More... | |
Protected Attributes | |
| bool | m_activeConstraint |
| Tells you if the friction constraint is active. More... | |
| agx::Real | m_frictionCoeffs [2][BOTH] |
| VELOCITY_SCALER, FRICTION_COEFFICIENT and POSITIVE, NEGATIVE. More... | |
| char | m_goForward |
| Bit mask for GO_FORWARD, IS_DIRTY... More... | |
| agx::Real | m_normalForceMagnitude |
| Magnitude of the normal force. More... | |
| agx::Real | m_restLength |
| Rest length of the friction constraint. More... | |
| bool | m_stick [BOTH] |
| NEGATIVE and POSITIVE. More... | |
| agx::Real | m_violationPerUnitLength |
| Violation of the friction constraint. More... | |
Material definition for a wire node Specifies the friction of a wire for sliding through an EyeNode.
Definition at line 181 of file agxWire/Node.h.
|
protected |
| Enumerator | |
|---|---|
| VELOCITY_SCALER | |
| FRICTION_COEFFICIENT | |
Definition at line 407 of file agxWire/Node.h.
Friction direction in a wire.
| Enumerator | |
|---|---|
| NEGATIVE | Direction towards begin of the wire. |
| POSITIVE | Direction towards end of the wire. |
| BOTH | For mutators only, assigns both values. |
Definition at line 187 of file agxWire/Node.h.
Internal.
Direction of friction.
| Enumerator | |
|---|---|
| GO_FORWARD | Friction direction is forward. |
| IS_DIRTY | Friction direction has been changed. |
| FIX_FRICTION_DIRECTION | Friction direction is by definition on in one direction. |
Definition at line 197 of file agxWire/Node.h.
| agxWire::NodeMaterial::NodeMaterial | ( | ) |
Default constructor.
| bool agxWire::NodeMaterial::getActive | ( | ) | const |
Internal method.
| Direction agxWire::NodeMaterial::getActiveDirection | ( | ) | const |
| bool agxWire::NodeMaterial::getEnable | ( | ) | const |
dir for the friction constraints force range | agx::Real agxWire::NodeMaterial::getNormalForceMagnitude | ( | ) | const |
|
protected |
| bool agxWire::NodeMaterial::hasValidRestLength | ( | ) | const |
Internal method.
| bool agxWire::NodeMaterial::isEnabled | ( | ) | const |
| bool agxWire::NodeMaterial::isInfCoefficient | ( | Direction | dir | ) | const |
dir and stick (true) coefficient or edge velocity scaler (stick = false) | bool agxWire::NodeMaterial::isStick | ( | ) | const |
Internal method.
| bool agxWire::NodeMaterial::isStick | ( | Direction | dir | ) | const |
Internal method.
| void agxWire::NodeMaterial::setActive | ( | bool | active | ) |
Internal method.
Set if this material should generate constraints or not.
| active | - true to activate constraints |
Set stick friction coefficient in one or both directions.
| coeff | - stick friction coefficient |
| dir | - direction (Default: BOTH, valid NEGATIVE, POSITIVE or BOTH) |
| void agxWire::NodeMaterial::setKinematicContactNodeVelocityScale | ( | agx::Real | scaler, |
| Direction | dir = BOTH |
||
| ) |
Set slide friction coefficient in one or both directions.
| scaler | - edge velocity scaler |
| dir | - direction (Default: BOTH, valid NEGATIVE, POSITIVE or BOTH) |
Assign the current normal force magnitude.
| normalForce | - current normal force magnitude |
Assign the rest length of the friction constraint.
| restLength | - new rest length |
Internal method.
Set that negative, positive or both direction has stick friction.
Assign current violation in the friction constraint.
| violation | - current violation |
Assign violation per unit length.
| violationPerUnitLength | - new violation per unit length |
|
protected |
Tells you if the friction constraint is active.
Definition at line 415 of file agxWire/Node.h.
VELOCITY_SCALER, FRICTION_COEFFICIENT and POSITIVE, NEGATIVE.
Definition at line 410 of file agxWire/Node.h.
|
protected |
Bit mask for GO_FORWARD, IS_DIRTY...
Definition at line 414 of file agxWire/Node.h.
|
protected |
Magnitude of the normal force.
Definition at line 412 of file agxWire/Node.h.
|
protected |
Rest length of the friction constraint.
Definition at line 411 of file agxWire/Node.h.
|
protected |
NEGATIVE and POSITIVE.
Definition at line 413 of file agxWire/Node.h.
|
protected |
Violation of the friction constraint.
Definition at line 416 of file agxWire/Node.h.