Bullet Physics 中的运动体之间的碰撞

Collision between kinematic bodies in Bullet Physics

我正在使用 Bullet 物理引擎。 我创造的世界基于:

每个运动学和动力学之间的碰撞按预期工作。

但是,当一个运动学与另一个运动学发生碰撞时,它会越界,我需要它们进行碰撞并且 "react" 到那个碰撞(就像一个动态物体)

我一直在寻找答案,但我没有找到任何解决方案。 我能做什么? 谢谢

I need to control them from outside, so that I need kinematic objects

这种说法并不完全准确。也可以控制动态对象

However, when one kinematic collide with the other, it oversteps and I need them to collide and "react" to that collision (like a Dinamic body)

运动机构在引擎中不会 collide/react 彼此。可以在外部复制该代码以使它们做出反应,但不要去那里。如果你必须让你创建的那些物体作为运动学物体与其他运动学物体反应,那么我建议改用动态物体。

What can I do?

而不是将这些物体创建为运动学物体:

  1. 将它们创建为动态实体;和
  2. 使用 force/impulse-based constraint mechanism 到 "control" 他们.