32 : magnus_coefficient_(magnus_coefficient) {}
42 magnus_coefficient_ = coefficient;
58 const Vector3& spin_radps)
const {
64 double magnus_coefficient_{1.0e-4};
double magnusCoefficient() const
Returns the current Magnus coefficient.
Definition magnus_model.hpp:35
void setMagnusCoefficient(double coefficient)
Updates the Magnus coefficient used by computeForce().
Definition magnus_model.hpp:41
Vector3 computeForce(const Vector3 &velocity_mps, const Vector3 &spin_radps) const
Computes the lift force produced by the supplied velocity and spin.
Definition magnus_model.hpp:57
MagnusModel(double magnus_coefficient=1.0e-4)
Creates a Magnus-force model with the given coefficient.
Definition magnus_model.hpp:31
3D vector utility used throughout JSim physics.
Definition vector.hpp:22
static Vector3 magnusForce(const Vector3 &velocity, const Vector3 &omega, double k=1e-4) noexcept
Computes the Magnus lift force omega x v scaled by k.
Definition vector.hpp:226