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.
如何使动态体与运动体不可碰撞。我仍然想检查是否会发生碰撞,但动态物体应该在碰撞时通过他移动。(而且我也喜欢通过调试绘制使运动体不可见;这可能吗)
您可以设置isSenor()为true运动学体。
isSenor()
true
bodyDef.isSensor = true;
设置isSensor()为true当您想知道对象何时会发生碰撞而不触发碰撞响应时。
isSensor()