标签: box2d
我正在使用b2World::CreateBody()创建一些b2Body个实例。我应该在删除delete实例时明确b2World,还是在b2World实例被销毁时自动发生?
b2World::CreateBody()
b2Body
delete
b2World
答案 0 :(得分:2)
不,你没必要。
/// Destruct the world. All physics entities are destroyed and all heap memory is released. ~b2World();