mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Work-in-progress: Interpolation of snapshot in Action manager
This commit is contained in:
@@ -11,6 +11,18 @@ UpdateCallback::UpdateCallback() : enabled_(true), finished_(false)
|
||||
|
||||
}
|
||||
|
||||
CopyCallback::CopyCallback(Node *target) : UpdateCallback(), target_(target)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CopyCallback::update(Node *n, float dt)
|
||||
{
|
||||
n->copyTransform(target_);
|
||||
finished_ = true;
|
||||
}
|
||||
|
||||
|
||||
MoveToCallback::MoveToCallback(glm::vec3 target, float duration) : UpdateCallback(),
|
||||
duration_(duration), progress_(0.f), initialized_(false), target_(target)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user