struct
object_constantsConstants used to fine-tune the behaviour of an object in the simulation.
Public static functions
-
static auto defaults() -> object_
constants noexcept - Returns an object_
constants instance with all values initialized to their internal defaults.
Public variables
- float density
- The default density (mass per area) applied to the particles, between 0 and 1000.
- float contact_distance
- The distance required for collision contacts to occur.
- float position_constraint_strength
- The default strength applied to position constraints, between 0 and 1000.
- float stretch_constraint_strength
- The default strength applied to stretch constraints, between 0 and 1000.
- float bend_constraint_strength
- The default strength applied to bend constraints, between 0 and 1000.
- float triangle_collision_constraint_strength
- The default strength applied to triangle collision constraints, between 0 and 1000.
Function documentation
static object_ constants stim:: object_constants:: defaults() noexcept
Returns an object_
Variable documentation
float stim:: object_constants:: density
The default density (mass per area) applied to the particles, between 0 and 1000.
float stim:: object_constants:: contact_distance
The distance required for collision contacts to occur.
float stim:: object_constants:: position_constraint_strength
The default strength applied to position constraints, between 0 and 1000.
float stim:: object_constants:: stretch_constraint_strength
The default strength applied to stretch constraints, between 0 and 1000.
float stim:: object_constants:: bend_constraint_strength
The default strength applied to bend constraints, between 0 and 1000.
float stim:: object_constants:: triangle_collision_constraint_strength
The default strength applied to triangle collision constraints, between 0 and 1000.