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.
我正在创建简单的突围游戏,其中我不断落下的砖块,当球击中它时它们会消失。但是当球击中那块砖时,它会向它施加力,砖会向上移动。所以我想让球停止强迫砖块!?,Box2d中是否有这样做的?
将运动学实体用于砖块
body->SetType( b2_kinematicBody );