|
HighMap library (C++)
|
Configuration parameters for GPU-based rock and debris trajectory simulation. More...
#include <rock_simulation.hpp>

Public Attributes | |
| BBox2D | bbox = BBox2D::unit() |
| Domain bounding box. | |
| float | time_step = 0.005f |
| Simulation time step dt in seconds. | |
| int | max_steps = 1500 |
| Maximum total simulation steps. | |
| float | gravity = 9.81f |
| Gravitational acceleration. | |
| float | soil_friction = 0.55f |
| Coulomb friction coefficient mu. | |
| float | rolling_resistance = 0.05f |
| Rolling resistance coefficient. | |
| float | inter_rock_restitution = 0.9f |
| Restitution between colliding rocks. | |
| float | min_velocity = 0.01f |
| Resting threshold speed. | |
| bool | respawn_out_of_bounds = false |
| Whether to respawn out-of-bounds rocks at initial position. | |
| float | spawn_fraction = 0.5f |
| progressively spawn (0.0 = all at start). | |
| uint32_t | seed = 0 |
| Random seed. | |
Configuration parameters for GPU-based rock and debris trajectory simulation.
| BBox2D hmap::RockSimulationOptions::bbox = BBox2D::unit() |
Domain bounding box.
| float hmap::RockSimulationOptions::time_step = 0.005f |
Simulation time step dt in seconds.
| int hmap::RockSimulationOptions::max_steps = 1500 |
Maximum total simulation steps.
| float hmap::RockSimulationOptions::gravity = 9.81f |
Gravitational acceleration.
| float hmap::RockSimulationOptions::soil_friction = 0.55f |
Coulomb friction coefficient mu.
| float hmap::RockSimulationOptions::rolling_resistance = 0.05f |
Rolling resistance coefficient.
| float hmap::RockSimulationOptions::inter_rock_restitution = 0.9f |
Restitution between colliding rocks.
| float hmap::RockSimulationOptions::min_velocity = 0.01f |
Resting threshold speed.
| bool hmap::RockSimulationOptions::respawn_out_of_bounds = false |
Whether to respawn out-of-bounds rocks at initial position.
| float hmap::RockSimulationOptions::spawn_fraction = 0.5f |
progressively spawn (0.0 = all at start).
Fraction of max_steps over which rocks
| uint32_t hmap::RockSimulationOptions::seed = 0 |
Random seed.