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

长时间使用后,会出现鬼畜的现象,使用的是永动机版本 #48

Open
Amarsimos opened this issue Aug 31, 2022 · 7 comments
Open
Labels
bug Something isn't working

Comments

@Amarsimos
Copy link

1
您好,在桌面用了一段时间后鬼畜了,我也不懂啥原因,平台是Sao Utils的内置浏览器插件

@itorr itorr added the bug Something isn't working label Aug 31, 2022
@itorr
Copy link
Owner

itorr commented Aug 31, 2022

收到 看来旋转和高度最大值还是要加上限制

@Amarsimos
Copy link
Author

谢谢您,这个插件很可爱

@itorr
Copy link
Owner

itorr commented Aug 31, 2022

客气啦 issue 先开着吧

@itorr itorr reopened this Aug 31, 2022
@JiTYami
Copy link

JiTYami commented Sep 3, 2022

泷奈拖动时没有声音,点击也不好使,千束正常

@kagurakana
Copy link

同,吃了个饭回来看,哈哈哈救命,感觉好欢乐。
chrome_QnNGkikiiZ

貌似衰减设置为1到后面就可能鬼畜

 const sakana_l = Sakana.init({
      // 选项: 默认值
      el: ".sakana-box-2", // 启动元素 node 或 选择器
      character: "chisato", // 启动角色 'chisato','takina'
      inertia: 0.15, // 惯性
      decay: 1, // 衰减
      r: 0, // 启动角度
      y: 100, // 启动高度
      scale: 0.5, // 缩放倍数
      canSwitchCharacter: false, // 允许换角色
      onSwitchCharacter(character) {
        // 切换角色回调
        console.log(`${character} dayo~`);
      },
    });

@horror-proton
Copy link

衰减设为 1, 求解时间太长的话有点误差就会导致幅度越来越大或者越来越小, 最好对等于 1 的时候专门加个能量守恒的限制 🤔

@itorr
Copy link
Owner

itorr commented Sep 12, 2022

可能还是要彻底一点改成时间相关的函数🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants