静态allow静态custom静态debug静态drawAABB静态draw静态draw静态draw静态gravity静态pixel静态position位置迭代次数,用于控制 2D 物理系统在每个模拟步中,对碰撞、堆叠和关节约束所产生的位置误差进行修正的迭代次数。数值越高,位置约束收敛越充分,通常可减少穿透与下陷、提升堆叠和关节稳定性,但会增加 CPU 开销。该参数应与时间步、子步(subStep)及速度迭代次数(velocityIterations)配合调整,默认值 3 在多数场景下能兼顾性能与效果。
Specifies the number of iterations used to correct positional constraint errors caused by collisions, stacking, and joints in each physics step. Higher values improve positional stability (less penetration and sinking, more stable stacks and joints) at the cost of performance. This parameter should be tuned together with the time step, sub-steps, and velocity iterations. A default value of 3 provides a good balance for most scenarios.
静态sub静态velocity速度迭代次数,用于控制每个物理时间步中,速度约束求解阶段的迭代次数。该参数影响碰撞响应、摩擦效果以及关节稳定性,数值越高,物理结果越稳定,但计算开销也越大。通常推荐使用默认值 8,在性能受限场景可适当降低,在高精度需求场景可适当提高。
Specifies the number of iterations used to solve velocity constraints in each physics step. This parameter affects collision response, friction behavior, and joint stability. Higher values improve simulation stability at the cost of performance. A default value of 8 is commonly recommended, with lower values for performance-critical scenarios and higher values for accuracy-critical cases.
Zh
Physics2DOption 用于配置2D物理的默认参数
En
Physics2DOption is used to configure default parameters for 2D physics