2#include <hpp/utility/overload.hpp>
8 animation_ = animation;
27 apply_root_motion_ = on;
32 return apply_root_motion_;
47 speed_ = std::max(0.0f, speed);
66 retargeting_mode_ = mode;
71 return retargeting_mode_;
void set_culling_mode(const culling_mode &animation)
void set_apply_root_motion(bool on)
auto get_player() const -> const animation_player &
auto get_culling_mode() const -> const culling_mode &
auto get_speed() const -> float
Gets the current speed for animation playback.
void set_speed(float speed)
Sets the speed for animation playback.
void set_retargeting_mode(animation_retargeting_mode mode)
Sets the animation retargeting mode.
auto get_animation() const -> const asset_handle< animation_clip > &
auto get_autoplay() const -> bool
Gets whether the animation is set to autoplay.
auto get_retargeting_mode() const -> animation_retargeting_mode
Gets the animation retargeting mode.
void set_animation(const asset_handle< animation_clip > &animation)
auto get_apply_root_motion() const -> bool
void set_autoplay(bool on)
Sets whether the animation should autoplay.
Class responsible for playing animations on a skeletal mesh.
animation_retargeting_mode
Animation retargeting mode for bone matching.
Thread-safe handle to an asset.
Struct representing an animation.