74 bool auto_play_ =
true;
75 bool apply_root_motion_ =
false;
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.
@ name_based
Flexible, works with different skeletons (uses cached hash map)
Thread-safe handle to an asset.
Struct representing an animation.
CRTP (Curiously Recurring Template Pattern) base structure for components.