HighMap library (C++)
Loading...
Searching...
No Matches
hmap::RockSimulationOptions Struct Reference

Configuration parameters for GPU-based rock and debris trajectory simulation. More...

#include <rock_simulation.hpp>

Collaboration diagram for hmap::RockSimulationOptions:

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.

Detailed Description

Configuration parameters for GPU-based rock and debris trajectory simulation.

Member Data Documentation

◆ bbox

BBox2D hmap::RockSimulationOptions::bbox = BBox2D::unit()

Domain bounding box.

◆ time_step

float hmap::RockSimulationOptions::time_step = 0.005f

Simulation time step dt in seconds.

◆ max_steps

int hmap::RockSimulationOptions::max_steps = 1500

Maximum total simulation steps.

◆ gravity

float hmap::RockSimulationOptions::gravity = 9.81f

Gravitational acceleration.

◆ soil_friction

float hmap::RockSimulationOptions::soil_friction = 0.55f

Coulomb friction coefficient mu.

◆ rolling_resistance

float hmap::RockSimulationOptions::rolling_resistance = 0.05f

Rolling resistance coefficient.

◆ inter_rock_restitution

float hmap::RockSimulationOptions::inter_rock_restitution = 0.9f

Restitution between colliding rocks.

◆ min_velocity

float hmap::RockSimulationOptions::min_velocity = 0.01f

Resting threshold speed.

◆ respawn_out_of_bounds

bool hmap::RockSimulationOptions::respawn_out_of_bounds = false

Whether to respawn out-of-bounds rocks at initial position.

◆ spawn_fraction

float hmap::RockSimulationOptions::spawn_fraction = 0.5f

progressively spawn (0.0 = all at start).

Fraction of max_steps over which rocks

◆ seed

uint32_t hmap::RockSimulationOptions::seed = 0

Random seed.


The documentation for this struct was generated from the following file: