|
JSim 2026.06.01-p(1)
|
Material-pair contact interaction override entry. More...
#include <physics_world.hpp>
Public Attributes | |
| std::int32_t | material_a_id {0} |
| First material numeric id (application-defined namespace). | |
| std::int32_t | material_b_id {0} |
| Second material numeric id (application-defined namespace). | |
| double | restitution {0.5} |
| Pair-specific restitution coefficient, typically in [0, 1]. | |
| double | friction {0.6} |
| Pair-specific friction coefficient, typically >= 0. | |
| bool | enabled {true} |
| True when this row should be considered during lookup. | |
Material-pair contact interaction override entry.
This table row overrides default contact coefficients when a body with material_a_id collides with a boundary or body using material_b_id. Lookup is symmetric, so (A, B) and (B, A) are equivalent.
| bool frcsim::PhysicsWorld::MaterialInteraction::enabled {true} |
True when this row should be considered during lookup.
| double frcsim::PhysicsWorld::MaterialInteraction::friction {0.6} |
Pair-specific friction coefficient, typically >= 0.
| std::int32_t frcsim::PhysicsWorld::MaterialInteraction::material_a_id {0} |
First material numeric id (application-defined namespace).
| std::int32_t frcsim::PhysicsWorld::MaterialInteraction::material_b_id {0} |
Second material numeric id (application-defined namespace).
| double frcsim::PhysicsWorld::MaterialInteraction::restitution {0.5} |
Pair-specific restitution coefficient, typically in [0, 1].