mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
3/4 Dot products
This commit is contained in:
@ -94,7 +94,7 @@ class PiCreature(SVGMobject):
|
||||
def look(self, direction):
|
||||
x, y = direction[:2]
|
||||
for pupil, eye in zip(self.pupils.split(), self.eyes.split()):
|
||||
pupil.move_to(eye, side_to_align = direction)
|
||||
pupil.move_to(eye, aligned_edge = direction)
|
||||
#Some hacky nudging is required here
|
||||
if y > 0 and x != 0: # Look up and to a side
|
||||
nudge_size = pupil.get_height()/4.
|
||||
|
Reference in New Issue
Block a user