mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Merge pull request #1655 from widcardw/master
Fix the bug of rotating camera
This commit is contained in:
commit
f77e25ff86
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class CameraFrame(Mobject):
|
|||
added_rot_T = rotation_matrix_transpose(angle, axis)
|
||||
new_rot_T = np.dot(curr_rot_T, added_rot_T)
|
||||
Fz = new_rot_T[2]
|
||||
phi = np.arccos(Fz[2])
|
||||
phi = np.arccos(clip(Fz[2], -1, 1))
|
||||
theta = angle_of_vector(Fz[:2]) + PI / 2
|
||||
partial_rot_T = np.dot(
|
||||
rotation_matrix_transpose(phi, RIGHT),
|
||||
|
|
Loading…
Add table
Reference in a new issue