3b1b / 3b1b/manim

UpdatersExample negative width error in example scenes

未关闭
#1,798 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
93.8k
派生
7.7k
PR 合并指标
PR 指标待抓取

描述

### Describe the error
In the UpdatersExample in the [example scenes](https://3b1b.github.io/manim/getting_started/example_scenes.html), the line:
`lambda m: m.set_width(w0 * math.cos(self.time - now))` results in an error. In order for this to match the animation in the video it should read:
`lambda m: m.set_width(w0 * (math.cos(self.time - now - PI/2)+1))`

### Code and Error
**Code**:
UpdatersExample

**Error**:
manim\manimlib\mobject\mobject.py:903: RuntimeWarning: overflow encountered in double_scalars
self.scale(length / old_length, **kwargs)

### Environment
**OS System**: Windows 10
**manim version**: master manimGL v1.6.1
**python version**: Python 3.9.6

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。