20 #ifndef ANTKEEPER_ANIMATION_SWING_TWIST_IK_CONSTRAINT_HPP
21 #define ANTKEEPER_ANIMATION_SWING_TWIST_IK_CONSTRAINT_HPP
43 float m_cos_half_twist_min{ 0};
44 float m_sin_half_twist_min{-1};
45 float m_cos_half_twist_max{ 0};
46 float m_sin_half_twist_max{ 1};
Abstract base class for IK joint constraints.
IK constraint with cone-limited swing and angle-limited twist.
void solve(math::fquat &q) override
Solves the constraint.
void set_twist_limit(float min_angle, float max_angle)
Sets the twist rotation limit.
Quaternion composed of a real scalar part and imaginary vector part.