move gltf animation instantiation to GltfAnimationComponentManager (this helps ensure we are creating the component on the correct entity)
19 lines
378 B
C++
19 lines
378 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
namespace thermion
|
|
{
|
|
using namespace std::chrono;
|
|
|
|
typedef std::chrono::time_point<std::chrono::high_resolution_clock> time_point_t;
|
|
|
|
struct Animation
|
|
{
|
|
time_point_t start = time_point_t::max();
|
|
float startOffset;
|
|
bool loop = false;
|
|
bool reverse = false;
|
|
float durationInSecs = 0;
|
|
};
|
|
} |