2#include <engine/engine_export.h>
Struct representing a keyframe for animation.
seconds_t time
The time of the keyframe.
friend auto operator==(const key &lhs, const key &rhs) -> bool=default
T value
The value of the keyframe.
Struct representing a node animation.
std::vector< key< math::vec3 > > position_keys
The position keys of this animation channel. Positions are specified as 3D vector.
auto get_rotation_keys_count() const -> size_t
std::chrono::duration< float > seconds_t
auto get_scaling_keys_count() const -> size_t
auto get_position_keys_count() const -> size_t
friend auto operator==(const animation_channel &lhs, const animation_channel &rhs) -> bool=default
std::string node_name
The name of the node affected by this animation. The node must exist and it must be unique.
std::vector< key< math::vec3 > > scaling_keys
The scaling keys of this animation channel. Scalings are specified as 3D vector.
std::vector< key< math::quat > > rotation_keys
The rotation keys of this animation channel. Rotations are given as quaternions.
Struct representing an animation.
seconds_t duration
Duration of the animation_clip in seconds.
std::string name
The name of the animation_clip. Usually empty if the modeling package supports only a single animatio...
root_motion_params root_motion
animation_channel::seconds_t seconds_t
std::vector< animation_channel > channels
The node animation_clip channels. Each channel affects a single node.
std::string rotation_node_name
std::string position_node_name
auto get_apply_root_motion() const -> bool