【发布时间】:2015-10-02 03:44:22
【问题描述】:
我的代码有点问题, 当我停止物理引擎时如何重新启动它?
【问题讨论】:
我的代码有点问题, 当我停止物理引擎时如何重新启动它?
【问题讨论】:
https://docs.coronalabs.com/guide/physics/physicsSetup/index.html
开始/暂停/停止
以下函数启动、暂停和停止物理模拟:
physics.start() — either instantiates or resumes the simulation (if paused). You must start the physics simulation before calling any other physics functions in this guide.
physics.pause() — pauses the physics simulation.
physics.stop() — this is treated as a request to "destroy" the physics world. If you merely want to pause the physics engine, use physics.pause().
这是你要找的吗?
【讨论】: