20 #ifndef ANTKEEPER_ANIMATION_IK_GOAL_HPP
21 #define ANTKEEPER_ANIMATION_IK_GOAL_HPP
38 inline void set_solver(std::shared_ptr<ik_solver> solver) noexcept
61 m_sqr_radius = m_sqr_radius * m_sqr_radius;
65 [[nodiscard]]
inline const std::shared_ptr<ik_solver>&
get_solver() const noexcept
83 std::shared_ptr<ik_solver> m_solver;
85 float m_radius{1e-3f};
86 float m_sqr_radius{1e-6f};
void set_center(const math::fvec3 ¢er) noexcept
Sets the center of the IK goal.
void set_solver(std::shared_ptr< ik_solver > solver) noexcept
Sets the solver of the IK goal.
void set_radius(float radius) noexcept
Sets the radius of the IK goal.
const math::fvec3 & get_center() const noexcept
Returns the center of the IK goal.
const std::shared_ptr< ik_solver > & get_solver() const noexcept
Returns the solver of the IK goal.
float get_radius() const noexcept
Returns the radius of the IK goal.