最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

three.js - How can I solve the tunneling problem in react three rapier? - Stack Overflow

programmeradmin4浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论