Define a single particle for a particle system.
More...
Go to the source code of this file.
|
| namespace | lampda |
| | Program scope.
|
| |
| namespace | lampda::modes |
| | Contains basic interface types to implement custom user modes.
|
| |
|
|
using | lampda::modes::LampTy = hardware::LampTy |
| | Define a particle in cylindrical space, and movement equations on the cylinder surface.
|
| |
|
|
static constexpr float | lampda::modes::cylinderRadius_m = LampTy::lampBodyRadius_mm / 1000.0f |
| | radius of the cylinder, in meters
|
| |
|
static constexpr float | lampda::modes::angularSpeedGain = 50000 |
| | this gain compensate the angular acceleration for better display
|
| |
|
static constexpr float | lampda::modes::linearSpeedGain = 1.0 |
| | gain for the linear speeds
|
| |
|
static constexpr float | lampda::modes::reboundCoeff = 0.1f |
| | low rebound [0 - 1] on walls
|
| |
|
static constexpr float | lampda::modes::speedDampening = 0.92f |
| | low speed dampening [0-0.99] at every steps (viscosity)
|
| |
|
static constexpr float | lampda::modes::maxAngularSpeed_radS = 4 * c_TWO_PI |
| | max angular speed in radians/s
|
| |
|
static constexpr float | lampda::modes::maxVerticalSpeed_mmS = 50 |
| | max vertical speed in mm/S
|
| |
|
static constexpr float | lampda::modes::ledsPerTurn = LampTy::ledPerTurns |
| | leds around the tube. Not an integer: rows are sheared
|
| |
|
static constexpr float | lampda::modes::rowHeight_mm = LampTy::ledStripWidth_mm |
| | height gained by the helix in one turn
|
| |
|
static constexpr float | lampda::modes::ledLength_mm = LampTy::ledSize_mm |
| | length of a led along the strip
|
| |
|
static constexpr float | lampda::modes::cylinderRadius_mm = LampTy::lampBodyRadius_mm |
| | radius of the cylinder, in millimeters ratio between the speed gained around the tube and the physical one
|
| |
|
static constexpr float | lampda::modes::aroundTubeRatio = angularSpeedGain * cylinderRadius_m * cylinderRadius_m * cylinderRadius_m |
| |
Define a single particle for a particle system.