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);
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.
auto get_animation() const -> const asset_handle< animation_clip > &
auto get_autoplay() const -> bool
Gets whether the animation is set to autoplay.
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.
Represents a handle to an asset, providing access and management functions.
Struct representing an animation.