|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inline |
Radial attraction/repulsion toward an anchor point.
| anchor | Target position |
| strength | Force magnitude scalar (positive attracts, negative repels) |
Force magnitude follows inverse square: strength / max(d², floor). Direction is normalized delta from evaluation point to anchor. Floor of 0.1 prevents singularity at the anchor position.
Definition at line 19 of file ForceFields.hpp.
References MayaFlux::Kinesis::Tendency< D, R >::fn.
Referenced by MayaFlux::Nodes::Network::PhysicsOperator::apply_attraction_forces().
Here is the caller graph for this function: