admin管理员组文章数量:1391977
I'm implementing a dice shaker where the dice are mixed by shaking a container. Is it possible to limit the speed of dice wrapped in a ? Occasionally, a tunneling issue occurs where the dice pass through the container walls. I've tried enabling CCD, increasing the thickness of the container walls, and reducing the shaking intensity, but it seems like the only solution is to limit the speed of the dice. Hence, I'm asking for advice.
This is what I want to implement.
First, I enabled the ccd for the RigidBody, decreased the range and speed of the cup's shake a bit, and increased the thickness of the cup. I also tried setting the timeStep value to 1/120.
When the cup is shaken, as shown in this video, I want the dice to safely shake without piercing the cup. Is there a different way to do it like in this video?
本文标签: threejsHow can I solve the tunneling problem in react three rapierStack Overflow
版权声明:本文标题:three.js - How can I solve the tunneling problem in react three rapier? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744709333a2621031.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论