|
Motive Animation System
An open source project by
FPL.
|
Helper to determine if we're "at the target" and "stopped". More...
#include <util.h>
Helper to determine if we're "at the target" and "stopped".
Public Member Functions | |
| bool | Settled (float dist, float velocity) const |
| template<class Motivator > | |
| bool | Settled (const Motivator &motivator) const |
Return true if motivator is "at the target" and "stopped". | |
| template<> | |
| bool | Settled (const Motivator1f &motivator) const |
Public Attributes | |
| float | max_difference |
| float | max_velocity |
| Consider ourselves "stopped" if the absolute velocity is less than this. | |
|
inline |
Return true if our distance from target is and velocity are less than this class' threshold.
| float motive::Settled1f::max_difference |
Consider ourselves "at the target" if the absolute difference between the value and the target is less than this.