Unravel Engine C++ Reference
|
Struct representing a node animation. More...
#include <animation.h>
Classes | |
struct | key |
Struct representing a keyframe for animation. More... | |
Public Types | |
using | seconds_t = std::chrono::duration<float> |
Public Member Functions | |
auto | get_position_keys_count () const -> size_t |
auto | get_rotation_keys_count () const -> size_t |
auto | get_scaling_keys_count () const -> size_t |
Public Attributes | |
std::string | node_name |
The name of the node affected by this animation. The node must exist and it must be unique. | |
size_t | node_index {} |
std::vector< key< math::vec3 > > | position_keys |
The position keys of this animation channel. Positions are specified as 3D vector. | |
std::vector< key< math::quat > > | rotation_keys |
The rotation keys of this animation channel. Rotations are given as quaternions. | |
std::vector< key< math::vec3 > > | scaling_keys |
The scaling keys of this animation channel. Scalings are specified as 3D vector. | |
Friends | |
auto | operator== (const animation_channel &lhs, const animation_channel &rhs) -> bool=default |
Struct representing a node animation.
This struct contains animation data for a specific node, including position, rotation, and scaling keys.
Definition at line 18 of file animation.h.
using unravel::animation_channel::seconds_t = std::chrono::duration<float> |
Definition at line 20 of file animation.h.
|
inline |
Definition at line 42 of file animation.h.
|
inline |
Definition at line 47 of file animation.h.
|
inline |
Definition at line 52 of file animation.h.
|
friend |
size_t unravel::animation_channel::node_index {} |
Definition at line 60 of file animation.h.
std::string unravel::animation_channel::node_name |
The name of the node affected by this animation. The node must exist and it must be unique.
Definition at line 58 of file animation.h.
std::vector<key<math::vec3> > unravel::animation_channel::position_keys |
The position keys of this animation channel. Positions are specified as 3D vector.
Definition at line 63 of file animation.h.
std::vector<key<math::quat> > unravel::animation_channel::rotation_keys |
The rotation keys of this animation channel. Rotations are given as quaternions.
Definition at line 66 of file animation.h.
std::vector<key<math::vec3> > unravel::animation_channel::scaling_keys |
The scaling keys of this animation channel. Scalings are specified as 3D vector.
Definition at line 69 of file animation.h.