Skip to content

raisim::rscene::ContactMaterial ​

struct · #include <raisim/Rscene.hpp>

A contact_material record: the material-pair properties of two RaiSim contact materials, passed to World::setMaterialPairProp() in this order.

Public attributes ​

materialA ​

cpp
std::string materialA

The two contact material names.

materialB ​

cpp
std::string materialB

friction ​

cpp
double friction

Friction coefficient, restitution and restitution threshold (m/s).

restitution ​

cpp
double restitution

restitutionThreshold ​

cpp
double restitutionThreshold

staticFriction ​

cpp
double staticFriction

Static friction coefficient and its transition speed (m/s).

staticFrictionVelocityThreshold ​

cpp
double staticFrictionVelocityThreshold

rollingFriction ​

cpp
double rollingFriction

Rolling and spinning friction coefficients.

spinningFriction ​

cpp
double spinningFriction

RaiSim — physics for robotics and AI.