Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

2D 與 3D 物理插值

一般來說,2D 與 3D 的物理插值原理相似。不過兩者還是有幾點差異,以下將說明。

2D 粒子

目前 2D 物理插值僅支援 CPUParticles2D。建議將物理更新率設為每秒 20~30 次以上,才能讓粒子效果保持流暢。

Particles2D``(GPU 粒子)目前尚未支援插值,因此建議暫時先轉換為 ``CPUParticles2D 使用(但請備份原始的 Particles2D,以利未來支援時回復)。

其他

  • get_global_transform_interpolated() 目前僅支援 3D。

  • MultiMeshes 同時支援 2D 與 3D。

  • 2D 物理插值在伺服器端實作,這意味著它對使用低階伺服器建立的物理體有效。相比之下,3D 物理插值在場景端實作。這意味著它不會影響使用伺服器建立的物理體。這些物理體必須手動插值。有關此設計的理由,請參閱拉取請求描述。