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.
我b2World::CreateBody()用来创建一些b2Body实例。我应该delete在删除实例时明确它们,还是在实例被销毁b2World时自动发生这种情况?b2World
b2World::CreateBody()
b2Body
delete
b2World
不,你不必。
/// Destruct the world. All physics entities are destroyed and all heap memory is released. ~b2World();