bevy_tweening
bevy_tweening copied to clipboard
Add example for tick()
Could you add an example for calling tick()?
I have no idea what Targetable needs:
tween.tick(Duration::ZERO, ???, e, &mut writer);
Yes we could add that. Although really Tweenable::tick()
is not really designed to be used manually by default; instead the component_animator_system()
will call it automatically. You can have a look at its implementation to understand how tick()
should be called:
https://github.com/djeedai/bevy_tweening/blob/54ea43270d49722f9563d336c664d71b41f8c7eb/src/plugin.rs#L85-L107