mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Add method for resetting which plane in 3d space behaves like the floor when panning
This commit is contained in:
parent
712fa30174
commit
4a89376fdd
1 changed files with 7 additions and 0 deletions
|
@ -836,6 +836,13 @@ class Scene(object):
|
|||
return self.window and (self.window.is_closing or self.quit_interaction)
|
||||
|
||||
# Event handling
|
||||
def set_floor_plane(self, plane: str = "xy"):
|
||||
if plane == "xy":
|
||||
self.frame.set_euler_axes("zxz")
|
||||
elif plane == "xz":
|
||||
self.frame.set_euler_axes("zxy")
|
||||
else:
|
||||
raise Exception("Only `xz` and `xy` are valid floor planes")
|
||||
|
||||
def on_mouse_motion(
|
||||
self,
|
||||
|
|
Loading…
Add table
Reference in a new issue