1
0

finish chicken nugget anime loader

This commit is contained in:
2026-01-09 16:49:06 +08:00
parent 06bfe69c0e
commit ff34754274
3 changed files with 26 additions and 26 deletions

View File

@@ -3,6 +3,7 @@
#include <basalt/math.hpp>
namespace anime_loader = ::basalt::shared::anime_loader;
using anime_loader::AnimeLoaderConfig;
using anime_loader::IAnimeLoader;
using anime_loader::KeyFrame;
@@ -14,8 +15,10 @@ public:
ChickenNuggetAnimeLoader() {}
virtual ~ChickenNuggetAnimeLoader() {}
protected:
virtual void internal_load() override {
public:
virtual void load(AnimeLoaderConfig&& config) override {
IAnimeLoader::load(std::move(config));
this->frames.emplace(60 * 0, KeyFrame{.position = {F(0), F(-10), F(10)}, .rotation = {F(0.382683), F(0), F(0), F(0.92388)}});
this->frames.emplace(60 * 1,
KeyFrame{.position = {F(-10), F(0), F(10)},