0

b2World::CreateBody()用来创建一些b2Body实例。我应该delete在删除实例时明确它们,还是在实例被销毁b2World时自动发生这种情况?b2World

4

1 回答 1

2

不,你不必。

/// Destruct the world. All physics entities are destroyed and all heap memory is released.
    ~b2World();
于 2012-08-15T06:20:49.337 回答