Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个动态体错误地通过静态体,所以我在代码中丢失了吗?我该如何解决这个问题?
谢谢
这是一个时间步长问题。如果时间步长过大,并且那个时间步长的穿透大于公差带,你的静态物体永远不会检测到运动物体的穿透。
减少时间步长或增加穿透公差带的宽度。
此外,请确保您使用的是固定大小的时间步长。使用可变大小的时间步长是最大的原因之一。