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

恢复系数restitution,设置无效的吗? #4

Open
Daniel-Ni opened this issue Apr 6, 2022 · 2 comments
Open

恢复系数restitution,设置无效的吗? #4

Daniel-Ni opened this issue Apr 6, 2022 · 2 comments

Comments

@Daniel-Ni
Copy link

const cc = Torque.body.Circle(375, 0, 50,{
static:false,
restitution:0.8 // 从0设置到1 ,看效果,没啥变化。
});
torque.append(cc);

@Daniel-Ni
Copy link
Author

代码里用到restitution的地方,搜了一遍。貌似restitution没用到受力相关的计算上?

@phenomLi
Copy link
Owner

phenomLi commented Apr 7, 2022

代码里用到restitution的地方,搜了一遍。貌似restitution没用到受力相关的计算上?

对,restitution的相关计算有问题,之后我就删除了,你可以参考一下其他的物理引擎

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

No branches or pull requests

2 participants