bepuphysics1制作一个台球游戏测试物理效果 #399
Replies: 1 comment 1 reply
|
Quick guess since I don't have time at the moment to do a deeper dive: this sounds like the involved shapes and gravity imply a scale that is mismatched with the default tuning of the simulation. Bepuphysics1, unlike bepuphysics2, is quite scale sensitive. See the configurationhelper.applyscale function: https://github.com/bepu/bepuphysics1/blob/master/BEPUphysicsDemos/ConfigurationHelper.cs#L137 If not that, I'd be suspicious of the timestep being either variable, or far too large for the simulation. If that's the case, using more frequent timesteps with a smaller, constant timestep duration would help. In the future, please stick bepuphysics1 questions over on the bepuphysics1 repo: https://github.com/bepu/bepuphysics1, thanks! Attempt at a translation: |
Uh oh!
There was an error while loading. Please reload this page.
1.我不知为什么,启动的时候所有的球一直在抖动?
2.无论我怎么调参数,效果都非常差,比如撞击库边完全不符合实际效果,用 Unity PhyX效果是正确的,只是我想把物理部分放到服务器;
github : https://github.com/hujiangang/DeterministicPhysicsVBall.git
All reactions