Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
BlobConfig::PhysicsParameters Struct Reference

Structure holding parameters controlling the physics simulation of the blob. More...

#include <blob_config.h>

Collaboration diagram for BlobConfig::PhysicsParameters:

Public Attributes

double damping = 0.91
 Factor by which velocity is reduced each frame (0.0 to 1.0). Controls how quickly movement stops.
 
double max_neighbor_distance = 0.6
 Maximum allowed distance between neighboring control points (relative to radius).
 
double max_speed = 0.05
 Maximum speed limit for individual control points (prevents instability).
 
double min_neighbor_distance = 0.1
 Minimum allowed distance between neighboring control points (relative to radius).
 
double restitution = 0.2
 Bounciness factor for border collisions (0.0 = no bounce, 1.0 = full bounce).
 
double stabilization_rate = 0.001
 Rate at which the blob returns to a more circular shape when idle (0.0 to 1.0).
 
double velocity_threshold = 0.1
 Minimum velocity magnitude considered significant (used for state transitions).
 
double viscosity = 0.015
 Resistance to internal deformation (higher values make it more rigid).
 

Detailed Description

Structure holding parameters controlling the physics simulation of the blob.

Member Data Documentation

◆ damping

double BlobConfig::PhysicsParameters::damping = 0.91

Factor by which velocity is reduced each frame (0.0 to 1.0). Controls how quickly movement stops.

◆ max_neighbor_distance

double BlobConfig::PhysicsParameters::max_neighbor_distance = 0.6

Maximum allowed distance between neighboring control points (relative to radius).

◆ max_speed

double BlobConfig::PhysicsParameters::max_speed = 0.05

Maximum speed limit for individual control points (prevents instability).

◆ min_neighbor_distance

double BlobConfig::PhysicsParameters::min_neighbor_distance = 0.1

Minimum allowed distance between neighboring control points (relative to radius).

◆ restitution

double BlobConfig::PhysicsParameters::restitution = 0.2

Bounciness factor for border collisions (0.0 = no bounce, 1.0 = full bounce).

◆ stabilization_rate

double BlobConfig::PhysicsParameters::stabilization_rate = 0.001

Rate at which the blob returns to a more circular shape when idle (0.0 to 1.0).

◆ velocity_threshold

double BlobConfig::PhysicsParameters::velocity_threshold = 0.1

Minimum velocity magnitude considered significant (used for state transitions).

◆ viscosity

double BlobConfig::PhysicsParameters::viscosity = 0.015

Resistance to internal deformation (higher values make it more rigid).


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