6#include <unordered_map>
41 int numNodes()
const {
return static_cast<int>(_interpolatedKeys.size()); }
57 std::vector<InterpolatedKey> _interpolatedKeys;
58 std::unordered_map<std::string, size_t> _interpolatedKeyDict;
59 std::unordered_map<std::string, int> _currKeyIndices;
Hierarchical scene graph node with local/world transforms and parent-child relationships.
void setTarget(GraphNode *node)
GraphNode * getTarget() const
float currentTime() const
void blend(const Skeleton *skel1, const Skeleton *skel2, float alpha)
void setGraph(GraphNode *graph)
void setLooping(bool value)
Animation * animation() const
Skeleton(GraphNode *graph)
void addTime(float delta)
void setAnimation(Animation *value)
void setCurrentTime(float value)
Unit quaternion for rotation representation with SIMD-accelerated slerp and multiply.
3D vector for positions, directions, and normals with multi-backend SIMD acceleration.