// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #pragma once #include #include namespace anki { /// @addtogroup scene /// @{ /// An event for simple movable animations class JitterMoveEvent : public Event { public: /// Constructor JitterMoveEvent(EventManager* manager) : Event(manager) { } ANKI_USE_RESULT Error init(Second startTime, Second duration, SceneNode* movableSceneNode); /// Implements Event::update ANKI_USE_RESULT Error update(Second prevUpdateTime, Second crntTime); void setPositionLimits(const Vec4& posMin, const Vec4& posMax); private: Vec4 m_originalPos; Vec4 m_newPos; }; /// @} } // end namespace anki