ludus::foundation::math::LinearDragStep¶
Ludus Wiki · API overview · Browse API
Struct
Exact coefficients for dv/dt = -rate * (v - constantTargetVelocity).
displacement = target * dt + (velocity - target) * DistanceScale. velocityNext = target + (velocity - target) * VelocityScale.
Declared in modules/foundation/math/include/ludus/foundation/math/dynamics.hpp
#include <ludus/foundation/math/dynamics.hpp>
struct ludus::foundation::math::LinearDragStep final
Fields¶
VelocityScale¶
float64 ludus::foundation::math::LinearDragStep::VelocityScale = 1.0
Related types: float64
Declared in modules/foundation/math/include/ludus/foundation/math/dynamics.hpp
DistanceScale¶
float64 ludus::foundation::math::LinearDragStep::DistanceScale = 0.0
Related types: float64
Declared in modules/foundation/math/include/ludus/foundation/math/dynamics.hpp