Skip to content

Commit

Permalink
Update tangent radii after control point transformation in IKKusudama3D.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Mar 16, 2024
1 parent c4ffbbc commit 7056bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ik_kusudama_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "math/ik_node_3d.h"

void IKKusudama3D::_update_constraint(Ref<IKNode3D> p_limiting_axes) {
update_tangent_radii();
// Avoiding antipodal singularities by reorienting the axes
Vector<Vector3> directions;

Expand Down Expand Up @@ -77,6 +76,7 @@ void IKKusudama3D::_update_constraint(Ref<IKNode3D> p_limiting_axes) {
transformed_control_point = p_limiting_axes->get_global_transform().basis.xform(transformed_control_point);
limit_cone->set_control_point(transformed_control_point.normalized());
}
update_tangent_radii();
}

void IKKusudama3D::update_tangent_radii() {
Expand Down

0 comments on commit 7056bc0

Please sign in to comment.