Represents a frictional contact between bodies.
More...
#include <Contact.h>
Represents a frictional contact between bodies.
◆ Contact()
| Contact::Contact |
( |
int |
id, |
|
|
double |
friction, |
|
|
int |
master_id, |
|
|
int |
slave_id, |
|
|
string |
normal_type |
|
) |
| |
Constructor.
- Parameters
-
| contact | id |
| friction | Friction coefficient |
| master_id | ID of the master body |
| slave_id | ID of the slave body |
| normal_type | Normal type: "master", "slave" or "collinear" |
◆ ~Contact()
| virtual Contact::~Contact |
( |
| ) |
|
|
virtual |
◆ getFrictionCoefficient()
| double Contact::getFrictionCoefficient |
( |
| ) |
const |
|
inline |
◆ getId()
| int Contact::getId |
( |
| ) |
const |
|
inline |
◆ getMasterId()
| int Contact::getMasterId |
( |
| ) |
const |
|
inline |
◆ getNormalType()
| const string & Contact::getNormalType |
( |
| ) |
const |
|
inline |
◆ getSlaveId()
| int Contact::getSlaveId |
( |
| ) |
const |
|
inline |
◆ setFrictionCoefficient()
| void Contact::setFrictionCoefficient |
( |
double |
mu | ) |
|
|
inline |
◆ setId()
| void Contact::setId |
( |
int |
new_id | ) |
|
|
inline |
◆ setMasterId()
| void Contact::setMasterId |
( |
int |
new_master_id | ) |
|
|
inline |
◆ setNormalType()
| void Contact::setNormalType |
( |
const string & |
type | ) |
|
|
inline |
◆ setSlaveId()
| void Contact::setSlaveId |
( |
int |
new_slave_id | ) |
|
|
inline |
◆ frictionCoefficient
| double Contact::frictionCoefficient = 0.0 |
|
private |
Friction coefficient \(\mu\).
◆ id
◆ masterId
| int Contact::masterId = 0 |
|
private |
◆ normalType
| string Contact::normalType = "master" |
|
private |
Normal type: "master", "slave" or "collinear".
◆ slaveId
The documentation for this class was generated from the following file: