Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::animation_channel Struct 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
 

Detailed Description

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.

Member Typedef Documentation

◆ seconds_t

using unravel::animation_channel::seconds_t = std::chrono::duration<float>

Definition at line 20 of file animation.h.

Member Function Documentation

◆ get_position_keys_count()

auto unravel::animation_channel::get_position_keys_count ( ) const -> size_t
inline

Definition at line 42 of file animation.h.

◆ get_rotation_keys_count()

auto unravel::animation_channel::get_rotation_keys_count ( ) const -> size_t
inline

Definition at line 47 of file animation.h.

◆ get_scaling_keys_count()

auto unravel::animation_channel::get_scaling_keys_count ( ) const -> size_t
inline

Definition at line 52 of file animation.h.

Friends And Related Symbol Documentation

◆ operator==

auto operator== ( const animation_channel & lhs,
const animation_channel & rhs ) -> bool=default
friend

Member Data Documentation

◆ node_index

size_t unravel::animation_channel::node_index {}

Definition at line 60 of file animation.h.

◆ node_name

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.

◆ position_keys

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.

◆ rotation_keys

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.

◆ scaling_keys

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.


The documentation for this struct was generated from the following file: