NcEngine
nc::SpringSettings Struct Reference

Settings for softening constraints with a spring-damper. More...

#include <SpringSettings.h>

Classes

struct  Damping
 Spring damping value hints. More...
 
struct  Frequency
 Spring frequency value hints. More...
 

Public Attributes

float frequency = Frequency::Disabled
 oscillation rate in hertz [0, targetFPS / 2]
 
float damping = Damping::Undamped
 oscillation decay [0, 1] (typical max is 1, but larger values are allowed)
 

Detailed Description

Settings for softening constraints with a spring-damper.


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