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.
我有一个带有 b2FixtureDef 的 b2Body。我希望能够关闭 b2Body 碰撞的能力。这可能吗?
是的,有可能。让它成为传感器。
b2FixtureDef fd; fd.isSensor = true; body->CreateFixture(&fd);
还可以使用 filter(fd.filter) 指定特定于身体的碰撞。