bevy_tweening icon indicating copy to clipboard operation
bevy_tweening copied to clipboard

Add example for tick()

Open AngeloMateus opened this issue 1 year ago • 1 comments

Could you add an example for calling tick()?

I have no idea what Targetable needs: tween.tick(Duration::ZERO, ???, e, &mut writer);

AngeloMateus avatar Apr 29 '23 17:04 AngeloMateus

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

djeedai avatar Oct 28 '23 14:10 djeedai