Fix Arrow.set_perpendicular_to_camera

This commit is contained in:
Grant Sanderson 2024-08-28 11:56:25 -05:00
parent e85a1ce1b7
commit 1e996dcd27

View file

@ -890,7 +890,7 @@ class Arrow(Line):
# Project to be perpendicular to axis
trg_normal = to_cam - np.dot(to_cam, axis) * axis
mat = rotation_between_vectors(normal, trg_normal)
self.apply_matrix(mat)
self.apply_matrix(mat, about_point=self.get_start())
return self