开发者

Preventing dynamic bodies from tunneling through static bodies in chipmunk? [closed]

开发者 https://www.devze.com 2023-03-22 02:09 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. 开发者_如何转开发

I have a dynamic body incorrectly pass through static body so am I missing in the code ? and how can I fix this issue ?

Thanks


It's a time step issue. If the time step is too large, and the penetration in that time step is larger than the tolerance band, your static body will never detect the penetration by the moving body.

Reduce your time step or increase the width of the tolerance band for penetration.


Also, make sure you are using fixed sized timesteps. Using variable sized timesteps is one of the biggest causes.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号