mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Fix Arrow.set_perpendicular_to_camera
This commit is contained in:
parent
e85a1ce1b7
commit
1e996dcd27
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue