|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
comfort pass, body / view model helpers (PLAN.md "Comfort pass", rows 8b, 8c). More...
Go to the source code of this file.
Functions | |
| float | LuxComfortSwayAngle (float afAngle, float afRest, float afMul, float afMin, float afMax) |
| Lantern pendulum as shown. | |
comfort pass, body / view model helpers (PLAN.md "Comfort pass", rows 8b, 8c).
Pure, unit tested in tests/cpp/test_comfort_body.cpp. Shared values live in LuxComfort.h.
Definition in file LuxComfortBody.h.
|
inline |
Lantern pendulum as shown.
The physics keep running at vanilla values (so nothing new can oscillate or jitter); only the swing away from its rest angle (straight down, from the camera pitch and roll) is scaled on output, which damps the shown amplitude and swing speed alike. afMul 1 (or more) returns the vanilla angle untouched; 0 hangs the lantern at rest.
Definition at line 12 of file LuxComfortBody.h.