|
@ -741,8 +741,7 @@ public: |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
bool isImmediateTransition(bool state, float diff) { |
|
|
bool isImmediateTransition(bool state, float diff) { |
|
|
return (!_time || (_step >= _time) || (std::abs(diff) <= std::numeric_limits<float>::epsilon()) |
|
|
|
|
|
|| (!state && (diff > 0.0)) || (state && (diff < 0.0))); |
|
|
|
|
|
|
|
|
return (!_time || (_step >= _time) || (std::abs(diff) <= std::numeric_limits<float>::epsilon())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
std::vector<Transition> _transitions; |
|
|
std::vector<Transition> _transitions; |
|
|