Number 变量用来记录绘制上一帧所需的毫秒数。
deltaTime 包含了在上一帧中执行 draw() 函数所需的时间。这对于物理模拟非常有用。
示例
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!
Number 变量用来记录绘制上一帧所需的毫秒数。
deltaTime 包含了在上一帧中执行 draw() 函数所需的时间。这对于物理模拟非常有用。