Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自走模式:以随机间隔、施加一个大小随机的力 #7

Merged
merged 4 commits into from
Aug 24, 2022

Conversation

milkybird98
Copy link
Contributor

每隔一个随机间隔,在水平速度和垂直速度上分别添加一个随机值,来模拟施加了一个大小和方向随机的力。

并在右下角角标处添加一个 link (“自走模式”),用来清除和设置 timer,即关闭和启用随机施力。

目前数值设置上比较随意,在 [500ms~1500ms] 的间隔后,在垂直速度上增加 [-75~+75],在水平速度上增加 [-100~+100]

@itorr
Copy link
Owner

itorr commented Aug 24, 2022

调整了一下样式,选项移动到页面左下角;
自动模式切换状态通过样式区别;
延长了除第一次之外的自动间隔时间;
每次 0.1 概率切换角色。

@itorr itorr merged commit 307f9e2 into itorr:main Aug 24, 2022
@itorr itorr mentioned this pull request Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants